t1tokens.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /***************************************************************************/
  2. /* */
  3. /* t1tokens.h */
  4. /* */
  5. /* Type 1 tokenizer (specification). */
  6. /* */
  7. /* Copyright 1996-2001, 2002 by */
  8. /* David Turner, Robert Wilhelm, and Werner Lemberg. */
  9. /* */
  10. /* This file is part of the FreeType project, and may only be used, */
  11. /* modified, and distributed under the terms of the FreeType project */
  12. /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
  13. /* this file you indicate that you have read the license and */
  14. /* understand and accept it fully. */
  15. /* */
  16. /***************************************************************************/
  17. #undef FT_STRUCTURE
  18. #define FT_STRUCTURE PS_FontInfoRec
  19. #undef T1CODE
  20. #define T1CODE T1_FIELD_LOCATION_FONT_INFO
  21. T1_FIELD_STRING ( "version", version )
  22. T1_FIELD_STRING ( "Notice", notice )
  23. T1_FIELD_STRING ( "FullName", full_name )
  24. T1_FIELD_STRING ( "FamilyName", family_name )
  25. T1_FIELD_STRING ( "Weight", weight )
  26. T1_FIELD_NUM ( "ItalicAngle", italic_angle )
  27. T1_FIELD_TYPE_BOOL( "isFixedPitch", is_fixed_pitch )
  28. T1_FIELD_NUM ( "UnderlinePosition", underline_position )
  29. T1_FIELD_NUM ( "UnderlineThickness", underline_thickness )
  30. #undef FT_STRUCTURE
  31. #define FT_STRUCTURE PS_PrivateRec
  32. #undef T1CODE
  33. #define T1CODE T1_FIELD_LOCATION_PRIVATE
  34. T1_FIELD_NUM ( "UniqueID", unique_id )
  35. T1_FIELD_NUM ( "lenIV", lenIV )
  36. T1_FIELD_NUM ( "LanguageGroup", language_group )
  37. T1_FIELD_NUM ( "password", password )
  38. T1_FIELD_FIXED ( "BlueScale", blue_scale )
  39. T1_FIELD_NUM ( "BlueShift", blue_shift )
  40. T1_FIELD_NUM ( "BlueFuzz", blue_fuzz )
  41. T1_FIELD_NUM_TABLE ( "BlueValues", blue_values, 14 )
  42. T1_FIELD_NUM_TABLE ( "OtherBlues", other_blues, 10 )
  43. T1_FIELD_NUM_TABLE ( "FamilyBlues", family_blues, 14 )
  44. T1_FIELD_NUM_TABLE ( "FamilyOtherBlues", family_other_blues, 10 )
  45. T1_FIELD_NUM_TABLE2( "StdHW", standard_width, 1 )
  46. T1_FIELD_NUM_TABLE2( "StdVW", standard_height, 1 )
  47. T1_FIELD_NUM_TABLE2( "MinFeature", min_feature, 2 )
  48. T1_FIELD_NUM_TABLE ( "StemSnapH", snap_widths, 12 )
  49. T1_FIELD_NUM_TABLE ( "StemSnapV", snap_heights, 12 )
  50. #undef FT_STRUCTURE
  51. #define FT_STRUCTURE T1_FontRec
  52. #undef T1CODE
  53. #define T1CODE T1_FIELD_LOCATION_FONT_DICT
  54. T1_FIELD_NUM( "PaintType", paint_type )
  55. T1_FIELD_NUM( "FontType", font_type )
  56. T1_FIELD_NUM( "StrokeWidth", stroke_width )
  57. #undef FT_STRUCTURE
  58. #define FT_STRUCTURE FT_BBox
  59. #undef T1CODE
  60. #define T1CODE T1_FIELD_LOCATION_BBOX
  61. T1_FIELD_BBOX("FontBBox", xMin )
  62. /* END */