Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
3.1 KiB

  1. /*
  2. * Adobe Universal Font Library
  3. *
  4. * Copyright (c) 1996 Adobe Systems Inc.
  5. * All Rights Reserved
  6. *
  7. * ParseTT.h - Parse a TTF file, "cmap", "vhtx", ...
  8. *
  9. *
  10. * $Header:
  11. */
  12. #ifndef _H_PARSETT
  13. #define _H_PARSETT
  14. /*===============================================================================*
  15. * Include files used by this interface *
  16. *===============================================================================*/
  17. // may defs are there in UFOt42.H - don't want to repeat here
  18. #include "UFOT42.h"
  19. /*===============================================================================*
  20. * Theory of Operation *
  21. *===============================================================================*/
  22. /*
  23. This file defines a functions to parse TTF file's tables - "cmap", "vhtx", ...
  24. */
  25. // Here are the identifiers used with the interface routines defined in ParseTT.c.
  26. // IDs used with GetGlyphIDEx:
  27. #define GGIEX_HINT_INIT 0
  28. #define GGIEX_HINT_GET 1
  29. #define GGIEX_HINT_INIT_AND_GET 2
  30. // Here are the interface routines defined in ParseTT.c.
  31. unsigned long
  32. GetGlyphID(
  33. UFOStruct *pUFO,
  34. long unicode,
  35. long localcode
  36. );
  37. unsigned long
  38. GetGlyphIDEx(
  39. UFOStruct *pUFO,
  40. long unicode,
  41. long localcode,
  42. short *pSubTable,
  43. unsigned long *pOffset,
  44. int hint
  45. );
  46. #if 0
  47. //
  48. // Replaced to the #else clause to fix #277035 and #277063.
  49. // Not removed in case when we need this back for different platforms.
  50. //
  51. UFLErrCode
  52. GetCharWidthFromTTF(
  53. UFOStruct *pUFO,
  54. unsigned short gi,
  55. long *pWidth,
  56. long *pEm,
  57. long *pAscent,
  58. UFLBool *bUseDef,
  59. UFLBool bGetDefault
  60. );
  61. #else
  62. UFLErrCode
  63. GetMetrics2FromTTF(
  64. UFOStruct *pUFO,
  65. unsigned short gi,
  66. long *pem,
  67. long *pw1y,
  68. long *pvx,
  69. long *pvy,
  70. long *ptsb,
  71. UFLBool *bUseDef,
  72. UFLBool bGetDefault,
  73. long *pvasc
  74. );
  75. #endif
  76. unsigned long
  77. GetNumGlyphs(
  78. UFOStruct *pUFO
  79. );
  80. long
  81. GetOS2FSType(
  82. UFOStruct *pUFO
  83. );
  84. UFLBool
  85. BIsTTCFont(
  86. unsigned long ulTag
  87. );
  88. unsigned short
  89. GetFontIndexInTTC(
  90. UFOStruct *pUFO
  91. );
  92. unsigned long
  93. GetOffsetToTableDirInTTC(
  94. UFOStruct *pUFO,
  95. unsigned short fontIndex
  96. );
  97. char *
  98. GetGlyphName(
  99. UFOStruct *pUFO,
  100. unsigned long lgi,
  101. char *pszHint,
  102. UFLBool *bGoodName // GoodName
  103. );
  104. UFLBool
  105. BHasGoodPostTable(
  106. UFOStruct *pUFO
  107. );
  108. short int
  109. CreateXUIDArray(
  110. UFOStruct *pUFO,
  111. unsigned long *pXuid
  112. );
  113. #endif // _H_PARSETT