freetype.monkey2 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. Namespace freetype
  2. #Import "freetype-2.6.3/include/*.h"
  3. #Import "<ft2build.h>"
  4. #Import "freetype-2.6.3/src/base/ftbase.c"
  5. #Import "freetype-2.6.3/src/base/ftapi.c"
  6. #Import "freetype-2.6.3/src/base/ftbbox.c"
  7. #Import "freetype-2.6.3/src/base/ftfntfmt.c"
  8. #Import "freetype-2.6.3/src/base/ftbdf.c"
  9. #Import "freetype-2.6.3/src/base/ftbitmap.c"
  10. #Import "freetype-2.6.3/src/base/ftdebug.c"
  11. #Import "freetype-2.6.3/src/base/ftgasp.c"
  12. #Import "freetype-2.6.3/src/base/ftfstype.c"
  13. #Import "freetype-2.6.3/src/base/ftglyph.c"
  14. #Import "freetype-2.6.3/src/base/ftgxval.c"
  15. #Import "freetype-2.6.3/src/base/ftinit.c"
  16. #Import "freetype-2.6.3/src/base/ftlcdfil.c"
  17. #Import "freetype-2.6.3/src/base/ftmm.c"
  18. #Import "freetype-2.6.3/src/base/ftotval.c"
  19. #Import "freetype-2.6.3/src/base/ftpfr.c"
  20. #Import "freetype-2.6.3/src/base/ftstroke.c"
  21. #Import "freetype-2.6.3/src/base/ftsynth.c"
  22. #Import "freetype-2.6.3/src/base/ftsystem.c"
  23. #Import "freetype-2.6.3/src/base/fttype1.c"
  24. #Import "freetype-2.6.3/src/base/ftwinfnt.c"
  25. '#Import "freetype-2.6.3/src/base/ftxf86.c"
  26. #Import "freetype-2.6.3/src/base/ftpatent.c"
  27. #Import "freetype-2.6.3/src/autofit/autofit.c"
  28. #Import "freetype-2.6.3/src/bdf/bdf.c"
  29. #Import "freetype-2.6.3/src/cache/ftcache.c"
  30. #Import "freetype-2.6.3/src/cff/cff.c"
  31. #Import "freetype-2.6.3/src/cid/type1cid.c"
  32. #Import "freetype-2.6.3/src/gzip/ftgzip.c"
  33. #Import "freetype-2.6.3/src/lzw/ftlzw.c"
  34. #Import "freetype-2.6.3/src/otvalid/otvalid.c"
  35. #Import "freetype-2.6.3/src/pcf/pcf.c"
  36. #Import "freetype-2.6.3/src/pfr/pfr.c"
  37. #Import "freetype-2.6.3/src/psaux/psaux.c"
  38. #Import "freetype-2.6.3/src/pshinter/pshinter.c"
  39. #Import "freetype-2.6.3/src/psnames/psmodule.c"
  40. '#Import "freetype-2.6.3/src/psnames/psnames.c" '#included by psmodule.c!
  41. #Import "freetype-2.6.3/src/raster/raster.c"
  42. #Import "freetype-2.6.3/src/sfnt/sfnt.c"
  43. #Import "freetype-2.6.3/src/smooth/smooth.c"
  44. #Import "freetype-2.6.3/src/truetype/truetype.c"
  45. #Import "freetype-2.6.3/src/type1/type1.c"
  46. #Import "freetype-2.6.3/src/type42/type42.c"
  47. #Import "freetype-2.6.3/src/winfonts/winfnt.c"
  48. Extern
  49. Const FT_LOAD_DEFAULT:Int
  50. Const FT_LOAD_NO_SCALE:Int
  51. Const FT_LOAD_NO_HINTING:Int
  52. Const FT_LOAD_RENDER:Int
  53. Const FT_LOAD_NO_BITMAP:Int
  54. Const FT_LOAD_VERTICAL_LAYOUT:Int
  55. Const FT_LOAD_FORCE_AUTOHINT:Int
  56. Const FT_LOAD_CROP_BITMAP:Int
  57. Const FT_LOAD_PEDANTIC:Int
  58. Const FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH:Int
  59. Const FT_LOAD_NO_RECURSE:Int
  60. Const FT_LOAD_IGNORE_TRANSFORM:Int
  61. Const FT_LOAD_MONOCHROME:Int
  62. Const FT_LOAD_LINEAR_DESIGN:Int
  63. Const FT_LOAD_NO_AUTOHINT:Int
  64. Const FT_LOAD_COLOR:Int
  65. Const FT_LOAD_COMPUTE_METRICS:Int
  66. Const FT_RENDER_MODE_NORMAL:Int
  67. Const FT_RENDER_MODE_LIGHT:Int
  68. Const FT_RENDER_MODE_MONO:Int
  69. Const FT_RENDER_MODE_LCD:Int
  70. Const FT_RENDER_MODE_LCD_V:Int
  71. Const FT_LOAD_TARGET_NORMAL:Int
  72. Const FT_LOAD_TARGET_LIGHT:Int
  73. Const FT_LOAD_TARGET_MONO:Int
  74. Const FT_LOAD_TARGET_LCD:Int
  75. Const FT_LOAD_TARGET_LCD_V:Int
  76. Const FT_SIZE_REQUEST_TYPE_NOMINAL:Int
  77. Const FT_SIZE_REQUEST_TYPE_REAL_DIM:Int
  78. Const FT_SIZE_REQUEST_TYPE_BBOX:Int
  79. Const FT_SIZE_REQUEST_TYPE_CELL:Int
  80. Const FT_SIZE_REQUEST_TYPE_SCALES:Int
  81. Alias FT_Error:Int 'int
  82. Alias FT_Int:Int
  83. Alias FT_Int32:Int 'signed XXX
  84. Alias FT_UInt:UInt 'unsigned int
  85. Alias FT_Long:Int 'signed long
  86. Alias FT_ULong:ULong 'unsigned long
  87. Alias FT_F26Dot6:Int 'signed long
  88. Alias FT_Pos:Int 'signed long
  89. Alias FT_Short:Short 'signed short
  90. Struct FT_Vector
  91. Field x:FT_Pos
  92. Field y:FT_Pos
  93. End
  94. Struct FT_BBox
  95. Field xMin:FT_Pos,yMin:FT_Pos
  96. Field xMax:FT_Pos,yMax:FT_Pos
  97. End
  98. Struct FT_Bitmap
  99. Field rows:UInt
  100. Field width:UInt
  101. Field pitch:Int
  102. Field buffer:UByte Ptr
  103. Field num_grays:UShort
  104. Field pixel_mode:UByte
  105. Field palette_mode:UByte
  106. Field palette:Void Ptr
  107. End
  108. Struct FT_Size_Metrics
  109. Field ascender:FT_Pos
  110. Field descender:FT_Pos
  111. Field height:FT_Pos
  112. Field max_advance:FT_Pos
  113. End
  114. Struct FT_Glyph_Metrics
  115. Field width:FT_Pos
  116. Field height:FT_Pos
  117. Field horiBearingX:FT_Pos
  118. Field horiBearingY:FT_Pos
  119. Field horiAdvance:FT_Pos
  120. Field vertBearingX:FT_Pos
  121. Field vertBearingY:FT_Pos
  122. Field vertAdvance:FT_Pos
  123. End
  124. Struct FT_Size_RequestRec="FT_Size_RequestRec_"
  125. Field type:int 'FT_Size_Request_Type
  126. Field width:FT_Long
  127. Field height:FT_Long
  128. Field horiResolution:FT_UInt
  129. Field vertResolution:FT_UInt
  130. End
  131. Struct FT_SizeRec="FT_SizeRec_"
  132. Field metrics:FT_Size_Metrics
  133. End
  134. Struct FT_LibraryRec="FT_LibraryRec_"
  135. End
  136. Struct FT_GlyphSlotRec="FT_GlyphSlotRec_"
  137. Field metrics:FT_Glyph_Metrics
  138. Field advance:FT_Vector
  139. Field bitmap:FT_Bitmap
  140. Field bitmap_left:FT_Int
  141. Field bitmap_top:FT_Int
  142. End
  143. Struct FT_FaceRec="FT_FaceRec_"
  144. Field num_glyphs:FT_Long
  145. Field bbox:FT_BBox
  146. Field ascender:FT_Short '+ve!
  147. Field descender:FT_Short '-ve!
  148. Field height:FT_Short 'ascender-descender!
  149. Field glyph:FT_GlyphSlotRec Ptr
  150. Field size:FT_SizeRec Ptr
  151. End
  152. Alias FT_Library:FT_LibraryRec Ptr
  153. Alias FT_Face:FT_FaceRec Ptr
  154. Alias FT_GlyphSlot:FT_GlyphSlotRec Ptr
  155. Function FT_Init_FreeType:FT_Error( library:FT_Library Ptr )
  156. Function FT_Done_FreeType:FT_Error( library:FT_Library )
  157. Function FT_New_Face:FT_Error( library:FT_Library,filepathname:CString,face_index:FT_Long,aface:FT_Face Ptr )
  158. Function FT_New_Memory_Face:FT_Error( library:FT_Library,file_base:UByte Ptr,file_size:FT_Long,file_index:FT_Long,aface:FT_Face Ptr )
  159. Function FT_Done_Face:FT_Error( face:FT_Face )
  160. Function FT_Set_Char_Size:FT_Error( face:FT_Face,char_width:FT_F26Dot6,char_height:FT_F26Dot6,horz_resolution:FT_UInt,vert_resolution:FT_UInt )
  161. Function FT_Set_Pixel_Sizes:FT_Error( face:FT_Face,pixel_width:FT_UInt,pixel_height:FT_UInt )
  162. Function FT_Request_Size:FT_Error( face:FT_Face,req:FT_Size_RequestRec Ptr )
  163. Function FT_Get_Char_Index:FT_UInt( face:FT_Face,charcode:FT_ULong )
  164. Function FT_Get_First_Char:FT_ULong( face:FT_Face,agindex:FT_UInt Ptr )
  165. Function FT_Get_Next_Char:FT_ULong( face:FT_Face,char_code:FT_ULong,agindex:FT_UInt Ptr )
  166. Function FT_Get_Kerning( face:FT_Face,left_glyph:FT_UInt,right_glyph:FT_UInt,kern_mode:FT_UInt,akerning:FT_Vector Ptr )
  167. Function FT_Load_Char:FT_Error( face:FT_Face,char_code:FT_ULong,load_flags:Int )
  168. Function FT_Load_Glyph:FT_Error( face:FT_Face,glyph_index:FT_UInt,load_flags:Int )
  169. Function FT_Render_Glyph:FT_Error( slot:FT_GlyphSlot,render_mode:Int )
  170. Function FT_HAS_KERNING:Int( face:FT_Face )
  171. #rem
  172. '**** old *****
  173. Function FT_Init_FreeType( ft_lib:Byte Ptr Ptr )
  174. Function FT_Done_FreeType( ft_lib:Byte Ptr )
  175. Function FT_Done_Face( ft_face:Byte Ptr )
  176. Function FT_Done_Glyph( ft_glyph:Byte Ptr )
  177. Function FT_New_Face( ft_lib:Byte Ptr,arg:CString,faceIndex:Int,ft_face:Byte Ptr Ptr )
  178. Function FT_New_Memory_Face( ft_lib:Byte Ptr,buf:Byte Ptr,size:Int,faceIndex:Int,ft_face:Byte Ptr Ptr )
  179. Function FT_Set_Pixel_Sizes( ft_face:Byte Ptr,width:Int,height:Int )
  180. Function FT_Get_Char_Index( ft_face:Byte Ptr,index:Int )
  181. Function FT_Set_Charmap( ft_face:Byte Ptr,charmap:Int )
  182. Function FT_Load_Char( ft_face:Byte Ptr,index:Int,flags:Int )
  183. Function FT_Load_Glyph( ft_face:Byte Ptr,index:Int,flags:Int )
  184. Function FT_Render_Glyph( ft_glyph:Byte Ptr,mode:Int )
  185. Struct FTFace
  186. Field numfaces:Int,index:Int,flags:Int,style:Int,numglyphs:Int
  187. Field fname:Byte Ptr
  188. Field sname:Byte Ptr
  189. Field numsizes:Int
  190. Field sizes:Int Ptr
  191. Field numcharmaps:Int
  192. Field charmaps:Int Ptr
  193. Field genericdata:Byte Ptr,genericdestructor:Int
  194. Field bx0:Int,by0:Int,bx1:Int,by1:Int
  195. Field unitsperem:Short
  196. Field ascender:Short
  197. Field descender:Short
  198. Field height:Short
  199. Field maxawidth:Short
  200. Field maxahieght:Short
  201. Field underlinepos:Short
  202. Field underlinethick:Short
  203. Field glyphslot:Int Ptr
  204. Field metrics:Byte Ptr
  205. End
  206. Struct FTMetrics
  207. Field mface:Int,mgeneric0:Int,mgeneric1:Int
  208. Field xppem:Short,yppem:Short
  209. Field xscale:Int,yscale:Int
  210. Field ascend:Int,descend:Int,height:Int,max_advance:Int
  211. End
  212. Struct FTGlyph
  213. Field lib:Int,face:Int,nextglyph:Int,reserved:Int
  214. Field genericdata:Byte Ptr,genericdestructor:Int
  215. Field metric_width:Int,metric_height:Int,metric_horibearingx:Int,metric_horibearingy:Int
  216. Field metric_horiadvance:Int,metric_vertbearingx:Int,metric_vertbearingy:Int,metric_vertadvance:Int
  217. Field hadvance:Int,vadvance:Int
  218. Field advancex:Int,advancey:Int
  219. Field glyphformat:Int
  220. Field rows:Int,width:Int,pitch:Int
  221. Field buffer:Byte Ptr
  222. End
  223. #end