ftmodapi.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  1. /****************************************************************************
  2. *
  3. * ftmodapi.h
  4. *
  5. * FreeType modules public interface (specification).
  6. *
  7. * Copyright (C) 1996-2023 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. #ifndef FTMODAPI_H_
  18. #define FTMODAPI_H_
  19. #include <freetype/freetype.h>
  20. #ifdef FREETYPE_H
  21. #error "freetype.h of FreeType 1 has been loaded!"
  22. #error "Please fix the directory search order for header files"
  23. #error "so that freetype.h of FreeType 2 is found first."
  24. #endif
  25. FT_BEGIN_HEADER
  26. /**************************************************************************
  27. *
  28. * @section:
  29. * module_management
  30. *
  31. * @title:
  32. * Module Management
  33. *
  34. * @abstract:
  35. * How to add, upgrade, remove, and control modules from FreeType.
  36. *
  37. * @description:
  38. * The definitions below are used to manage modules within FreeType.
  39. * Internal and external modules can be added, upgraded, and removed at
  40. * runtime. For example, an alternative renderer or proprietary font
  41. * driver can be registered and prioritized. Additionally, some module
  42. * properties can also be controlled.
  43. *
  44. * Here is a list of existing values of the `module_name` field in the
  45. * @FT_Module_Class structure.
  46. *
  47. * ```
  48. * autofitter
  49. * bdf
  50. * cff
  51. * gxvalid
  52. * otvalid
  53. * pcf
  54. * pfr
  55. * psaux
  56. * pshinter
  57. * psnames
  58. * raster1
  59. * sfnt
  60. * smooth
  61. * truetype
  62. * type1
  63. * type42
  64. * t1cid
  65. * winfonts
  66. * ```
  67. *
  68. * Note that the FreeType Cache sub-system is not a FreeType module.
  69. *
  70. * @order:
  71. * FT_Module
  72. * FT_Module_Constructor
  73. * FT_Module_Destructor
  74. * FT_Module_Requester
  75. * FT_Module_Class
  76. *
  77. * FT_Add_Module
  78. * FT_Get_Module
  79. * FT_Remove_Module
  80. * FT_Add_Default_Modules
  81. *
  82. * FT_FACE_DRIVER_NAME
  83. * FT_Property_Set
  84. * FT_Property_Get
  85. * FT_Set_Default_Properties
  86. *
  87. * FT_New_Library
  88. * FT_Done_Library
  89. * FT_Reference_Library
  90. *
  91. * FT_Renderer
  92. * FT_Renderer_Class
  93. *
  94. * FT_Get_Renderer
  95. * FT_Set_Renderer
  96. *
  97. * FT_Set_Debug_Hook
  98. *
  99. */
  100. /* module bit flags */
  101. #define FT_MODULE_FONT_DRIVER 1 /* this module is a font driver */
  102. #define FT_MODULE_RENDERER 2 /* this module is a renderer */
  103. #define FT_MODULE_HINTER 4 /* this module is a glyph hinter */
  104. #define FT_MODULE_STYLER 8 /* this module is a styler */
  105. #define FT_MODULE_DRIVER_SCALABLE 0x100 /* the driver supports */
  106. /* scalable fonts */
  107. #define FT_MODULE_DRIVER_NO_OUTLINES 0x200 /* the driver does not */
  108. /* support vector outlines */
  109. #define FT_MODULE_DRIVER_HAS_HINTER 0x400 /* the driver provides its */
  110. /* own hinter */
  111. #define FT_MODULE_DRIVER_HINTS_LIGHTLY 0x800 /* the driver's hinter */
  112. /* produces LIGHT hints */
  113. /* deprecated values */
  114. #define ft_module_font_driver FT_MODULE_FONT_DRIVER
  115. #define ft_module_renderer FT_MODULE_RENDERER
  116. #define ft_module_hinter FT_MODULE_HINTER
  117. #define ft_module_styler FT_MODULE_STYLER
  118. #define ft_module_driver_scalable FT_MODULE_DRIVER_SCALABLE
  119. #define ft_module_driver_no_outlines FT_MODULE_DRIVER_NO_OUTLINES
  120. #define ft_module_driver_has_hinter FT_MODULE_DRIVER_HAS_HINTER
  121. #define ft_module_driver_hints_lightly FT_MODULE_DRIVER_HINTS_LIGHTLY
  122. typedef FT_Pointer FT_Module_Interface;
  123. /**************************************************************************
  124. *
  125. * @functype:
  126. * FT_Module_Constructor
  127. *
  128. * @description:
  129. * A function used to initialize (not create) a new module object.
  130. *
  131. * @input:
  132. * module ::
  133. * The module to initialize.
  134. */
  135. typedef FT_Error
  136. (*FT_Module_Constructor)( FT_Module module );
  137. /**************************************************************************
  138. *
  139. * @functype:
  140. * FT_Module_Destructor
  141. *
  142. * @description:
  143. * A function used to finalize (not destroy) a given module object.
  144. *
  145. * @input:
  146. * module ::
  147. * The module to finalize.
  148. */
  149. typedef void
  150. (*FT_Module_Destructor)( FT_Module module );
  151. /**************************************************************************
  152. *
  153. * @functype:
  154. * FT_Module_Requester
  155. *
  156. * @description:
  157. * A function used to query a given module for a specific interface.
  158. *
  159. * @input:
  160. * module ::
  161. * The module to be searched.
  162. *
  163. * name ::
  164. * The name of the interface in the module.
  165. */
  166. typedef FT_Module_Interface
  167. (*FT_Module_Requester)( FT_Module module,
  168. const char* name );
  169. /**************************************************************************
  170. *
  171. * @struct:
  172. * FT_Module_Class
  173. *
  174. * @description:
  175. * The module class descriptor. While being a public structure necessary
  176. * for FreeType's module bookkeeping, most of the fields are essentially
  177. * internal, not to be used directly by an application.
  178. *
  179. * @fields:
  180. * module_flags ::
  181. * Bit flags describing the module.
  182. *
  183. * module_size ::
  184. * The size of one module object/instance in bytes.
  185. *
  186. * module_name ::
  187. * The name of the module.
  188. *
  189. * module_version ::
  190. * The version, as a 16.16 fixed number (major.minor).
  191. *
  192. * module_requires ::
  193. * The version of FreeType this module requires, as a 16.16 fixed
  194. * number (major.minor). Starts at version 2.0, i.e., 0x20000.
  195. *
  196. * module_interface ::
  197. * A typeless pointer to a structure (which varies between different
  198. * modules) that holds the module's interface functions. This is
  199. * essentially what `get_interface` returns.
  200. *
  201. * module_init ::
  202. * The initializing function.
  203. *
  204. * module_done ::
  205. * The finalizing function.
  206. *
  207. * get_interface ::
  208. * The interface requesting function.
  209. */
  210. typedef struct FT_Module_Class_
  211. {
  212. FT_ULong module_flags;
  213. FT_Long module_size;
  214. const FT_String* module_name;
  215. FT_Fixed module_version;
  216. FT_Fixed module_requires;
  217. const void* module_interface;
  218. FT_Module_Constructor module_init;
  219. FT_Module_Destructor module_done;
  220. FT_Module_Requester get_interface;
  221. } FT_Module_Class;
  222. /**************************************************************************
  223. *
  224. * @function:
  225. * FT_Add_Module
  226. *
  227. * @description:
  228. * Add a new module to a given library instance.
  229. *
  230. * @inout:
  231. * library ::
  232. * A handle to the library object.
  233. *
  234. * @input:
  235. * clazz ::
  236. * A pointer to class descriptor for the module.
  237. *
  238. * @return:
  239. * FreeType error code. 0~means success.
  240. *
  241. * @note:
  242. * An error will be returned if a module already exists by that name, or
  243. * if the module requires a version of FreeType that is too great.
  244. */
  245. FT_EXPORT( FT_Error )
  246. FT_Add_Module( FT_Library library,
  247. const FT_Module_Class* clazz );
  248. /**************************************************************************
  249. *
  250. * @function:
  251. * FT_Get_Module
  252. *
  253. * @description:
  254. * Find a module by its name.
  255. *
  256. * @input:
  257. * library ::
  258. * A handle to the library object.
  259. *
  260. * module_name ::
  261. * The module's name (as an ASCII string).
  262. *
  263. * @return:
  264. * A module handle. 0~if none was found.
  265. *
  266. * @note:
  267. * FreeType's internal modules aren't documented very well, and you
  268. * should look up the source code for details.
  269. */
  270. FT_EXPORT( FT_Module )
  271. FT_Get_Module( FT_Library library,
  272. const char* module_name );
  273. /**************************************************************************
  274. *
  275. * @function:
  276. * FT_Remove_Module
  277. *
  278. * @description:
  279. * Remove a given module from a library instance.
  280. *
  281. * @inout:
  282. * library ::
  283. * A handle to a library object.
  284. *
  285. * @input:
  286. * module ::
  287. * A handle to a module object.
  288. *
  289. * @return:
  290. * FreeType error code. 0~means success.
  291. *
  292. * @note:
  293. * The module object is destroyed by the function in case of success.
  294. */
  295. FT_EXPORT( FT_Error )
  296. FT_Remove_Module( FT_Library library,
  297. FT_Module module );
  298. /**************************************************************************
  299. *
  300. * @macro:
  301. * FT_FACE_DRIVER_NAME
  302. *
  303. * @description:
  304. * A macro that retrieves the name of a font driver from a face object.
  305. *
  306. * @note:
  307. * The font driver name is a valid `module_name` for @FT_Property_Set
  308. * and @FT_Property_Get. This is not the same as @FT_Get_Font_Format.
  309. *
  310. * @since:
  311. * 2.11
  312. *
  313. */
  314. #define FT_FACE_DRIVER_NAME( face ) \
  315. ( ( *FT_REINTERPRET_CAST( FT_Module_Class**, \
  316. ( face )->driver ) )->module_name )
  317. /**************************************************************************
  318. *
  319. * @function:
  320. * FT_Property_Set
  321. *
  322. * @description:
  323. * Set a property for a given module.
  324. *
  325. * @input:
  326. * library ::
  327. * A handle to the library the module is part of.
  328. *
  329. * module_name ::
  330. * The module name.
  331. *
  332. * property_name ::
  333. * The property name. Properties are described in section
  334. * @properties.
  335. *
  336. * Note that only a few modules have properties.
  337. *
  338. * value ::
  339. * A generic pointer to a variable or structure that gives the new
  340. * value of the property. The exact definition of `value` is
  341. * dependent on the property; see section @properties.
  342. *
  343. * @return:
  344. * FreeType error code. 0~means success.
  345. *
  346. * @note:
  347. * If `module_name` isn't a valid module name, or `property_name`
  348. * doesn't specify a valid property, or if `value` doesn't represent a
  349. * valid value for the given property, an error is returned.
  350. *
  351. * The following example sets property 'bar' (a simple integer) in
  352. * module 'foo' to value~1.
  353. *
  354. * ```
  355. * FT_UInt bar;
  356. *
  357. *
  358. * bar = 1;
  359. * FT_Property_Set( library, "foo", "bar", &bar );
  360. * ```
  361. *
  362. * Note that the FreeType Cache sub-system doesn't recognize module
  363. * property changes. To avoid glyph lookup confusion within the cache
  364. * you should call @FTC_Manager_Reset to completely flush the cache if a
  365. * module property gets changed after @FTC_Manager_New has been called.
  366. *
  367. * It is not possible to set properties of the FreeType Cache sub-system
  368. * itself with FT_Property_Set; use @FTC_Property_Set instead.
  369. *
  370. * @since:
  371. * 2.4.11
  372. *
  373. */
  374. FT_EXPORT( FT_Error )
  375. FT_Property_Set( FT_Library library,
  376. const FT_String* module_name,
  377. const FT_String* property_name,
  378. const void* value );
  379. /**************************************************************************
  380. *
  381. * @function:
  382. * FT_Property_Get
  383. *
  384. * @description:
  385. * Get a module's property value.
  386. *
  387. * @input:
  388. * library ::
  389. * A handle to the library the module is part of.
  390. *
  391. * module_name ::
  392. * The module name.
  393. *
  394. * property_name ::
  395. * The property name. Properties are described in section
  396. * @properties.
  397. *
  398. * @inout:
  399. * value ::
  400. * A generic pointer to a variable or structure that gives the value
  401. * of the property. The exact definition of `value` is dependent on
  402. * the property; see section @properties.
  403. *
  404. * @return:
  405. * FreeType error code. 0~means success.
  406. *
  407. * @note:
  408. * If `module_name` isn't a valid module name, or `property_name`
  409. * doesn't specify a valid property, or if `value` doesn't represent a
  410. * valid value for the given property, an error is returned.
  411. *
  412. * The following example gets property 'baz' (a range) in module 'foo'.
  413. *
  414. * ```
  415. * typedef range_
  416. * {
  417. * FT_Int32 min;
  418. * FT_Int32 max;
  419. *
  420. * } range;
  421. *
  422. * range baz;
  423. *
  424. *
  425. * FT_Property_Get( library, "foo", "baz", &baz );
  426. * ```
  427. *
  428. * It is not possible to retrieve properties of the FreeType Cache
  429. * sub-system with FT_Property_Get; use @FTC_Property_Get instead.
  430. *
  431. * @since:
  432. * 2.4.11
  433. *
  434. */
  435. FT_EXPORT( FT_Error )
  436. FT_Property_Get( FT_Library library,
  437. const FT_String* module_name,
  438. const FT_String* property_name,
  439. void* value );
  440. /**************************************************************************
  441. *
  442. * @function:
  443. * FT_Set_Default_Properties
  444. *
  445. * @description:
  446. * If compilation option `FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES` is
  447. * set, this function reads the `FREETYPE_PROPERTIES` environment
  448. * variable to control driver properties. See section @properties for
  449. * more.
  450. *
  451. * If the compilation option is not set, this function does nothing.
  452. *
  453. * `FREETYPE_PROPERTIES` has the following syntax form (broken here into
  454. * multiple lines for better readability).
  455. *
  456. * ```
  457. * <optional whitespace>
  458. * <module-name1> ':'
  459. * <property-name1> '=' <property-value1>
  460. * <whitespace>
  461. * <module-name2> ':'
  462. * <property-name2> '=' <property-value2>
  463. * ...
  464. * ```
  465. *
  466. * Example:
  467. *
  468. * ```
  469. * FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
  470. * cff:no-stem-darkening=0
  471. * ```
  472. *
  473. * @inout:
  474. * library ::
  475. * A handle to a new library object.
  476. *
  477. * @since:
  478. * 2.8
  479. */
  480. FT_EXPORT( void )
  481. FT_Set_Default_Properties( FT_Library library );
  482. /**************************************************************************
  483. *
  484. * @function:
  485. * FT_Reference_Library
  486. *
  487. * @description:
  488. * A counter gets initialized to~1 at the time an @FT_Library structure
  489. * is created. This function increments the counter. @FT_Done_Library
  490. * then only destroys a library if the counter is~1, otherwise it simply
  491. * decrements the counter.
  492. *
  493. * This function helps in managing life-cycles of structures that
  494. * reference @FT_Library objects.
  495. *
  496. * @input:
  497. * library ::
  498. * A handle to a target library object.
  499. *
  500. * @return:
  501. * FreeType error code. 0~means success.
  502. *
  503. * @since:
  504. * 2.4.2
  505. */
  506. FT_EXPORT( FT_Error )
  507. FT_Reference_Library( FT_Library library );
  508. /**************************************************************************
  509. *
  510. * @function:
  511. * FT_New_Library
  512. *
  513. * @description:
  514. * This function is used to create a new FreeType library instance from a
  515. * given memory object. It is thus possible to use libraries with
  516. * distinct memory allocators within the same program. Note, however,
  517. * that the used @FT_Memory structure is expected to remain valid for the
  518. * life of the @FT_Library object.
  519. *
  520. * Normally, you would call this function (followed by a call to
  521. * @FT_Add_Default_Modules or a series of calls to @FT_Add_Module, and a
  522. * call to @FT_Set_Default_Properties) instead of @FT_Init_FreeType to
  523. * initialize the FreeType library.
  524. *
  525. * Don't use @FT_Done_FreeType but @FT_Done_Library to destroy a library
  526. * instance.
  527. *
  528. * @input:
  529. * memory ::
  530. * A handle to the original memory object.
  531. *
  532. * @output:
  533. * alibrary ::
  534. * A pointer to handle of a new library object.
  535. *
  536. * @return:
  537. * FreeType error code. 0~means success.
  538. *
  539. * @note:
  540. * See the discussion of reference counters in the description of
  541. * @FT_Reference_Library.
  542. */
  543. FT_EXPORT( FT_Error )
  544. FT_New_Library( FT_Memory memory,
  545. FT_Library *alibrary );
  546. /**************************************************************************
  547. *
  548. * @function:
  549. * FT_Done_Library
  550. *
  551. * @description:
  552. * Discard a given library object. This closes all drivers and discards
  553. * all resource objects.
  554. *
  555. * @input:
  556. * library ::
  557. * A handle to the target library.
  558. *
  559. * @return:
  560. * FreeType error code. 0~means success.
  561. *
  562. * @note:
  563. * See the discussion of reference counters in the description of
  564. * @FT_Reference_Library.
  565. */
  566. FT_EXPORT( FT_Error )
  567. FT_Done_Library( FT_Library library );
  568. /**************************************************************************
  569. *
  570. * @functype:
  571. * FT_DebugHook_Func
  572. *
  573. * @description:
  574. * A drop-in replacement (or rather a wrapper) for the bytecode or
  575. * charstring interpreter's main loop function.
  576. *
  577. * Its job is essentially
  578. *
  579. * - to activate debug mode to enforce single-stepping,
  580. *
  581. * - to call the main loop function to interpret the next opcode, and
  582. *
  583. * - to show the changed context to the user.
  584. *
  585. * An example for such a main loop function is `TT_RunIns` (declared in
  586. * FreeType's internal header file `src/truetype/ttinterp.h`).
  587. *
  588. * Have a look at the source code of the `ttdebug` FreeType demo program
  589. * for an example of a drop-in replacement.
  590. *
  591. * @inout:
  592. * arg ::
  593. * A typeless pointer, to be cast to the main loop function's data
  594. * structure (which depends on the font module). For TrueType fonts
  595. * it is bytecode interpreter's execution context, `TT_ExecContext`,
  596. * which is declared in FreeType's internal header file `tttypes.h`.
  597. */
  598. typedef FT_Error
  599. (*FT_DebugHook_Func)( void* arg );
  600. /**************************************************************************
  601. *
  602. * @enum:
  603. * FT_DEBUG_HOOK_XXX
  604. *
  605. * @description:
  606. * A list of named debug hook indices.
  607. *
  608. * @values:
  609. * FT_DEBUG_HOOK_TRUETYPE::
  610. * This hook index identifies the TrueType bytecode debugger.
  611. */
  612. #define FT_DEBUG_HOOK_TRUETYPE 0
  613. /**************************************************************************
  614. *
  615. * @function:
  616. * FT_Set_Debug_Hook
  617. *
  618. * @description:
  619. * Set a debug hook function for debugging the interpreter of a font
  620. * format.
  621. *
  622. * While this is a public API function, an application needs access to
  623. * FreeType's internal header files to do something useful.
  624. *
  625. * Have a look at the source code of the `ttdebug` FreeType demo program
  626. * for an example of its usage.
  627. *
  628. * @inout:
  629. * library ::
  630. * A handle to the library object.
  631. *
  632. * @input:
  633. * hook_index ::
  634. * The index of the debug hook. You should use defined enumeration
  635. * macros like @FT_DEBUG_HOOK_TRUETYPE.
  636. *
  637. * debug_hook ::
  638. * The function used to debug the interpreter.
  639. *
  640. * @note:
  641. * Currently, four debug hook slots are available, but only one (for the
  642. * TrueType interpreter) is defined.
  643. */
  644. FT_EXPORT( void )
  645. FT_Set_Debug_Hook( FT_Library library,
  646. FT_UInt hook_index,
  647. FT_DebugHook_Func debug_hook );
  648. /**************************************************************************
  649. *
  650. * @function:
  651. * FT_Add_Default_Modules
  652. *
  653. * @description:
  654. * Add the set of default drivers to a given library object. This is
  655. * only useful when you create a library object with @FT_New_Library
  656. * (usually to plug a custom memory manager).
  657. *
  658. * @inout:
  659. * library ::
  660. * A handle to a new library object.
  661. */
  662. FT_EXPORT( void )
  663. FT_Add_Default_Modules( FT_Library library );
  664. /**************************************************************************
  665. *
  666. * @section:
  667. * truetype_engine
  668. *
  669. * @title:
  670. * The TrueType Engine
  671. *
  672. * @abstract:
  673. * TrueType bytecode support.
  674. *
  675. * @description:
  676. * This section contains a function used to query the level of TrueType
  677. * bytecode support compiled in this version of the library.
  678. *
  679. */
  680. /**************************************************************************
  681. *
  682. * @enum:
  683. * FT_TrueTypeEngineType
  684. *
  685. * @description:
  686. * A list of values describing which kind of TrueType bytecode engine is
  687. * implemented in a given FT_Library instance. It is used by the
  688. * @FT_Get_TrueType_Engine_Type function.
  689. *
  690. * @values:
  691. * FT_TRUETYPE_ENGINE_TYPE_NONE ::
  692. * The library doesn't implement any kind of bytecode interpreter.
  693. *
  694. * FT_TRUETYPE_ENGINE_TYPE_UNPATENTED ::
  695. * Deprecated and removed.
  696. *
  697. * FT_TRUETYPE_ENGINE_TYPE_PATENTED ::
  698. * The library implements a bytecode interpreter that covers the full
  699. * instruction set of the TrueType virtual machine (this was governed
  700. * by patents until May 2010, hence the name).
  701. *
  702. * @since:
  703. * 2.2
  704. *
  705. */
  706. typedef enum FT_TrueTypeEngineType_
  707. {
  708. FT_TRUETYPE_ENGINE_TYPE_NONE = 0,
  709. FT_TRUETYPE_ENGINE_TYPE_UNPATENTED,
  710. FT_TRUETYPE_ENGINE_TYPE_PATENTED
  711. } FT_TrueTypeEngineType;
  712. /**************************************************************************
  713. *
  714. * @function:
  715. * FT_Get_TrueType_Engine_Type
  716. *
  717. * @description:
  718. * Return an @FT_TrueTypeEngineType value to indicate which level of the
  719. * TrueType virtual machine a given library instance supports.
  720. *
  721. * @input:
  722. * library ::
  723. * A library instance.
  724. *
  725. * @return:
  726. * A value indicating which level is supported.
  727. *
  728. * @since:
  729. * 2.2
  730. *
  731. */
  732. FT_EXPORT( FT_TrueTypeEngineType )
  733. FT_Get_TrueType_Engine_Type( FT_Library library );
  734. /* */
  735. FT_END_HEADER
  736. #endif /* FTMODAPI_H_ */
  737. /* END */