Home | History | Annotate | Download | only in src

Lines Matching refs:cpf2

3360 static HB_Error  Load_PosClassRule( HB_ContextPosFormat2*  cpf2,
3380 if ( pcr->GlyphCount > cpf2->MaxContextLength )
3381 cpf2->MaxContextLength = pcr->GlyphCount;
3440 static HB_Error Load_PosClassSet( HB_ContextPosFormat2* cpf2,
3479 ( error = Load_PosClassRule( cpf2, &pcr[n],
3518 static HB_Error Load_ContextPos2( HB_ContextPosFormat2* cpf2,
3540 ( error = _HB_OPEN_Load_Coverage( &cpf2->Coverage, stream ) ) != HB_Err_Ok )
3552 count = cpf2->PosClassSetCount = GET_UShort();
3558 ( error = _HB_OPEN_Load_ClassDefinition( &cpf2->ClassDef, count,
3563 cpf2->PosClassSet = NULL;
3564 cpf2->MaxContextLength = 0;
3566 if ( ALLOC_ARRAY( cpf2->PosClassSet, count, HB_PosClassSet ) )
3569 pcs = cpf2->PosClassSet;
3584 ( error = Load_PosClassSet( cpf2, &pcs[n],
3593 cpf2->PosClassSet[n].PosClassRuleCount = 0;
3594 cpf2->PosClassSet[n].PosClassRule = NULL;
3607 _HB_OPEN_Free_ClassDefinition( &cpf2->ClassDef );
3610 _HB_OPEN_Free_Coverage( &cpf2->Coverage );
3615 static void Free_ContextPos2( HB_ContextPosFormat2* cpf2 )
3622 if ( cpf2->PosClassSet )
3624 count = cpf2->PosClassSetCount;
3625 pcs = cpf2->PosClassSet;
3633 _HB_OPEN_Free_ClassDefinition( &cpf2->ClassDef );
3634 _HB_OPEN_Free_Coverage( &cpf2->Coverage );
3765 return Load_ContextPos2( &cp->cpf.cpf2, stream );
3785 case 2: Free_ContextPos2( &cp->cpf.cpf2 ); break;
3858 HB_ContextPosFormat2* cpf2,
3886 error = _HB_OPEN_Coverage_Index( &cpf2->Coverage, IN_CURGLYPH(), &index );
3890 if (cpf2->MaxContextLength < 1)
3893 if ( ALLOC_ARRAY( classes, cpf2->MaxContextLength, HB_UShort ) )
3896 error = _HB_OPEN_Get_Class( &cpf2->ClassDef, IN_CURGLYPH(),
3902 pcs = &cpf2->PosClassSet[classes[0]];
3939 error = _HB_OPEN_Get_Class( &cpf2->ClassDef, IN_GLYPH( j ), &classes[i], NULL );
4035 return Lookup_ContextPos2( gpi, &cp->cpf.cpf2, buffer,