Debian Codegraph @

docs/reference/ft2-tt_driver.html

raw symbols SCIP
1
2 <!doctype html>
3 <html lang="en" class="no-js">
4 <head>
5
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width,initial-scale=1">
8
9 <meta name="description" content="API Reference Documentation for FreeType-2.14.3">
10
11
12 <meta name="author" content="FreeType Contributors">
13
14
15 <link rel="canonical" href="http://freetype.org/freetype2/docs/reference/ft2-tt_driver.html">
16
17
18 <link rel="prev" href="ft2-t1_cid_driver.html">
19
20
21 <link rel="next" href="ft2-pcf_driver.html">
22
23
24 <link rel="icon" href="images/favico.ico">
25 <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.9">
26
27
28
29 <title>The TrueType driver - FreeType-2.14.3 API Reference</title>
30
31
32
33 <link rel="stylesheet" href="assets/stylesheets/main.4af4bdda.min.css">
34
35
36 <link rel="stylesheet" href="assets/stylesheets/palette.06af60db.min.css">
37
38
39
40
41
42
43
44
45
46
47
48
49 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
50 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
51 <style>:root{--md-text-font:"Noto Serif";--md-code-font:"Roboto Mono"}</style>
52
53
54
55 <link rel="stylesheet" href="stylesheets/extra.css">
56
57 <script>__md_scope=new URL(".",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
58
59
60
61
62
63
64 </head>
65
66
67
68
69
70
71
72 <body dir="ltr" data-md-color-scheme="default" data-md-color-primary="green" data-md-color-accent="green">
73
74
75 <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
76 <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
77 <label class="md-overlay" for="__drawer"></label>
78 <div data-md-component="skip">
79
80
81 <a href="#the-truetype-driver" class="md-skip">
82 Skip to content
83 </a>
84
85 </div>
86 <div data-md-component="announce">
87
88 </div>
89
90
91
92
93
94
95 <header class="md-header md-header--shadow" data-md-component="header">
96 <nav class="md-header__inner md-grid" aria-label="Header">
97 <a href="index.html" title="FreeType-2.14.3 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.14.3 API Reference" data-md-component="logo">
98
99 <img src="images/favico.ico" alt="logo">
100
101 </a>
102 <label class="md-header__button md-icon" for="__drawer">
103
104 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
105 </label>
106 <div class="md-header__title" data-md-component="header-title">
107 <div class="md-header__ellipsis">
108 <div class="md-header__topic">
109 <span class="md-ellipsis">
110 FreeType-2.14.3 API Reference
111 </span>
112 </div>
113 <div class="md-header__topic" data-md-component="header-topic">
114 <span class="md-ellipsis">
115
116 The TrueType driver
117
118 </span>
119 </div>
120 </div>
121 </div>
122
123
124
125
126
127
128 <label class="md-header__button md-icon" for="__search">
129
130 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
131 </label>
132 <div class="md-search" data-md-component="search" role="dialog">
133 <label class="md-search__overlay" for="__search"></label>
134 <div class="md-search__inner" role="search">
135 <form class="md-search__form" name="search">
136 <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
137 <label class="md-search__icon md-icon" for="__search">
138
139 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
140
141 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
142 </label>
143 <nav class="md-search__options" aria-label="Search">
144
145 <button type="reset" class="md-search__icon md-icon" title="Clear" aria-label="Clear" tabindex="-1">
146
147 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
148 </button>
149 </nav>
150
151 </form>
152 <div class="md-search__output">
153 <div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
154 <div class="md-search-result" data-md-component="search-result">
155 <div class="md-search-result__meta">
156 Initializing search
157 </div>
158 <ol class="md-search-result__list" role="presentation"></ol>
159 </div>
160 </div>
161 </div>
162 </div>
163 </div>
164
165
166 </nav>
167
168 </header>
169
170 <div class="md-container" data-md-component="container">
171
172
173
174
175
176
177 <main class="md-main" data-md-component="main">
178 <div class="md-main__inner md-grid">
179
180
181
182 <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
183 <div class="md-sidebar__scrollwrap">
184 <div class="md-sidebar__inner">
185
186
187
188
189 <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
190 <label class="md-nav__title" for="__drawer">
191 <a href="index.html" title="FreeType-2.14.3 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.14.3 API Reference" data-md-component="logo">
192
193 <img src="images/favico.ico" alt="logo">
194
195 </a>
196 FreeType-2.14.3 API Reference
197 </label>
198
199 <ul class="md-nav__list" data-md-scrollfix>
200
201
202
203
204
205
206
207 <li class="md-nav__item">
208 <a href="index.html" class="md-nav__link">
209
210
211 <span class="md-ellipsis">
212 TOC
213
214 </span>
215
216
217 </a>
218 </li>
219
220
221
222
223
224
225
226
227
228 <li class="md-nav__item">
229 <a href="ft2-index.html" class="md-nav__link">
230
231
232 <span class="md-ellipsis">
233 Index
234
235 </span>
236
237
238 </a>
239 </li>
240
241
242
243
244
245
246
247
248
249
250
251
252
253 <li class="md-nav__item md-nav__item--nested">
254
255
256
257 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
258
259
260 <label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
261
262
263 <span class="md-ellipsis">
264 General Remarks
265
266 </span>
267
268
269 <span class="md-nav__icon md-icon"></span>
270 </label>
271
272 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
273 <label class="md-nav__title" for="__nav_3">
274 <span class="md-nav__icon md-icon"></span>
275 General Remarks
276 </label>
277 <ul class="md-nav__list" data-md-scrollfix>
278
279
280
281
282
283
284
285 <li class="md-nav__item">
286 <a href="ft2-preamble.html" class="md-nav__link">
287
288
289 <span class="md-ellipsis">
290 Preamble
291
292 </span>
293
294
295 </a>
296 </li>
297
298
299
300
301
302
303
304
305
306
307 <li class="md-nav__item">
308 <a href="ft2-header_inclusion.html" class="md-nav__link">
309
310
311 <span class="md-ellipsis">
312 FreeType's header inclusion scheme
313
314 </span>
315
316
317 </a>
318 </li>
319
320
321
322
323
324
325
326
327
328
329 <li class="md-nav__item">
330 <a href="ft2-user_allocation.html" class="md-nav__link">
331
332
333 <span class="md-ellipsis">
334 User allocation
335
336 </span>
337
338
339 </a>
340 </li>
341
342
343
344
345 </ul>
346 </nav>
347
348 </li>
349
350
351
352
353
354
355
356
357
358
359
360
361
362 <li class="md-nav__item md-nav__item--nested">
363
364
365
366 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
367
368
369 <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
370
371
372 <span class="md-ellipsis">
373 Core API
374
375 </span>
376
377
378 <span class="md-nav__icon md-icon"></span>
379 </label>
380
381 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
382 <label class="md-nav__title" for="__nav_4">
383 <span class="md-nav__icon md-icon"></span>
384 Core API
385 </label>
386 <ul class="md-nav__list" data-md-scrollfix>
387
388
389
390
391
392
393
394 <li class="md-nav__item">
395 <a href="ft2-basic_types.html" class="md-nav__link">
396
397
398 <span class="md-ellipsis">
399 Basic Data Types
400
401 </span>
402
403
404 </a>
405 </li>
406
407
408
409
410
411
412
413
414
415
416 <li class="md-nav__item">
417 <a href="ft2-library_setup.html" class="md-nav__link">
418
419
420 <span class="md-ellipsis">
421 Library Setup
422
423 </span>
424
425
426 </a>
427 </li>
428
429
430
431
432
433
434
435
436
437
438 <li class="md-nav__item">
439 <a href="ft2-face_creation.html" class="md-nav__link">
440
441
442 <span class="md-ellipsis">
443 Face Creation
444
445 </span>
446
447
448 </a>
449 </li>
450
451
452
453
454
455
456
457
458
459
460 <li class="md-nav__item">
461 <a href="ft2-font_testing_macros.html" class="md-nav__link">
462
463
464 <span class="md-ellipsis">
465 Font Testing Macros
466
467 </span>
468
469
470 </a>
471 </li>
472
473
474
475
476
477
478
479
480
481
482 <li class="md-nav__item">
483 <a href="ft2-sizing_and_scaling.html" class="md-nav__link">
484
485
486 <span class="md-ellipsis">
487 Sizing and Scaling
488
489 </span>
490
491
492 </a>
493 </li>
494
495
496
497
498
499
500
501
502
503
504 <li class="md-nav__item">
505 <a href="ft2-glyph_retrieval.html" class="md-nav__link">
506
507
508 <span class="md-ellipsis">
509 Glyph Retrieval
510
511 </span>
512
513
514 </a>
515 </li>
516
517
518
519
520
521
522
523
524
525
526 <li class="md-nav__item">
527 <a href="ft2-character_mapping.html" class="md-nav__link">
528
529
530 <span class="md-ellipsis">
531 Character Mapping
532
533 </span>
534
535
536 </a>
537 </li>
538
539
540
541
542
543
544
545
546
547
548 <li class="md-nav__item">
549 <a href="ft2-information_retrieval.html" class="md-nav__link">
550
551
552 <span class="md-ellipsis">
553 Information Retrieval
554
555 </span>
556
557
558 </a>
559 </li>
560
561
562
563
564
565
566
567
568
569
570 <li class="md-nav__item">
571 <a href="ft2-other_api_data.html" class="md-nav__link">
572
573
574 <span class="md-ellipsis">
575 Other API Data
576
577 </span>
578
579
580 </a>
581 </li>
582
583
584
585
586 </ul>
587 </nav>
588
589 </li>
590
591
592
593
594
595
596
597
598
599
600
601
602
603 <li class="md-nav__item md-nav__item--nested">
604
605
606
607 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
608
609
610 <label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
611
612
613 <span class="md-ellipsis">
614 Extended API
615
616 </span>
617
618
619 <span class="md-nav__icon md-icon"></span>
620 </label>
621
622 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
623 <label class="md-nav__title" for="__nav_5">
624 <span class="md-nav__icon md-icon"></span>
625 Extended API
626 </label>
627 <ul class="md-nav__list" data-md-scrollfix>
628
629
630
631
632
633
634
635 <li class="md-nav__item">
636 <a href="ft2-glyph_variants.html" class="md-nav__link">
637
638
639 <span class="md-ellipsis">
640 Unicode Variation Sequences
641
642 </span>
643
644
645 </a>
646 </li>
647
648
649
650
651
652
653
654
655
656
657 <li class="md-nav__item">
658 <a href="ft2-color_management.html" class="md-nav__link">
659
660
661 <span class="md-ellipsis">
662 Glyph Color Management
663
664 </span>
665
666
667 </a>
668 </li>
669
670
671
672
673
674
675
676
677
678
679 <li class="md-nav__item">
680 <a href="ft2-layer_management.html" class="md-nav__link">
681
682
683 <span class="md-ellipsis">
684 Glyph Layer Management
685
686 </span>
687
688
689 </a>
690 </li>
691
692
693
694
695
696
697
698
699
700
701 <li class="md-nav__item">
702 <a href="ft2-glyph_management.html" class="md-nav__link">
703
704
705 <span class="md-ellipsis">
706 Glyph Management
707
708 </span>
709
710
711 </a>
712 </li>
713
714
715
716
717
718
719
720
721
722
723 <li class="md-nav__item">
724 <a href="ft2-mac_specific.html" class="md-nav__link">
725
726
727 <span class="md-ellipsis">
728 Mac Specific Interface
729
730 </span>
731
732
733 </a>
734 </li>
735
736
737
738
739
740
741
742
743
744
745 <li class="md-nav__item">
746 <a href="ft2-sizes_management.html" class="md-nav__link">
747
748
749 <span class="md-ellipsis">
750 Size Management
751
752 </span>
753
754
755 </a>
756 </li>
757
758
759
760
761
762
763
764
765
766
767 <li class="md-nav__item">
768 <a href="ft2-header_file_macros.html" class="md-nav__link">
769
770
771 <span class="md-ellipsis">
772 Header File Macros
773
774 </span>
775
776
777 </a>
778 </li>
779
780
781
782
783 </ul>
784 </nav>
785
786 </li>
787
788
789
790
791
792
793
794
795
796
797
798
799
800 <li class="md-nav__item md-nav__item--nested">
801
802
803
804 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
805
806
807 <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
808
809
810 <span class="md-ellipsis">
811 Format-Specific API
812
813 </span>
814
815
816 <span class="md-nav__icon md-icon"></span>
817 </label>
818
819 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
820 <label class="md-nav__title" for="__nav_6">
821 <span class="md-nav__icon md-icon"></span>
822 Format-Specific API
823 </label>
824 <ul class="md-nav__list" data-md-scrollfix>
825
826
827
828
829
830
831
832 <li class="md-nav__item">
833 <a href="ft2-multiple_masters.html" class="md-nav__link">
834
835
836 <span class="md-ellipsis">
837 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
838
839 </span>
840
841
842 </a>
843 </li>
844
845
846
847
848
849
850
851
852
853
854 <li class="md-nav__item">
855 <a href="ft2-truetype_tables.html" class="md-nav__link">
856
857
858 <span class="md-ellipsis">
859 TrueType Tables
860
861 </span>
862
863
864 </a>
865 </li>
866
867
868
869
870
871
872
873
874
875
876 <li class="md-nav__item">
877 <a href="ft2-type1_tables.html" class="md-nav__link">
878
879
880 <span class="md-ellipsis">
881 Type 1 Tables
882
883 </span>
884
885
886 </a>
887 </li>
888
889
890
891
892
893
894
895
896
897
898 <li class="md-nav__item">
899 <a href="ft2-sfnt_names.html" class="md-nav__link">
900
901
902 <span class="md-ellipsis">
903 SFNT Names
904
905 </span>
906
907
908 </a>
909 </li>
910
911
912
913
914
915
916
917
918
919
920 <li class="md-nav__item">
921 <a href="ft2-bdf_fonts.html" class="md-nav__link">
922
923
924 <span class="md-ellipsis">
925 BDF and PCF Files
926
927 </span>
928
929
930 </a>
931 </li>
932
933
934
935
936
937
938
939
940
941
942 <li class="md-nav__item">
943 <a href="ft2-cid_fonts.html" class="md-nav__link">
944
945
946 <span class="md-ellipsis">
947 CID Fonts
948
949 </span>
950
951
952 </a>
953 </li>
954
955
956
957
958
959
960
961
962
963
964 <li class="md-nav__item">
965 <a href="ft2-pfr_fonts.html" class="md-nav__link">
966
967
968 <span class="md-ellipsis">
969 PFR Fonts
970
971 </span>
972
973
974 </a>
975 </li>
976
977
978
979
980
981
982
983
984
985
986 <li class="md-nav__item">
987 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
988
989
990 <span class="md-ellipsis">
991 Window FNT Files
992
993 </span>
994
995
996 </a>
997 </li>
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008 <li class="md-nav__item">
1009 <a href="ft2-svg_fonts.html" class="md-nav__link">
1010
1011
1012 <span class="md-ellipsis">
1013 OpenType SVG Fonts
1014
1015 </span>
1016
1017
1018 </a>
1019 </li>
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030 <li class="md-nav__item">
1031 <a href="ft2-font_formats.html" class="md-nav__link">
1032
1033
1034 <span class="md-ellipsis">
1035 Font Formats
1036
1037 </span>
1038
1039
1040 </a>
1041 </li>
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052 <li class="md-nav__item">
1053 <a href="ft2-gasp_table.html" class="md-nav__link">
1054
1055
1056 <span class="md-ellipsis">
1057 Gasp Table
1058
1059 </span>
1060
1061
1062 </a>
1063 </li>
1064
1065
1066
1067
1068 </ul>
1069 </nav>
1070
1071 </li>
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
1088
1089
1090
1091 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" checked>
1092
1093
1094 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1095
1096
1097 <span class="md-ellipsis">
1098 Controlling FreeType Modules
1099
1100 </span>
1101
1102
1103 <span class="md-nav__icon md-icon"></span>
1104 </label>
1105
1106 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="true">
1107 <label class="md-nav__title" for="__nav_7">
1108 <span class="md-nav__icon md-icon"></span>
1109 Controlling FreeType Modules
1110 </label>
1111 <ul class="md-nav__list" data-md-scrollfix>
1112
1113
1114
1115
1116
1117
1118
1119 <li class="md-nav__item">
1120 <a href="ft2-auto_hinter.html" class="md-nav__link">
1121
1122
1123 <span class="md-ellipsis">
1124 The auto-hinter
1125
1126 </span>
1127
1128
1129 </a>
1130 </li>
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141 <li class="md-nav__item">
1142 <a href="ft2-cff_driver.html" class="md-nav__link">
1143
1144
1145 <span class="md-ellipsis">
1146 The CFF driver
1147
1148 </span>
1149
1150
1151 </a>
1152 </li>
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163 <li class="md-nav__item">
1164 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1165
1166
1167 <span class="md-ellipsis">
1168 The Type 1 and CID drivers
1169
1170 </span>
1171
1172
1173 </a>
1174 </li>
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187 <li class="md-nav__item md-nav__item--active">
1188
1189 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
1190
1191
1192
1193
1194
1195 <label class="md-nav__link md-nav__link--active" for="__toc">
1196
1197
1198 <span class="md-ellipsis">
1199 The TrueType driver
1200
1201 </span>
1202
1203
1204 <span class="md-nav__icon md-icon"></span>
1205 </label>
1206
1207 <a href="ft2-tt_driver.html" class="md-nav__link md-nav__link--active">
1208
1209
1210 <span class="md-ellipsis">
1211 The TrueType driver
1212
1213 </span>
1214
1215
1216 </a>
1217
1218
1219
1220 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1221
1222
1223
1224
1225
1226
1227 <label class="md-nav__title" for="__toc">
1228 <span class="md-nav__icon md-icon"></span>
1229 Table of contents
1230 </label>
1231 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1232
1233 <li class="md-nav__item">
1234 <a href="#synopsis" class="md-nav__link">
1235 <span class="md-ellipsis">
1236 Synopsis
1237 </span>
1238 </a>
1239
1240 </li>
1241
1242 </ul>
1243
1244 </nav>
1245
1246 </li>
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257 <li class="md-nav__item">
1258 <a href="ft2-pcf_driver.html" class="md-nav__link">
1259
1260
1261 <span class="md-ellipsis">
1262 The PCF driver
1263
1264 </span>
1265
1266
1267 </a>
1268 </li>
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279 <li class="md-nav__item">
1280 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1281
1282
1283 <span class="md-ellipsis">
1284 The SVG driver
1285
1286 </span>
1287
1288
1289 </a>
1290 </li>
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 <li class="md-nav__item">
1302 <a href="ft2-properties.html" class="md-nav__link">
1303
1304
1305 <span class="md-ellipsis">
1306 Driver properties
1307
1308 </span>
1309
1310
1311 </a>
1312 </li>
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 <li class="md-nav__item">
1324 <a href="ft2-parameter_tags.html" class="md-nav__link">
1325
1326
1327 <span class="md-ellipsis">
1328 Parameter Tags
1329
1330 </span>
1331
1332
1333 </a>
1334 </li>
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 <li class="md-nav__item">
1346 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1347
1348
1349 <span class="md-ellipsis">
1350 Subpixel Rendering
1351
1352 </span>
1353
1354
1355 </a>
1356 </li>
1357
1358
1359
1360
1361 </ul>
1362 </nav>
1363
1364 </li>
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378 <li class="md-nav__item md-nav__item--nested">
1379
1380
1381
1382 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1383
1384
1385 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1386
1387
1388 <span class="md-ellipsis">
1389 Cache Sub-System
1390
1391 </span>
1392
1393
1394 <span class="md-nav__icon md-icon"></span>
1395 </label>
1396
1397 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1398 <label class="md-nav__title" for="__nav_8">
1399 <span class="md-nav__icon md-icon"></span>
1400 Cache Sub-System
1401 </label>
1402 <ul class="md-nav__list" data-md-scrollfix>
1403
1404
1405
1406
1407
1408
1409
1410 <li class="md-nav__item">
1411 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1412
1413
1414 <span class="md-ellipsis">
1415 Cache Sub-System
1416
1417 </span>
1418
1419
1420 </a>
1421 </li>
1422
1423
1424
1425
1426 </ul>
1427 </nav>
1428
1429 </li>
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443 <li class="md-nav__item md-nav__item--nested">
1444
1445
1446
1447 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
1448
1449
1450 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1451
1452
1453 <span class="md-ellipsis">
1454 Support API
1455
1456 </span>
1457
1458
1459 <span class="md-nav__icon md-icon"></span>
1460 </label>
1461
1462 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
1463 <label class="md-nav__title" for="__nav_9">
1464 <span class="md-nav__icon md-icon"></span>
1465 Support API
1466 </label>
1467 <ul class="md-nav__list" data-md-scrollfix>
1468
1469
1470
1471
1472
1473
1474
1475 <li class="md-nav__item">
1476 <a href="ft2-computations.html" class="md-nav__link">
1477
1478
1479 <span class="md-ellipsis">
1480 Computations
1481
1482 </span>
1483
1484
1485 </a>
1486 </li>
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497 <li class="md-nav__item">
1498 <a href="ft2-list_processing.html" class="md-nav__link">
1499
1500
1501 <span class="md-ellipsis">
1502 List Processing
1503
1504 </span>
1505
1506
1507 </a>
1508 </li>
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 <li class="md-nav__item">
1520 <a href="ft2-outline_processing.html" class="md-nav__link">
1521
1522
1523 <span class="md-ellipsis">
1524 Outline Processing
1525
1526 </span>
1527
1528
1529 </a>
1530 </li>
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541 <li class="md-nav__item">
1542 <a href="ft2-quick_advance.html" class="md-nav__link">
1543
1544
1545 <span class="md-ellipsis">
1546 Quick retrieval of advance values
1547
1548 </span>
1549
1550
1551 </a>
1552 </li>
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563 <li class="md-nav__item">
1564 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1565
1566
1567 <span class="md-ellipsis">
1568 Bitmap Handling
1569
1570 </span>
1571
1572
1573 </a>
1574 </li>
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585 <li class="md-nav__item">
1586 <a href="ft2-raster.html" class="md-nav__link">
1587
1588
1589 <span class="md-ellipsis">
1590 Scanline Converter
1591
1592 </span>
1593
1594
1595 </a>
1596 </li>
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607 <li class="md-nav__item">
1608 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1609
1610
1611 <span class="md-ellipsis">
1612 Glyph Stroker
1613
1614 </span>
1615
1616
1617 </a>
1618 </li>
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629 <li class="md-nav__item">
1630 <a href="ft2-system_interface.html" class="md-nav__link">
1631
1632
1633 <span class="md-ellipsis">
1634 System Interface
1635
1636 </span>
1637
1638
1639 </a>
1640 </li>
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651 <li class="md-nav__item">
1652 <a href="ft2-module_management.html" class="md-nav__link">
1653
1654
1655 <span class="md-ellipsis">
1656 Module Management
1657
1658 </span>
1659
1660
1661 </a>
1662 </li>
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673 <li class="md-nav__item">
1674 <a href="ft2-gzip.html" class="md-nav__link">
1675
1676
1677 <span class="md-ellipsis">
1678 GZIP Streams
1679
1680 </span>
1681
1682
1683 </a>
1684 </li>
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695 <li class="md-nav__item">
1696 <a href="ft2-lzw.html" class="md-nav__link">
1697
1698
1699 <span class="md-ellipsis">
1700 LZW Streams
1701
1702 </span>
1703
1704
1705 </a>
1706 </li>
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717 <li class="md-nav__item">
1718 <a href="ft2-bzip2.html" class="md-nav__link">
1719
1720
1721 <span class="md-ellipsis">
1722 BZIP2 Streams
1723
1724 </span>
1725
1726
1727 </a>
1728 </li>
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739 <li class="md-nav__item">
1740 <a href="ft2-debugging_apis.html" class="md-nav__link">
1741
1742
1743 <span class="md-ellipsis">
1744 External Debugging APIs
1745
1746 </span>
1747
1748
1749 </a>
1750 </li>
1751
1752
1753
1754
1755 </ul>
1756 </nav>
1757
1758 </li>
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772 <li class="md-nav__item md-nav__item--nested">
1773
1774
1775
1776 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1777
1778
1779 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1780
1781
1782 <span class="md-ellipsis">
1783 Error Codes
1784
1785 </span>
1786
1787
1788 <span class="md-nav__icon md-icon"></span>
1789 </label>
1790
1791 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
1792 <label class="md-nav__title" for="__nav_10">
1793 <span class="md-nav__icon md-icon"></span>
1794 Error Codes
1795 </label>
1796 <ul class="md-nav__list" data-md-scrollfix>
1797
1798
1799
1800
1801
1802
1803
1804 <li class="md-nav__item">
1805 <a href="ft2-error_enumerations.html" class="md-nav__link">
1806
1807
1808 <span class="md-ellipsis">
1809 Error Enumerations
1810
1811 </span>
1812
1813
1814 </a>
1815 </li>
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826 <li class="md-nav__item">
1827 <a href="ft2-error_code_values.html" class="md-nav__link">
1828
1829
1830 <span class="md-ellipsis">
1831 Error Code Values
1832
1833 </span>
1834
1835
1836 </a>
1837 </li>
1838
1839
1840
1841
1842 </ul>
1843 </nav>
1844
1845 </li>
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859 <li class="md-nav__item md-nav__item--nested">
1860
1861
1862
1863 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
1864
1865
1866 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
1867
1868
1869 <span class="md-ellipsis">
1870 Miscellaneous
1871
1872 </span>
1873
1874
1875 <span class="md-nav__icon md-icon"></span>
1876 </label>
1877
1878 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
1879 <label class="md-nav__title" for="__nav_11">
1880 <span class="md-nav__icon md-icon"></span>
1881 Miscellaneous
1882 </label>
1883 <ul class="md-nav__list" data-md-scrollfix>
1884
1885
1886
1887
1888
1889
1890
1891 <li class="md-nav__item">
1892 <a href="ft2-gx_validation.html" class="md-nav__link">
1893
1894
1895 <span class="md-ellipsis">
1896 TrueTypeGX/AAT Validation
1897
1898 </span>
1899
1900
1901 </a>
1902 </li>
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913 <li class="md-nav__item">
1914 <a href="ft2-incremental.html" class="md-nav__link">
1915
1916
1917 <span class="md-ellipsis">
1918 Incremental Loading
1919
1920 </span>
1921
1922
1923 </a>
1924 </li>
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935 <li class="md-nav__item">
1936 <a href="ft2-truetype_engine.html" class="md-nav__link">
1937
1938
1939 <span class="md-ellipsis">
1940 The TrueType Engine
1941
1942 </span>
1943
1944
1945 </a>
1946 </li>
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 <li class="md-nav__item">
1958 <a href="ft2-ot_validation.html" class="md-nav__link">
1959
1960
1961 <span class="md-ellipsis">
1962 OpenType Validation
1963
1964 </span>
1965
1966
1967 </a>
1968 </li>
1969
1970
1971
1972
1973 </ul>
1974 </nav>
1975
1976 </li>
1977
1978
1979
1980 </ul>
1981 </nav>
1982 </div>
1983 </div>
1984 </div>
1985
1986
1987
1988 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
1989 <div class="md-sidebar__scrollwrap">
1990 <div class="md-sidebar__inner">
1991
1992
1993 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1994
1995
1996
1997
1998
1999
2000 <label class="md-nav__title" for="__toc">
2001 <span class="md-nav__icon md-icon"></span>
2002 Table of contents
2003 </label>
2004 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2005
2006 <li class="md-nav__item">
2007 <a href="#synopsis" class="md-nav__link">
2008 <span class="md-ellipsis">
2009 Synopsis
2010 </span>
2011 </a>
2012
2013 </li>
2014
2015 </ul>
2016
2017 </nav>
2018 </div>
2019 </div>
2020 </div>
2021
2022
2023
2024 <div class="md-content" data-md-component="content">
2025 <article class="md-content__inner md-typeset">
2026
2027
2028
2029
2030
2031 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#controlling-freetype-modules">Controlling FreeType Modules</a> &raquo; The TrueType driver</p>
2032 <hr />
2033 <h1 id="the-truetype-driver">The TrueType driver<a class="headerlink" href="#the-truetype-driver" title="Permanent link">&para;</a></h1>
2034 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2035 <p>While FreeType's TrueType driver doesn't expose API functions by itself, it is possible to control its behaviour with <code><a href="ft2-module_management.html#ft_property_set">FT_Property_Set</a></code> and <code><a href="ft2-module_management.html#ft_property_get">FT_Property_Get</a></code>.</p>
2036 <p>The TrueType driver's module name is &lsquo;truetype&rsquo;; a single property <code><a href="ft2-properties.html#interpreter-version">interpreter-version</a></code> is available, as documented in the &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; section.</p>
2037 <p>To help understand the differences between interpreter versions, we introduce a list of definitions, kindly provided by Greg Hitchcock.</p>
2038 <p><em>Bi-Level Rendering</em></p>
2039 <p>Monochromatic rendering, exclusively used in the early days of TrueType by both Apple and Microsoft. Microsoft's GDI interface supported hinting of the right-side bearing point, such that the advance width could be non-linear. Most often this was done to achieve some level of glyph symmetry. To enable reasonable performance (e.g., not having to run hinting on all glyphs just to get the widths) there was a bit in the head table indicating if the side bearing was hinted, and additional tables, &lsquo;hdmx&rsquo; and &lsquo;LTSH&rsquo;, to cache hinting widths across multiple sizes and device aspect ratios.</p>
2040 <p><em>Font Smoothing</em></p>
2041 <p>Microsoft's GDI implementation of anti-aliasing. Not traditional anti-aliasing as the outlines were hinted before the sampling. The widths matched the bi-level rendering.</p>
2042 <p><em>ClearType Rendering</em></p>
2043 <p>Technique that uses physical subpixels to improve rendering on LCD (and other) displays. Because of the higher resolution, many methods of improving symmetry in glyphs through hinting the right-side bearing were no longer necessary. This lead to what GDI calls &lsquo;natural widths&rsquo; ClearType, see <a href="http://rastertragedy.com/RTRCh4.htm#Sec21">http://rastertragedy.com/RTRCh4.htm#Sec21</a>. Since hinting has extra resolution, most non-linearity went away, but it is still possible for hints to change the advance widths in this mode.</p>
2044 <p><em>ClearType Compatible Widths</em></p>
2045 <p>One of the earliest challenges with ClearType was allowing the implementation in GDI to be selected without requiring all UI and documents to reflow. To address this, a compatible method of rendering ClearType was added where the font hints are executed once to determine the width in bi-level rendering, and then re-run in ClearType, with the difference in widths being absorbed in the font hints for ClearType (mostly in the white space of hints); see <a href="http://rastertragedy.com/RTRCh4.htm#Sec20">http://rastertragedy.com/RTRCh4.htm#Sec20</a>. Somewhat by definition, compatible width ClearType allows for non-linear widths, but only when the bi-level version has non-linear widths.</p>
2046 <p><em>ClearType Subpixel Positioning</em></p>
2047 <p>One of the nice benefits of ClearType is the ability to more crisply display fractional widths; unfortunately, the GDI model of integer bitmaps did not support this. However, the WPF and Direct Write frameworks do support fractional widths. DWrite calls this &lsquo;natural mode&rsquo;, not to be confused with GDI's &lsquo;natural widths&rsquo;. Subpixel positioning, in the current implementation of Direct Write, unfortunately does not support hinted advance widths, see <a href="http://rastertragedy.com/RTRCh4.htm#Sec22">http://rastertragedy.com/RTRCh4.htm#Sec22</a>. Note that the TrueType interpreter fully allows the advance width to be adjusted in this mode, just the DWrite client will ignore those changes.</p>
2048 <p><em>ClearType Backward Compatibility</em></p>
2049 <p>This is a set of exceptions made in the TrueType interpreter to minimize hinting techniques that were problematic with the extra resolution of ClearType; see <a href="http://rastertragedy.com/RTRCh4.htm#Sec1">http://rastertragedy.com/RTRCh4.htm#Sec1</a> and <a href="https://learn.microsoft.com/typography/cleartype/truetypecleartype">https://learn.microsoft.com/typography/cleartype/truetypecleartype</a>. This technique is not to be confused with ClearType compatible widths. ClearType backward compatibility has no direct impact on changing advance widths, but there might be an indirect impact on disabling some deltas. This could be worked around in backward compatibility mode.</p>
2050 <p><em>Native ClearType Mode</em></p>
2051 <p>(Not to be confused with &lsquo;natural widths&rsquo;.) This mode removes all the exceptions in the TrueType interpreter when running with ClearType. Any issues on widths would still apply, though.</p>
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065 </article>
2066 </div>
2067
2068
2069 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
2070 </div>
2071
2072 </main>
2073
2074 <footer class="md-footer">
2075
2076 <div class="md-footer-meta md-typeset">
2077 <div class="md-footer-meta__inner md-grid">
2078 <div class="md-copyright">
2079
2080 <div class="md-copyright__highlight">
2081 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
2082 </div>
2083
2084
2085 Made with
2086 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
2087 Material for MkDocs
2088 </a>
2089
2090 </div>
2091
2092 </div>
2093 </div>
2094 </footer>
2095
2096 </div>
2097 <div class="md-dialog" data-md-component="dialog">
2098 <div class="md-dialog__inner md-typeset"></div>
2099 </div>
2100
2101
2102 <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.f8cc74c7.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
2103
2104
2105 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
2106
2107 <script src="javascripts/extra.js"></script>
2108
2109
2110 </body>
2111 </html>