sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ftdriver.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * ftdriver.h
4 *
5 * FreeType API for controlling driver modules (specification only).
6 *
7 * Copyright (C) 2017-2025 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
18
23#ifndef FTDRIVER_H_
24#define FTDRIVER_H_
25
26#include <freetype/freetype.h>
27#include <freetype/ftparams.h>
28
29#ifdef FREETYPE_H
30#error "freetype.h of FreeType 1 has been loaded!"
31#error "Please fix the directory search order for header files"
32#error "so that freetype.h of FreeType 2 is found first."
33#endif
34
35
36FT_BEGIN_HEADER
37
38
39 /**************************************************************************
40 *
41 * @section:
42 * auto_hinter
43 *
44 * @title:
45 * The auto-hinter
46 *
47 * @abstract:
48 * Controlling the auto-hinting module.
49 *
50 * @description:
51 * While FreeType's auto-hinter doesn't expose API functions by itself,
52 * it is possible to control its behaviour with @FT_Property_Set and
53 * @FT_Property_Get. The following lists the available properties
54 * together with the necessary macros and structures.
55 *
56 * Note that the auto-hinter's module name is 'autofitter' for historical
57 * reasons.
58 *
59 * Available properties are @increase-x-height, @no-stem-darkening
60 * (experimental), @darkening-parameters (experimental),
61 * @glyph-to-script-map (experimental), @fallback-script (experimental),
62 * and @default-script (experimental), as documented in the @properties
63 * section.
64 *
65 */
66
67
68 /**************************************************************************
69 *
70 * @section:
71 * cff_driver
72 *
73 * @title:
74 * The CFF driver
75 *
76 * @abstract:
77 * Controlling the CFF driver module.
78 *
79 * @description:
80 * While FreeType's CFF driver doesn't expose API functions by itself, it
81 * is possible to control its behaviour with @FT_Property_Set and
82 * @FT_Property_Get.
83 *
84 * The CFF driver's module name is 'cff'.
85 *
86 * Available properties are @hinting-engine, @no-stem-darkening,
87 * @darkening-parameters, and @random-seed, as documented in the
88 * @properties section.
89 *
90 *
91 * **Hinting and anti-aliasing principles of the new engine**
92 *
93 * The rasterizer is positioning horizontal features (e.g., ascender
94 * height & x-height, or crossbars) on the pixel grid and minimizing the
95 * amount of anti-aliasing applied to them, while placing vertical
96 * features (vertical stems) on the pixel grid without hinting, thus
97 * representing the stem position and weight accurately. Sometimes the
98 * vertical stems may be only partially black. In this context,
99 * 'anti-aliasing' means that stems are not positioned exactly on pixel
100 * borders, causing a fuzzy appearance.
101 *
102 * There are two principles behind this approach.
103 *
104 * 1) No hinting in the horizontal direction: Unlike 'superhinted'
105 * TrueType, which changes glyph widths to accommodate regular
106 * inter-glyph spacing, Adobe's approach is 'faithful to the design' in
107 * representing both the glyph width and the inter-glyph spacing designed
108 * for the font. This makes the screen display as close as it can be to
109 * the result one would get with infinite resolution, while preserving
110 * what is considered the key characteristics of each glyph. Note that
111 * the distances between unhinted and grid-fitted positions at small
112 * sizes are comparable to kerning values and thus would be noticeable
113 * (and distracting) while reading if hinting were applied.
114 *
115 * One of the reasons to not hint horizontally is anti-aliasing for LCD
116 * screens: The pixel geometry of modern displays supplies three vertical
117 * subpixels as the eye moves horizontally across each visible pixel. On
118 * devices where we can be certain this characteristic is present a
119 * rasterizer can take advantage of the subpixels to add increments of
120 * weight. In Western writing systems this turns out to be the more
121 * critical direction anyway; the weights and spacing of vertical stems
122 * (see above) are central to Armenian, Cyrillic, Greek, and Latin type
123 * designs. Even when the rasterizer uses greyscale anti-aliasing instead
124 * of color (a necessary compromise when one doesn't know the screen
125 * characteristics), the unhinted vertical features preserve the design's
126 * weight and spacing much better than aliased type would.
127 *
128 * 2) Alignment in the vertical direction: Weights and spacing along the
129 * y~axis are less critical; what is much more important is the visual
130 * alignment of related features (like cap-height and x-height). The
131 * sense of alignment for these is enhanced by the sharpness of grid-fit
132 * edges, while the cruder vertical resolution (full pixels instead of
133 * 1/3 pixels) is less of a problem.
134 *
135 * On the technical side, horizontal alignment zones for ascender,
136 * x-height, and other important height values (traditionally called
137 * 'blue zones') as defined in the font are positioned independently,
138 * each being rounded to the nearest pixel edge, taking care of overshoot
139 * suppression at small sizes, stem darkening, and scaling.
140 *
141 * Hstems (that is, hint values defined in the font to help align
142 * horizontal features) that fall within a blue zone are said to be
143 * 'captured' and are aligned to that zone. Uncaptured stems are moved
144 * in one of four ways, top edge up or down, bottom edge up or down.
145 * Unless there are conflicting hstems, the smallest movement is taken to
146 * minimize distortion.
147 *
148 */
149
150
151 /**************************************************************************
152 *
153 * @section:
154 * pcf_driver
155 *
156 * @title:
157 * The PCF driver
158 *
159 * @abstract:
160 * Controlling the PCF driver module.
161 *
162 * @description:
163 * While FreeType's PCF driver doesn't expose API functions by itself, it
164 * is possible to control its behaviour with @FT_Property_Set and
165 * @FT_Property_Get. Right now, there is a single property
166 * @no-long-family-names available if FreeType is compiled with
167 * PCF_CONFIG_OPTION_LONG_FAMILY_NAMES.
168 *
169 * The PCF driver's module name is 'pcf'.
170 *
171 */
172
173
174 /**************************************************************************
175 *
176 * @section:
177 * t1_cid_driver
178 *
179 * @title:
180 * The Type 1 and CID drivers
181 *
182 * @abstract:
183 * Controlling the Type~1 and CID driver modules.
184 *
185 * @description:
186 * It is possible to control the behaviour of FreeType's Type~1 and
187 * Type~1 CID drivers with @FT_Property_Set and @FT_Property_Get.
188 *
189 * Behind the scenes, both drivers use the Adobe CFF engine for hinting;
190 * however, the used properties must be specified separately.
191 *
192 * The Type~1 driver's module name is 'type1'; the CID driver's module
193 * name is 't1cid'.
194 *
195 * Available properties are @hinting-engine, @no-stem-darkening,
196 * @darkening-parameters, and @random-seed, as documented in the
197 * @properties section.
198 *
199 * Please see the @cff_driver section for more details on the new hinting
200 * engine.
201 *
202 */
203
204
205 /**************************************************************************
206 *
207 * @section:
208 * tt_driver
209 *
210 * @title:
211 * The TrueType driver
212 *
213 * @abstract:
214 * Controlling the TrueType driver module.
215 *
216 * @description:
217 * While FreeType's TrueType driver doesn't expose API functions by
218 * itself, it is possible to control its behaviour with @FT_Property_Set
219 * and @FT_Property_Get.
220 *
221 * The TrueType driver's module name is 'truetype'; a single property
222 * @interpreter-version is available, as documented in the @properties
223 * section.
224 *
225 * To help understand the differences between interpreter versions, we
226 * introduce a list of definitions, kindly provided by Greg Hitchcock.
227 *
228 * _Bi-Level Rendering_
229 *
230 * Monochromatic rendering, exclusively used in the early days of
231 * TrueType by both Apple and Microsoft. Microsoft's GDI interface
232 * supported hinting of the right-side bearing point, such that the
233 * advance width could be non-linear. Most often this was done to
234 * achieve some level of glyph symmetry. To enable reasonable
235 * performance (e.g., not having to run hinting on all glyphs just to get
236 * the widths) there was a bit in the head table indicating if the side
237 * bearing was hinted, and additional tables, 'hdmx' and 'LTSH', to cache
238 * hinting widths across multiple sizes and device aspect ratios.
239 *
240 * _Font Smoothing_
241 *
242 * Microsoft's GDI implementation of anti-aliasing. Not traditional
243 * anti-aliasing as the outlines were hinted before the sampling. The
244 * widths matched the bi-level rendering.
245 *
246 * _ClearType Rendering_
247 *
248 * Technique that uses physical subpixels to improve rendering on LCD
249 * (and other) displays. Because of the higher resolution, many methods
250 * of improving symmetry in glyphs through hinting the right-side bearing
251 * were no longer necessary. This lead to what GDI calls 'natural
252 * widths' ClearType, see
253 * http://rastertragedy.com/RTRCh4.htm#Sec21. Since hinting
254 * has extra resolution, most non-linearity went away, but it is still
255 * possible for hints to change the advance widths in this mode.
256 *
257 * _ClearType Compatible Widths_
258 *
259 * One of the earliest challenges with ClearType was allowing the
260 * implementation in GDI to be selected without requiring all UI and
261 * documents to reflow. To address this, a compatible method of
262 * rendering ClearType was added where the font hints are executed once
263 * to determine the width in bi-level rendering, and then re-run in
264 * ClearType, with the difference in widths being absorbed in the font
265 * hints for ClearType (mostly in the white space of hints); see
266 * http://rastertragedy.com/RTRCh4.htm#Sec20. Somewhat by
267 * definition, compatible width ClearType allows for non-linear widths,
268 * but only when the bi-level version has non-linear widths.
269 *
270 * _ClearType Subpixel Positioning_
271 *
272 * One of the nice benefits of ClearType is the ability to more crisply
273 * display fractional widths; unfortunately, the GDI model of integer
274 * bitmaps did not support this. However, the WPF and Direct Write
275 * frameworks do support fractional widths. DWrite calls this 'natural
276 * mode', not to be confused with GDI's 'natural widths'. Subpixel
277 * positioning, in the current implementation of Direct Write,
278 * unfortunately does not support hinted advance widths, see
279 * http://rastertragedy.com/RTRCh4.htm#Sec22. Note that the
280 * TrueType interpreter fully allows the advance width to be adjusted in
281 * this mode, just the DWrite client will ignore those changes.
282 *
283 * _ClearType Backward Compatibility_
284 *
285 * This is a set of exceptions made in the TrueType interpreter to
286 * minimize hinting techniques that were problematic with the extra
287 * resolution of ClearType; see
288 * http://rastertragedy.com/RTRCh4.htm#Sec1 and
289 * https://learn.microsoft.com/typography/cleartype/truetypecleartype.
290 * This technique is not to be confused with ClearType compatible widths.
291 * ClearType backward compatibility has no direct impact on changing
292 * advance widths, but there might be an indirect impact on disabling
293 * some deltas. This could be worked around in backward compatibility
294 * mode.
295 *
296 * _Native ClearType Mode_
297 *
298 * (Not to be confused with 'natural widths'.) This mode removes all the
299 * exceptions in the TrueType interpreter when running with ClearType.
300 * Any issues on widths would still apply, though.
301 *
302 */
303
304
305 /**************************************************************************
306 *
307 * @section:
308 * ot_svg_driver
309 *
310 * @title:
311 * The SVG driver
312 *
313 * @abstract:
314 * Controlling the external rendering of OT-SVG glyphs.
315 *
316 * @description:
317 * By default, FreeType can only load the 'SVG~' table of OpenType fonts
318 * if configuration macro `FT_CONFIG_OPTION_SVG` is defined. To make it
319 * render SVG glyphs, an external SVG rendering library is needed. All
320 * details on the interface between FreeType and the external library
321 * via function hooks can be found in section @svg_fonts.
322 *
323 * The OT-SVG driver's module name is 'ot-svg'; it supports a single
324 * property called @svg-hooks, documented below in the @properties
325 * section.
326 *
327 */
328
329
330 /**************************************************************************
331 *
332 * @section:
333 * properties
334 *
335 * @title:
336 * Driver properties
337 *
338 * @abstract:
339 * Controlling driver modules.
340 *
341 * @description:
342 * Driver modules can be controlled by setting and unsetting properties,
343 * using the functions @FT_Property_Set and @FT_Property_Get. This
344 * section documents the available properties, together with auxiliary
345 * macros and structures.
346 *
347 */
348
349
350 /**************************************************************************
351 *
352 * @enum:
353 * FT_HINTING_XXX
354 *
355 * @description:
356 * A list of constants used for the @hinting-engine property to select
357 * the hinting engine for CFF, Type~1, and CID fonts.
358 *
359 * @values:
360 * FT_HINTING_FREETYPE ::
361 * Use the old FreeType hinting engine.
362 *
363 * FT_HINTING_ADOBE ::
364 * Use the hinting engine contributed by Adobe.
365 *
366 * @since:
367 * 2.9
368 *
369 */
370#define FT_HINTING_FREETYPE 0
371#define FT_HINTING_ADOBE 1
372
373 /* these constants (introduced in 2.4.12) are deprecated */
374#define FT_CFF_HINTING_FREETYPE FT_HINTING_FREETYPE
375#define FT_CFF_HINTING_ADOBE FT_HINTING_ADOBE
376
377
378 /**************************************************************************
379 *
380 * @property:
381 * hinting-engine
382 *
383 * @description:
384 * Thanks to Adobe, which contributed a new hinting (and parsing) engine,
385 * an application can select between 'freetype' and 'adobe' if compiled
386 * with `CFF_CONFIG_OPTION_OLD_ENGINE`. If this configuration macro
387 * isn't defined, 'hinting-engine' does nothing.
388 *
389 * The same holds for the Type~1 and CID modules if compiled with
390 * `T1_CONFIG_OPTION_OLD_ENGINE`.
391 *
392 * For the 'cff' module, the default engine is 'adobe'. For both the
393 * 'type1' and 't1cid' modules, the default engine is 'adobe', too.
394 *
395 * @note:
396 * This property can be used with @FT_Property_Get also.
397 *
398 * This property can be set via the `FREETYPE_PROPERTIES` environment
399 * variable (using values 'adobe' or 'freetype').
400 *
401 * @example:
402 * The following example code demonstrates how to select Adobe's hinting
403 * engine for the 'cff' module (omitting the error handling).
404 *
405 * ```
406 * FT_Library library;
407 * FT_UInt hinting_engine = FT_HINTING_ADOBE;
408 *
409 *
410 * FT_Init_FreeType( &library );
411 *
412 * FT_Property_Set( library, "cff",
413 * "hinting-engine", &hinting_engine );
414 * ```
415 *
416 * @since:
417 * 2.4.12 (for 'cff' module)
418 *
419 * 2.9 (for 'type1' and 't1cid' modules)
420 *
421 */
422
423
424 /**************************************************************************
425 *
426 * @property:
427 * no-stem-darkening
428 *
429 * @description:
430 * All glyphs that pass through the auto-hinter will be emboldened unless
431 * this property is set to TRUE. The same is true for the CFF, Type~1,
432 * and CID font modules if the 'Adobe' engine is selected (which is the
433 * default).
434 *
435 * Stem darkening emboldens glyphs at smaller sizes to make them more
436 * readable on common low-DPI screens when using linear alpha blending
437 * and gamma correction, see @FT_Render_Glyph. When not using linear
438 * alpha blending and gamma correction, glyphs will appear heavy and
439 * fuzzy!
440 *
441 * Gamma correction essentially lightens fonts since shades of grey are
442 * shifted to higher pixel values (=~higher brightness) to match the
443 * original intention to the reality of our screens. The side-effect is
444 * that glyphs 'thin out'. Mac OS~X and Adobe's proprietary font
445 * rendering library implement a counter-measure: stem darkening at
446 * smaller sizes where shades of gray dominate. By emboldening a glyph
447 * slightly in relation to its pixel size, individual pixels get higher
448 * coverage of filled-in outlines and are therefore 'blacker'. This
449 * counteracts the 'thinning out' of glyphs, making text remain readable
450 * at smaller sizes.
451 *
452 * For the auto-hinter, stem-darkening is experimental currently and thus
453 * switched off by default (that is, `no-stem-darkening` is set to TRUE
454 * by default). Total consistency with the CFF driver is not achieved
455 * right now because the emboldening method differs and glyphs must be
456 * scaled down on the Y-axis to keep outline points inside their
457 * precomputed blue zones. The smaller the size (especially 9ppem and
458 * down), the higher the loss of emboldening versus the CFF driver.
459 *
460 * Note that stem darkening is never applied if @FT_LOAD_NO_SCALE is set.
461 *
462 * @note:
463 * This property can be used with @FT_Property_Get also.
464 *
465 * This property can be set via the `FREETYPE_PROPERTIES` environment
466 * variable (using values 1 and 0 for 'on' and 'off', respectively). It
467 * can also be set per face using @FT_Face_Properties with
468 * @FT_PARAM_TAG_STEM_DARKENING.
469 *
470 * @example:
471 * ```
472 * FT_Library library;
473 * FT_Bool no_stem_darkening = TRUE;
474 *
475 *
476 * FT_Init_FreeType( &library );
477 *
478 * FT_Property_Set( library, "cff",
479 * "no-stem-darkening", &no_stem_darkening );
480 * ```
481 *
482 * @since:
483 * 2.4.12 (for 'cff' module)
484 *
485 * 2.6.2 (for 'autofitter' module)
486 *
487 * 2.9 (for 'type1' and 't1cid' modules)
488 *
489 */
490
491
492 /**************************************************************************
493 *
494 * @property:
495 * darkening-parameters
496 *
497 * @description:
498 * By default, the Adobe hinting engine, as used by the CFF, Type~1, and
499 * CID font drivers, darkens stems as follows (if the `no-stem-darkening`
500 * property isn't set):
501 *
502 * ```
503 * stem width <= 0.5px: darkening amount = 0.4px
504 * stem width = 1px: darkening amount = 0.275px
505 * stem width = 1.667px: darkening amount = 0.275px
506 * stem width >= 2.333px: darkening amount = 0px
507 * ```
508 *
509 * and piecewise linear in-between. At configuration time, these four
510 * control points can be set with the macro
511 * `CFF_CONFIG_OPTION_DARKENING_PARAMETERS`; the CFF, Type~1, and CID
512 * drivers share these values. At runtime, the control points can be
513 * changed using the `darkening-parameters` property (see the example
514 * below that demonstrates this for the Type~1 driver).
515 *
516 * The x~values give the stem width, and the y~values the darkening
517 * amount. The unit is 1000th of pixels. All coordinate values must be
518 * positive; the x~values must be monotonically increasing; the y~values
519 * must be monotonically decreasing and smaller than or equal to 500
520 * (corresponding to half a pixel); the slope of each linear piece must
521 * be shallower than -1 (e.g., -.4).
522 *
523 * The auto-hinter provides this property, too, as an experimental
524 * feature. See @no-stem-darkening for more.
525 *
526 * @note:
527 * This property can be used with @FT_Property_Get also.
528 *
529 * This property can be set via the `FREETYPE_PROPERTIES` environment
530 * variable, using eight comma-separated integers without spaces. Here
531 * the above example, using `\` to break the line for readability.
532 *
533 * ```
534 * FREETYPE_PROPERTIES=\
535 * type1:darkening-parameters=500,300,1000,200,1500,100,2000,0
536 * ```
537 *
538 * @example:
539 * ```
540 * FT_Library library;
541 * FT_Int darken_params[8] = { 500, 300, // x1, y1
542 * 1000, 200, // x2, y2
543 * 1500, 100, // x3, y3
544 * 2000, 0 }; // x4, y4
545 *
546 *
547 * FT_Init_FreeType( &library );
548 *
549 * FT_Property_Set( library, "type1",
550 * "darkening-parameters", darken_params );
551 * ```
552 *
553 * @since:
554 * 2.5.1 (for 'cff' module)
555 *
556 * 2.6.2 (for 'autofitter' module)
557 *
558 * 2.9 (for 'type1' and 't1cid' modules)
559 *
560 */
561
562
563 /**************************************************************************
564 *
565 * @property:
566 * random-seed
567 *
568 * @description:
569 * By default, the seed value for the CFF 'random' operator and the
570 * similar '0 28 callothersubr pop' command for the Type~1 and CID
571 * drivers is set to a random value. However, mainly for debugging
572 * purposes, it is often necessary to use a known value as a seed so that
573 * the pseudo-random number sequences generated by 'random' are
574 * repeatable.
575 *
576 * The `random-seed` property does that. Its argument is a signed 32bit
577 * integer; if the value is zero or negative, the seed given by the
578 * `intitialRandomSeed` private DICT operator in a CFF file gets used (or
579 * a default value if there is no such operator). If the value is
580 * positive, use it instead of `initialRandomSeed`, which is consequently
581 * ignored.
582 *
583 * @note:
584 * This property can be set via the `FREETYPE_PROPERTIES` environment
585 * variable. It can also be set per face using @FT_Face_Properties with
586 * @FT_PARAM_TAG_RANDOM_SEED.
587 *
588 * @since:
589 * 2.8 (for 'cff' module)
590 *
591 * 2.9 (for 'type1' and 't1cid' modules)
592 *
593 */
594
595
596 /**************************************************************************
597 *
598 * @property:
599 * no-long-family-names
600 *
601 * @description:
602 * If `PCF_CONFIG_OPTION_LONG_FAMILY_NAMES` is active while compiling
603 * FreeType, the PCF driver constructs long family names.
604 *
605 * There are many PCF fonts just called 'Fixed' which look completely
606 * different, and which have nothing to do with each other. When
607 * selecting 'Fixed' in KDE or Gnome one gets results that appear rather
608 * random, the style changes often if one changes the size and one cannot
609 * select some fonts at all. The improve this situation, the PCF module
610 * prepends the foundry name (plus a space) to the family name. It also
611 * checks whether there are 'wide' characters; all put together, family
612 * names like 'Sony Fixed' or 'Misc Fixed Wide' are constructed.
613 *
614 * If `no-long-family-names` is set, this feature gets switched off.
615 *
616 * @note:
617 * This property can be used with @FT_Property_Get also.
618 *
619 * This property can be set via the `FREETYPE_PROPERTIES` environment
620 * variable (using values 1 and 0 for 'on' and 'off', respectively).
621 *
622 * @example:
623 * ```
624 * FT_Library library;
625 * FT_Bool no_long_family_names = TRUE;
626 *
627 *
628 * FT_Init_FreeType( &library );
629 *
630 * FT_Property_Set( library, "pcf",
631 * "no-long-family-names",
632 * &no_long_family_names );
633 * ```
634 *
635 * @since:
636 * 2.8
637 */
638
639
640 /**************************************************************************
641 *
642 * @enum:
643 * TT_INTERPRETER_VERSION_XXX
644 *
645 * @description:
646 * A list of constants used for the @interpreter-version property to
647 * select the hinting engine for Truetype fonts.
648 *
649 * The numeric value in the constant names represents the version number
650 * as returned by the 'GETINFO' bytecode instruction.
651 *
652 * @values:
653 * TT_INTERPRETER_VERSION_35 ::
654 * Version~35 corresponds to MS rasterizer v.1.7 as used e.g. in
655 * Windows~98; only grayscale and B/W rasterizing is supported.
656 *
657 * TT_INTERPRETER_VERSION_38 ::
658 * Version~38 is the same Version~40. The original 'Infinality' code is
659 * no longer available.
660 *
661 * TT_INTERPRETER_VERSION_40 ::
662 * Version~40 corresponds to MS rasterizer v.2.1; it is roughly
663 * equivalent to the hinting provided by DirectWrite ClearType (as can
664 * be found, for example, in Microsoft's Edge Browser on Windows~10).
665 * It is used in FreeType to select the 'minimal' subpixel hinting
666 * code, a stripped-down and higher performance version of the
667 * 'Infinality' code.
668 *
669 * @note:
670 * This property controls the behaviour of the bytecode interpreter and
671 * thus how outlines get hinted. It does **not** control how glyph get
672 * rasterized! In particular, it does not control subpixel color
673 * filtering.
674 *
675 * If FreeType has not been compiled with the configuration option
676 * `TT_CONFIG_OPTION_SUBPIXEL_HINTING`, selecting version~38 or~40 causes
677 * an `FT_Err_Unimplemented_Feature` error.
678 *
679 * Depending on the graphics framework, Microsoft uses different bytecode
680 * and rendering engines. As a consequence, the version numbers returned
681 * by a call to the 'GETINFO' bytecode instruction are more convoluted
682 * than desired.
683 *
684 * Here are two tables that try to shed some light on the possible values
685 * for the MS rasterizer engine, together with the additional features
686 * introduced by it.
687 *
688 * ```
689 * GETINFO framework version feature
690 * -------------------------------------------------------------------
691 * 3 GDI (Win 3.1), v1.0 16-bit, first version
692 * TrueImage
693 * 33 GDI (Win NT 3.1), v1.5 32-bit
694 * HP Laserjet
695 * 34 GDI (Win 95) v1.6 font smoothing,
696 * new SCANTYPE opcode
697 * 35 GDI (Win 98/2000) v1.7 (UN)SCALED_COMPONENT_OFFSET
698 * bits in composite glyphs
699 * 36 MGDI (Win CE 2) v1.6+ classic ClearType
700 * 37 GDI (XP and later), v1.8 ClearType
701 * GDI+ old (before Vista)
702 * 38 GDI+ old (Vista, Win 7), v1.9 subpixel ClearType,
703 * WPF Y-direction ClearType,
704 * additional error checking
705 * 39 DWrite (before Win 8) v2.0 subpixel ClearType flags
706 * in GETINFO opcode,
707 * bug fixes
708 * 40 GDI+ (after Win 7), v2.1 Y-direction ClearType flag
709 * DWrite (Win 8) in GETINFO opcode,
710 * Gray ClearType
711 * ```
712 *
713 * The 'version' field gives a rough orientation only, since some
714 * applications provided certain features much earlier (as an example,
715 * Microsoft Reader used subpixel and Y-direction ClearType already in
716 * Windows 2000). Similarly, updates to a given framework might include
717 * improved hinting support.
718 *
719 * ```
720 * version sampling rendering comment
721 * x y x y
722 * --------------------------------------------------------------
723 * v1.0 normal normal B/W B/W bi-level
724 * v1.6 high high gray gray grayscale
725 * v1.8 high normal color-filter B/W (GDI) ClearType
726 * v1.9 high high color-filter gray Color ClearType
727 * v2.1 high normal gray B/W Gray ClearType
728 * v2.1 high high gray gray Gray ClearType
729 * ```
730 *
731 * Color and Gray ClearType are the two available variants of
732 * 'Y-direction ClearType', meaning grayscale rasterization along the
733 * Y-direction; the name used in the TrueType specification for this
734 * feature is 'symmetric smoothing'. 'Classic ClearType' is the original
735 * algorithm used before introducing a modified version in Win~XP.
736 * Another name for v1.6's grayscale rendering is 'font smoothing', and
737 * 'Color ClearType' is sometimes also called 'DWrite ClearType'. To
738 * differentiate between today's Color ClearType and the earlier
739 * ClearType variant with B/W rendering along the vertical axis, the
740 * latter is sometimes called 'GDI ClearType'.
741 *
742 * 'Normal' and 'high' sampling describe the (virtual) resolution to
743 * access the rasterized outline after the hinting process. 'Normal'
744 * means 1 sample per grid line (i.e., B/W). In the current Microsoft
745 * implementation, 'high' means an extra virtual resolution of 16x16 (or
746 * 16x1) grid lines per pixel for bytecode instructions like 'MIRP'.
747 * After hinting, these 16 grid lines are mapped to 6x5 (or 6x1) grid
748 * lines for color filtering if Color ClearType is activated.
749 *
750 * Note that 'Gray ClearType' is essentially the same as v1.6's grayscale
751 * rendering. However, the GETINFO instruction handles it differently:
752 * v1.6 returns bit~12 (hinting for grayscale), while v2.1 returns
753 * bits~13 (hinting for ClearType), 18 (symmetrical smoothing), and~19
754 * (Gray ClearType). Also, this mode respects bits 2 and~3 for the
755 * version~1 gasp table exclusively (like Color ClearType), while v1.6
756 * only respects the values of version~0 (bits 0 and~1).
757 *
758 * Keep in mind that the features of the above interpreter versions might
759 * not map exactly to FreeType features or behavior because it is a
760 * fundamentally different library with different internals.
761 *
762 */
763#define TT_INTERPRETER_VERSION_35 35
764#define TT_INTERPRETER_VERSION_38 38
765#define TT_INTERPRETER_VERSION_40 40
766
767
768 /**************************************************************************
769 *
770 * @property:
771 * interpreter-version
772 *
773 * @description:
774 * Currently, three versions are available, two representing the bytecode
775 * interpreter with subpixel hinting support (old 'Infinality' code and
776 * new stripped-down and higher performance 'minimal' code) and one
777 * without, respectively. The default is subpixel support if
778 * `TT_CONFIG_OPTION_SUBPIXEL_HINTING` is defined, and no subpixel
779 * support otherwise (since it isn't available then).
780 *
781 * If subpixel hinting is on, many TrueType bytecode instructions behave
782 * differently compared to B/W or grayscale rendering (except if 'native
783 * ClearType' is selected by the font). Microsoft's main idea is to
784 * render at a much increased horizontal resolution, then sampling down
785 * the created output to subpixel precision. However, many older fonts
786 * are not suited to this and must be specially taken care of by applying
787 * (hardcoded) tweaks in Microsoft's interpreter.
788 *
789 * Details on subpixel hinting and some of the necessary tweaks can be
790 * found in Greg Hitchcock's whitepaper at
791 * 'https://learn.microsoft.com/typography/cleartype/truetypecleartype'.
792 * Note that FreeType currently doesn't really 'subpixel hint' (6x1, 6x2,
793 * or 6x5 supersampling) like discussed in the paper. Depending on the
794 * chosen interpreter, it simply ignores instructions on vertical stems
795 * to arrive at very similar results.
796 *
797 * @note:
798 * This property can be used with @FT_Property_Get also.
799 *
800 * This property can be set via the `FREETYPE_PROPERTIES` environment
801 * variable (using values '35', '38', or '40').
802 *
803 * @example:
804 * The following example code demonstrates how to deactivate subpixel
805 * hinting (omitting the error handling).
806 *
807 * ```
808 * FT_Library library;
809 * FT_Face face;
810 * FT_UInt interpreter_version = TT_INTERPRETER_VERSION_35;
811 *
812 *
813 * FT_Init_FreeType( &library );
814 *
815 * FT_Property_Set( library, "truetype",
816 * "interpreter-version",
817 * &interpreter_version );
818 * ```
819 *
820 * @since:
821 * 2.5
822 */
823
824
825 /**************************************************************************
826 *
827 * @property:
828 * spread
829 *
830 * @description:
831 * This property of the 'sdf' and 'bsdf' renderers defines how the signed
832 * distance field (SDF) is represented in the output bitmap. The output
833 * values are calculated as follows, '128 * ( SDF / spread + 1 )', with
834 * the result clamped to the 8-bit range [0..255]. Therefore, 'spread'
835 * is also the maximum euclidean distance from the edge after which the
836 * values are clamped. The spread is specified in pixels with the
837 * default value of 8. For accurate SDF texture mapping (interpolation),
838 * the spread should be large enough to accommodate the target grid unit.
839 *
840 * @example:
841 * The following example code demonstrates how to set the SDF spread
842 * (omitting the error handling).
843 *
844 * ```
845 * FT_Library library;
846 * FT_Int spread = 2;
847 *
848 *
849 * FT_Init_FreeType( &library );
850 *
851 * FT_Property_Set( library, "sdf", "spread", &spread );
852 * ```
853 *
854 * @note:
855 * FreeType has two rasterizers for generating SDF, namely:
856 *
857 * 1. `sdf` for generating SDF directly from glyph's outline, and
858 *
859 * 2. `bsdf` for generating SDF from rasterized bitmaps.
860 *
861 * Depending on the glyph type (i.e., outline or bitmap), one of the two
862 * rasterizers is chosen at runtime and used for generating SDFs. To
863 * force the use of `bsdf` you should render the glyph with any of the
864 * FreeType's other rendering modes (e.g., `FT_RENDER_MODE_NORMAL`) and
865 * then re-render with `FT_RENDER_MODE_SDF`.
866 *
867 * There are some issues with stability and possible failures of the SDF
868 * renderers (specifically `sdf`).
869 *
870 * 1. The `sdf` rasterizer is sensitive to really small features (e.g.,
871 * sharp turns that are less than 1~pixel) and imperfections in the
872 * glyph's outline, causing artifacts in the final output.
873 *
874 * 2. The `sdf` rasterizer has limited support for handling intersecting
875 * contours and *cannot* handle self-intersecting contours whatsoever.
876 * Self-intersection happens when a single connected contour
877 * intersects itself at some point; having these in your font
878 * definitely poses a problem to the rasterizer and cause artifacts,
879 * too.
880 *
881 * 3. Generating SDF for really small glyphs may result in undesirable
882 * output; the pixel grid (which stores distance information) becomes
883 * too coarse.
884 *
885 * 4. Since the output buffer is normalized, precision at smaller spreads
886 * is greater than precision at larger spread values because the
887 * output range of [0..255] gets mapped to a smaller SDF range. A
888 * spread of~2 should be sufficient in most cases.
889 *
890 * Points (1) and (2) can be avoided by using the `bsdf` rasterizer,
891 * which is more stable than the `sdf` rasterizer in general.
892 *
893 * @since:
894 * 2.11
895 */
896
897
898 /**************************************************************************
899 *
900 * @property:
901 * svg-hooks
902 *
903 * @description:
904 * Set up the interface between FreeType and an extern SVG rendering
905 * library like 'librsvg'. All details on the function hooks can be
906 * found in section @svg_fonts.
907 *
908 * @example:
909 * The following example code expects that the four hook functions
910 * `svg_*` are defined elsewhere. Error handling is omitted, too.
911 *
912 * ```
913 * FT_Library library;
914 * SVG_RendererHooks hooks = {
915 * (SVG_Lib_Init_Func)svg_init,
916 * (SVG_Lib_Free_Func)svg_free,
917 * (SVG_Lib_Render_Func)svg_render,
918 * (SVG_Lib_Preset_Slot_Func)svg_preset_slot };
919 *
920 *
921 * FT_Init_FreeType( &library );
922 *
923 * FT_Property_Set( library, "ot-svg",
924 * "svg-hooks", &hooks );
925 * ```
926 *
927 * @since:
928 * 2.12
929 */
930
931
932 /**************************************************************************
933 *
934 * @property:
935 * glyph-to-script-map
936 *
937 * @description:
938 * **Experimental only**
939 *
940 * The auto-hinter provides various script modules to hint glyphs.
941 * Examples of supported scripts are Latin or CJK. Before a glyph is
942 * auto-hinted, the Unicode character map of the font gets examined, and
943 * the script is then determined based on Unicode character ranges, see
944 * below.
945 *
946 * OpenType fonts, however, often provide much more glyphs than character
947 * codes (small caps, superscripts, ligatures, swashes, etc.), to be
948 * controlled by so-called 'features'. Handling OpenType features can be
949 * quite complicated and thus needs a separate library on top of
950 * FreeType.
951 *
952 * The mapping between glyph indices and scripts (in the auto-hinter
953 * sense, see the @FT_AUTOHINTER_SCRIPT_XXX values) is stored as an array
954 * with `num_glyphs` elements, as found in the font's @FT_Face structure.
955 * The `glyph-to-script-map` property returns a pointer to this array,
956 * which can be modified as needed. Note that the modification should
957 * happen before the first glyph gets processed by the auto-hinter so
958 * that the global analysis of the font shapes actually uses the modified
959 * mapping.
960 *
961 * @example:
962 * The following example code demonstrates how to access it (omitting the
963 * error handling).
964 *
965 * ```
966 * FT_Library library;
967 * FT_Face face;
968 * FT_Prop_GlyphToScriptMap prop;
969 *
970 *
971 * FT_Init_FreeType( &library );
972 * FT_New_Face( library, "foo.ttf", 0, &face );
973 *
974 * prop.face = face;
975 *
976 * FT_Property_Get( library, "autofitter",
977 * "glyph-to-script-map", &prop );
978 *
979 * // adjust `prop.map' as needed right here
980 *
981 * FT_Load_Glyph( face, ..., FT_LOAD_FORCE_AUTOHINT );
982 * ```
983 *
984 * @since:
985 * 2.4.11
986 *
987 */
988
989
990 /**************************************************************************
991 *
992 * @enum:
993 * FT_AUTOHINTER_SCRIPT_XXX
994 *
995 * @description:
996 * **Experimental only**
997 *
998 * A list of constants used for the @glyph-to-script-map property to
999 * specify the script submodule the auto-hinter should use for hinting a
1000 * particular glyph.
1001 *
1002 * @values:
1003 * FT_AUTOHINTER_SCRIPT_NONE ::
1004 * Don't auto-hint this glyph.
1005 *
1006 * FT_AUTOHINTER_SCRIPT_LATIN ::
1007 * Apply the latin auto-hinter. For the auto-hinter, 'latin' is a very
1008 * broad term, including Cyrillic and Greek also since characters from
1009 * those scripts share the same design constraints.
1010 *
1011 * By default, characters from the following Unicode ranges are
1012 * assigned to this submodule.
1013 *
1014 * ```
1015 * U+0020 - U+007F // Basic Latin (no control characters)
1016 * U+00A0 - U+00FF // Latin-1 Supplement (no control characters)
1017 * U+0100 - U+017F // Latin Extended-A
1018 * U+0180 - U+024F // Latin Extended-B
1019 * U+0250 - U+02AF // IPA Extensions
1020 * U+02B0 - U+02FF // Spacing Modifier Letters
1021 * U+0300 - U+036F // Combining Diacritical Marks
1022 * U+0370 - U+03FF // Greek and Coptic
1023 * U+0400 - U+04FF // Cyrillic
1024 * U+0500 - U+052F // Cyrillic Supplement
1025 * U+1D00 - U+1D7F // Phonetic Extensions
1026 * U+1D80 - U+1DBF // Phonetic Extensions Supplement
1027 * U+1DC0 - U+1DFF // Combining Diacritical Marks Supplement
1028 * U+1E00 - U+1EFF // Latin Extended Additional
1029 * U+1F00 - U+1FFF // Greek Extended
1030 * U+2000 - U+206F // General Punctuation
1031 * U+2070 - U+209F // Superscripts and Subscripts
1032 * U+20A0 - U+20CF // Currency Symbols
1033 * U+2150 - U+218F // Number Forms
1034 * U+2460 - U+24FF // Enclosed Alphanumerics
1035 * U+2C60 - U+2C7F // Latin Extended-C
1036 * U+2DE0 - U+2DFF // Cyrillic Extended-A
1037 * U+2E00 - U+2E7F // Supplemental Punctuation
1038 * U+A640 - U+A69F // Cyrillic Extended-B
1039 * U+A720 - U+A7FF // Latin Extended-D
1040 * U+FB00 - U+FB06 // Alphab. Present. Forms (Latin Ligatures)
1041 * U+1D400 - U+1D7FF // Mathematical Alphanumeric Symbols
1042 * U+1F100 - U+1F1FF // Enclosed Alphanumeric Supplement
1043 * ```
1044 *
1045 * FT_AUTOHINTER_SCRIPT_CJK ::
1046 * Apply the CJK auto-hinter, covering Chinese, Japanese, Korean, old
1047 * Vietnamese, and some other scripts.
1048 *
1049 * By default, characters from the following Unicode ranges are
1050 * assigned to this submodule.
1051 *
1052 * ```
1053 * U+1100 - U+11FF // Hangul Jamo
1054 * U+2E80 - U+2EFF // CJK Radicals Supplement
1055 * U+2F00 - U+2FDF // Kangxi Radicals
1056 * U+2FF0 - U+2FFF // Ideographic Description Characters
1057 * U+3000 - U+303F // CJK Symbols and Punctuation
1058 * U+3040 - U+309F // Hiragana
1059 * U+30A0 - U+30FF // Katakana
1060 * U+3100 - U+312F // Bopomofo
1061 * U+3130 - U+318F // Hangul Compatibility Jamo
1062 * U+3190 - U+319F // Kanbun
1063 * U+31A0 - U+31BF // Bopomofo Extended
1064 * U+31C0 - U+31EF // CJK Strokes
1065 * U+31F0 - U+31FF // Katakana Phonetic Extensions
1066 * U+3200 - U+32FF // Enclosed CJK Letters and Months
1067 * U+3300 - U+33FF // CJK Compatibility
1068 * U+3400 - U+4DBF // CJK Unified Ideographs Extension A
1069 * U+4DC0 - U+4DFF // Yijing Hexagram Symbols
1070 * U+4E00 - U+9FFF // CJK Unified Ideographs
1071 * U+A960 - U+A97F // Hangul Jamo Extended-A
1072 * U+AC00 - U+D7AF // Hangul Syllables
1073 * U+D7B0 - U+D7FF // Hangul Jamo Extended-B
1074 * U+F900 - U+FAFF // CJK Compatibility Ideographs
1075 * U+FE10 - U+FE1F // Vertical forms
1076 * U+FE30 - U+FE4F // CJK Compatibility Forms
1077 * U+FF00 - U+FFEF // Halfwidth and Fullwidth Forms
1078 * U+1B000 - U+1B0FF // Kana Supplement
1079 * U+1D300 - U+1D35F // Tai Xuan Hing Symbols
1080 * U+1F200 - U+1F2FF // Enclosed Ideographic Supplement
1081 * U+20000 - U+2A6DF // CJK Unified Ideographs Extension B
1082 * U+2A700 - U+2B73F // CJK Unified Ideographs Extension C
1083 * U+2B740 - U+2B81F // CJK Unified Ideographs Extension D
1084 * U+2F800 - U+2FA1F // CJK Compatibility Ideographs Supplement
1085 * ```
1086 *
1087 * FT_AUTOHINTER_SCRIPT_INDIC ::
1088 * Apply the indic auto-hinter, covering all major scripts from the
1089 * Indian sub-continent and some other related scripts like Thai, Lao,
1090 * or Tibetan.
1091 *
1092 * By default, characters from the following Unicode ranges are
1093 * assigned to this submodule.
1094 *
1095 * ```
1096 * U+0900 - U+0DFF // Indic Range
1097 * U+0F00 - U+0FFF // Tibetan
1098 * U+1900 - U+194F // Limbu
1099 * U+1B80 - U+1BBF // Sundanese
1100 * U+A800 - U+A82F // Syloti Nagri
1101 * U+ABC0 - U+ABFF // Meetei Mayek
1102 * U+11800 - U+118DF // Sharada
1103 * ```
1104 *
1105 * Note that currently Indic support is rudimentary only, missing blue
1106 * zone support.
1107 *
1108 * @since:
1109 * 2.4.11
1110 *
1111 */
1112#define FT_AUTOHINTER_SCRIPT_NONE 0
1113#define FT_AUTOHINTER_SCRIPT_LATIN 1
1114#define FT_AUTOHINTER_SCRIPT_CJK 2
1115#define FT_AUTOHINTER_SCRIPT_INDIC 3
1116
1117
1118 /**************************************************************************
1119 *
1120 * @struct:
1121 * FT_Prop_GlyphToScriptMap
1122 *
1123 * @description:
1124 * **Experimental only**
1125 *
1126 * The data exchange structure for the @glyph-to-script-map property.
1127 *
1128 * @since:
1129 * 2.4.11
1130 *
1131 */
1133 {
1134 FT_Face face;
1135 FT_UShort* map;
1136
1137 } FT_Prop_GlyphToScriptMap;
1138
1139
1140 /**************************************************************************
1141 *
1142 * @property:
1143 * fallback-script
1144 *
1145 * @description:
1146 * **Experimental only**
1147 *
1148 * If no auto-hinter script module can be assigned to a glyph, a fallback
1149 * script gets assigned to it (see also the @glyph-to-script-map
1150 * property). By default, this is @FT_AUTOHINTER_SCRIPT_CJK. Using the
1151 * `fallback-script` property, this fallback value can be changed.
1152 *
1153 * @note:
1154 * This property can be used with @FT_Property_Get also.
1155 *
1156 * It's important to use the right timing for changing this value: The
1157 * creation of the glyph-to-script map that eventually uses the fallback
1158 * script value gets triggered either by setting or reading a
1159 * face-specific property like @glyph-to-script-map, or by auto-hinting
1160 * any glyph from that face. In particular, if you have already created
1161 * an @FT_Face structure but not loaded any glyph (using the
1162 * auto-hinter), a change of the fallback script will affect this face.
1163 *
1164 * @example:
1165 * ```
1166 * FT_Library library;
1167 * FT_UInt fallback_script = FT_AUTOHINTER_SCRIPT_NONE;
1168 *
1169 *
1170 * FT_Init_FreeType( &library );
1171 *
1172 * FT_Property_Set( library, "autofitter",
1173 * "fallback-script", &fallback_script );
1174 * ```
1175 *
1176 * @since:
1177 * 2.4.11
1178 *
1179 */
1180
1181
1182 /**************************************************************************
1183 *
1184 * @property:
1185 * default-script
1186 *
1187 * @description:
1188 * **Experimental only**
1189 *
1190 * If FreeType gets compiled with `FT_CONFIG_OPTION_USE_HARFBUZZ` to make
1191 * the HarfBuzz library access OpenType features for getting better glyph
1192 * coverages, this property sets the (auto-fitter) script to be used for
1193 * the default (OpenType) script data of a font's GSUB table. Features
1194 * for the default script are intended for all scripts not explicitly
1195 * handled in GSUB; an example is a 'dlig' feature, containing the
1196 * combination of the characters 'T', 'E', and 'L' to form a 'TEL'
1197 * ligature.
1198 *
1199 * By default, this is @FT_AUTOHINTER_SCRIPT_LATIN. Using the
1200 * `default-script` property, this default value can be changed.
1201 *
1202 * @note:
1203 * This property can be used with @FT_Property_Get also.
1204 *
1205 * It's important to use the right timing for changing this value: The
1206 * creation of the glyph-to-script map that eventually uses the default
1207 * script value gets triggered either by setting or reading a
1208 * face-specific property like @glyph-to-script-map, or by auto-hinting
1209 * any glyph from that face. In particular, if you have already created
1210 * an @FT_Face structure but not loaded any glyph (using the
1211 * auto-hinter), a change of the default script will affect this face.
1212 *
1213 * @example:
1214 * ```
1215 * FT_Library library;
1216 * FT_UInt default_script = FT_AUTOHINTER_SCRIPT_NONE;
1217 *
1218 *
1219 * FT_Init_FreeType( &library );
1220 *
1221 * FT_Property_Set( library, "autofitter",
1222 * "default-script", &default_script );
1223 * ```
1224 *
1225 * @since:
1226 * 2.5.3
1227 *
1228 */
1229
1230
1231 /**************************************************************************
1232 *
1233 * @property:
1234 * increase-x-height
1235 *
1236 * @description:
1237 * For ppem values in the range 6~<= ppem <= `increase-x-height`, round
1238 * up the font's x~height much more often than normally. If the value is
1239 * set to~0, which is the default, this feature is switched off. Use
1240 * this property to improve the legibility of small font sizes if
1241 * necessary.
1242 *
1243 * @note:
1244 * This property can be used with @FT_Property_Get also.
1245 *
1246 * Set this value right after calling @FT_Set_Char_Size, but before
1247 * loading any glyph (using the auto-hinter).
1248 *
1249 * @example:
1250 * ```
1251 * FT_Library library;
1252 * FT_Face face;
1253 * FT_Prop_IncreaseXHeight prop;
1254 *
1255 *
1256 * FT_Init_FreeType( &library );
1257 * FT_New_Face( library, "foo.ttf", 0, &face );
1258 * FT_Set_Char_Size( face, 10 * 64, 0, 72, 0 );
1259 *
1260 * prop.face = face;
1261 * prop.limit = 14;
1262 *
1263 * FT_Property_Set( library, "autofitter",
1264 * "increase-x-height", &prop );
1265 * ```
1266 *
1267 * @since:
1268 * 2.4.11
1269 *
1270 */
1271
1272
1273 /**************************************************************************
1274 *
1275 * @struct:
1276 * FT_Prop_IncreaseXHeight
1277 *
1278 * @description:
1279 * The data exchange structure for the @increase-x-height property.
1280 *
1281 */
1283 {
1284 FT_Face face;
1285 FT_UInt limit;
1286
1287 } FT_Prop_IncreaseXHeight;
1288
1289
1290 /**************************************************************************
1291 *
1292 * @property:
1293 * warping
1294 *
1295 * @description:
1296 * **Obsolete**
1297 *
1298 * This property was always experimental and probably never worked
1299 * correctly. It was entirely removed from the FreeType~2 sources. This
1300 * entry is only here for historical reference.
1301 *
1302 * Warping only worked in 'normal' auto-hinting mode replacing it. The
1303 * idea of the code was to slightly scale and shift a glyph along the
1304 * non-hinted dimension (which is usually the horizontal axis) so that as
1305 * much of its segments were aligned (more or less) to the grid. To find
1306 * out a glyph's optimal scaling and shifting value, various parameter
1307 * combinations were tried and scored.
1308 *
1309 * @since:
1310 * 2.6
1311 *
1312 */
1313
1314
1315 /* */
1316
1317
1318FT_END_HEADER
1319
1320
1321#endif /* FTDRIVER_H_ */
1322
1323
1324/* END */