Lines Matching defs:an

6  * This is part of HarfBuzz, an OpenType Layout engine library.
575 static HB_Error Load_Anchor( HB_Anchor* an,
588 an->PosFormat = GET_UShort();
592 switch ( an->PosFormat )
598 an->af.af1.XCoordinate = GET_Short();
599 an->af.af1.YCoordinate = GET_Short();
608 an->af.af2.XCoordinate = GET_Short();
609 an->af.af2.YCoordinate = GET_Short();
610 an->af.af2.AnchorPoint = GET_UShort();
619 an->af.af3.XCoordinate = GET_Short();
620 an->af.af3.YCoordinate = GET_Short();
628 if ( ALLOC_ARRAY( an->af.af3.DeviceTables, 2, HB_Device ) )
631 an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE] = 0;
632 an->af.af3.DeviceTables[AF3_Y_DEVICE_TABLE] = 0;
638 ( error = _HB_OPEN_Load_Device( &an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE],
653 if ( !an->af.af3.DeviceTables )
655 if ( ALLOC_ARRAY( an->af.af3.DeviceTables, 2, HB_Device ) )
658 an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE] = 0;
659 an->af.af3.DeviceTables[AF3_Y_DEVICE_TABLE] = 0;
666 ( error = _HB_OPEN_Load_Device( &an->af.af3.DeviceTables[AF3_Y_DEVICE_TABLE],
678 an->af.af4.XIdAnchor = GET_UShort();
679 an->af.af4.YIdAnchor = GET_UShort();
695 if ( an->af.af3.DeviceTables )
696 _HB_OPEN_Free_Device( an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE] );
699 FREE( an->af.af3.DeviceTables );
704 static void Free_Anchor( HB_Anchor* an)
706 if ( an->PosFormat == 3 && an->af.af3.DeviceTables )
708 _HB_OPEN_Free_Device( an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE] );
709 _HB_OPEN_Free_Device( an->af.af3.DeviceTables[AF3_Y_DEVICE_TABLE] );
710 FREE( an->af.af3.DeviceTables );
716 HB_Anchor* an,
739 switch ( an->PosFormat )
742 /* The special case of an empty AnchorTable */
748 *x_value = x_scale * an->af.af1.XCoordinate / 0x10000;
749 *y_value = y_scale * an->af.af1.YCoordinate / 0x10000;
756 ap = an->af.af2.AnchorPoint;
770 *x_value = x_scale * an->af.af3.XCoordinate / 0x10000;
771 *y_value = y_scale * an->af.af3.YCoordinate / 0x10000;
778 _HB_OPEN_Get_Device( an->af.af3.DeviceTables[AF3_X_DEVICE_TABLE], x_ppem, &pixel_value );
780 _HB_OPEN_Get_Device( an->af.af3.DeviceTables[AF3_Y_DEVICE_TABLE], y_ppem, &pixel_value );
786 *x_value += x_scale * an->af.af3.XCoordinate / 0x10000;
787 *y_value += y_scale * an->af.af3.YCoordinate / 0x10000;
792 error = (gpos->mmfunc)( gpi->font, an->af.af4.XIdAnchor,
797 error = (gpos->mmfunc)( gpi->font, an->af.af4.YIdAnchor,
1845 resp. glyph offsets. I was told it would be an omission, to
3553 read it now to make an additional safety check. */
3885 /* Note: The coverage table in format 2 doesn't give an index into
4633 thus we read it now to make an additional safety check. No limit
5166 /* Note: The coverage table in format 2 doesn't give an index into
5768 /* Do an individual subtable lookup. Returns HB_Err_Ok if positioning
5823 /* Check whether we have a successful positioning or an error other