Debian Codegraph @

docs/reference/ft2-module_management.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-module_management.html">
16
17
18 <link rel="prev" href="ft2-system_interface.html">
19
20
21 <link rel="next" href="ft2-gzip.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>Module Management - 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="#module-management" 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 Module Management
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 <li class="md-nav__item md-nav__item--nested">
1086
1087
1088
1089 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
1090
1091
1092 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1093
1094
1095 <span class="md-ellipsis">
1096 Controlling FreeType Modules
1097
1098 </span>
1099
1100
1101 <span class="md-nav__icon md-icon"></span>
1102 </label>
1103
1104 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
1105 <label class="md-nav__title" for="__nav_7">
1106 <span class="md-nav__icon md-icon"></span>
1107 Controlling FreeType Modules
1108 </label>
1109 <ul class="md-nav__list" data-md-scrollfix>
1110
1111
1112
1113
1114
1115
1116
1117 <li class="md-nav__item">
1118 <a href="ft2-auto_hinter.html" class="md-nav__link">
1119
1120
1121 <span class="md-ellipsis">
1122 The auto-hinter
1123
1124 </span>
1125
1126
1127 </a>
1128 </li>
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139 <li class="md-nav__item">
1140 <a href="ft2-cff_driver.html" class="md-nav__link">
1141
1142
1143 <span class="md-ellipsis">
1144 The CFF driver
1145
1146 </span>
1147
1148
1149 </a>
1150 </li>
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161 <li class="md-nav__item">
1162 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1163
1164
1165 <span class="md-ellipsis">
1166 The Type 1 and CID drivers
1167
1168 </span>
1169
1170
1171 </a>
1172 </li>
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183 <li class="md-nav__item">
1184 <a href="ft2-tt_driver.html" class="md-nav__link">
1185
1186
1187 <span class="md-ellipsis">
1188 The TrueType driver
1189
1190 </span>
1191
1192
1193 </a>
1194 </li>
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205 <li class="md-nav__item">
1206 <a href="ft2-pcf_driver.html" class="md-nav__link">
1207
1208
1209 <span class="md-ellipsis">
1210 The PCF driver
1211
1212 </span>
1213
1214
1215 </a>
1216 </li>
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227 <li class="md-nav__item">
1228 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1229
1230
1231 <span class="md-ellipsis">
1232 The SVG driver
1233
1234 </span>
1235
1236
1237 </a>
1238 </li>
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249 <li class="md-nav__item">
1250 <a href="ft2-properties.html" class="md-nav__link">
1251
1252
1253 <span class="md-ellipsis">
1254 Driver properties
1255
1256 </span>
1257
1258
1259 </a>
1260 </li>
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271 <li class="md-nav__item">
1272 <a href="ft2-parameter_tags.html" class="md-nav__link">
1273
1274
1275 <span class="md-ellipsis">
1276 Parameter Tags
1277
1278 </span>
1279
1280
1281 </a>
1282 </li>
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293 <li class="md-nav__item">
1294 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1295
1296
1297 <span class="md-ellipsis">
1298 Subpixel Rendering
1299
1300 </span>
1301
1302
1303 </a>
1304 </li>
1305
1306
1307
1308
1309 </ul>
1310 </nav>
1311
1312 </li>
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 <li class="md-nav__item md-nav__item--nested">
1327
1328
1329
1330 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1331
1332
1333 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1334
1335
1336 <span class="md-ellipsis">
1337 Cache Sub-System
1338
1339 </span>
1340
1341
1342 <span class="md-nav__icon md-icon"></span>
1343 </label>
1344
1345 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1346 <label class="md-nav__title" for="__nav_8">
1347 <span class="md-nav__icon md-icon"></span>
1348 Cache Sub-System
1349 </label>
1350 <ul class="md-nav__list" data-md-scrollfix>
1351
1352
1353
1354
1355
1356
1357
1358 <li class="md-nav__item">
1359 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1360
1361
1362 <span class="md-ellipsis">
1363 Cache Sub-System
1364
1365 </span>
1366
1367
1368 </a>
1369 </li>
1370
1371
1372
1373
1374 </ul>
1375 </nav>
1376
1377 </li>
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
1394
1395
1396
1397 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" checked>
1398
1399
1400 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1401
1402
1403 <span class="md-ellipsis">
1404 Support API
1405
1406 </span>
1407
1408
1409 <span class="md-nav__icon md-icon"></span>
1410 </label>
1411
1412 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="true">
1413 <label class="md-nav__title" for="__nav_9">
1414 <span class="md-nav__icon md-icon"></span>
1415 Support API
1416 </label>
1417 <ul class="md-nav__list" data-md-scrollfix>
1418
1419
1420
1421
1422
1423
1424
1425 <li class="md-nav__item">
1426 <a href="ft2-computations.html" class="md-nav__link">
1427
1428
1429 <span class="md-ellipsis">
1430 Computations
1431
1432 </span>
1433
1434
1435 </a>
1436 </li>
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447 <li class="md-nav__item">
1448 <a href="ft2-list_processing.html" class="md-nav__link">
1449
1450
1451 <span class="md-ellipsis">
1452 List Processing
1453
1454 </span>
1455
1456
1457 </a>
1458 </li>
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 <li class="md-nav__item">
1470 <a href="ft2-outline_processing.html" class="md-nav__link">
1471
1472
1473 <span class="md-ellipsis">
1474 Outline Processing
1475
1476 </span>
1477
1478
1479 </a>
1480 </li>
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491 <li class="md-nav__item">
1492 <a href="ft2-quick_advance.html" class="md-nav__link">
1493
1494
1495 <span class="md-ellipsis">
1496 Quick retrieval of advance values
1497
1498 </span>
1499
1500
1501 </a>
1502 </li>
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513 <li class="md-nav__item">
1514 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1515
1516
1517 <span class="md-ellipsis">
1518 Bitmap Handling
1519
1520 </span>
1521
1522
1523 </a>
1524 </li>
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535 <li class="md-nav__item">
1536 <a href="ft2-raster.html" class="md-nav__link">
1537
1538
1539 <span class="md-ellipsis">
1540 Scanline Converter
1541
1542 </span>
1543
1544
1545 </a>
1546 </li>
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 <li class="md-nav__item">
1558 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1559
1560
1561 <span class="md-ellipsis">
1562 Glyph Stroker
1563
1564 </span>
1565
1566
1567 </a>
1568 </li>
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579 <li class="md-nav__item">
1580 <a href="ft2-system_interface.html" class="md-nav__link">
1581
1582
1583 <span class="md-ellipsis">
1584 System Interface
1585
1586 </span>
1587
1588
1589 </a>
1590 </li>
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603 <li class="md-nav__item md-nav__item--active">
1604
1605 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
1606
1607
1608
1609
1610
1611 <label class="md-nav__link md-nav__link--active" for="__toc">
1612
1613
1614 <span class="md-ellipsis">
1615 Module Management
1616
1617 </span>
1618
1619
1620 <span class="md-nav__icon md-icon"></span>
1621 </label>
1622
1623 <a href="ft2-module_management.html" class="md-nav__link md-nav__link--active">
1624
1625
1626 <span class="md-ellipsis">
1627 Module Management
1628
1629 </span>
1630
1631
1632 </a>
1633
1634
1635
1636 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1637
1638
1639
1640
1641
1642
1643 <label class="md-nav__title" for="__toc">
1644 <span class="md-nav__icon md-icon"></span>
1645 Table of contents
1646 </label>
1647 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1648
1649 <li class="md-nav__item">
1650 <a href="#synopsis" class="md-nav__link">
1651 <span class="md-ellipsis">
1652 Synopsis
1653 </span>
1654 </a>
1655
1656 </li>
1657
1658 <li class="md-nav__item">
1659 <a href="#ft_module" class="md-nav__link">
1660 <span class="md-ellipsis">
1661 FT_Module
1662 </span>
1663 </a>
1664
1665 </li>
1666
1667 <li class="md-nav__item">
1668 <a href="#ft_module_constructor" class="md-nav__link">
1669 <span class="md-ellipsis">
1670 FT_Module_Constructor
1671 </span>
1672 </a>
1673
1674 </li>
1675
1676 <li class="md-nav__item">
1677 <a href="#ft_module_destructor" class="md-nav__link">
1678 <span class="md-ellipsis">
1679 FT_Module_Destructor
1680 </span>
1681 </a>
1682
1683 </li>
1684
1685 <li class="md-nav__item">
1686 <a href="#ft_module_requester" class="md-nav__link">
1687 <span class="md-ellipsis">
1688 FT_Module_Requester
1689 </span>
1690 </a>
1691
1692 </li>
1693
1694 <li class="md-nav__item">
1695 <a href="#ft_module_class" class="md-nav__link">
1696 <span class="md-ellipsis">
1697 FT_Module_Class
1698 </span>
1699 </a>
1700
1701 </li>
1702
1703 <li class="md-nav__item">
1704 <a href="#ft_add_module" class="md-nav__link">
1705 <span class="md-ellipsis">
1706 FT_Add_Module
1707 </span>
1708 </a>
1709
1710 </li>
1711
1712 <li class="md-nav__item">
1713 <a href="#ft_get_module" class="md-nav__link">
1714 <span class="md-ellipsis">
1715 FT_Get_Module
1716 </span>
1717 </a>
1718
1719 </li>
1720
1721 <li class="md-nav__item">
1722 <a href="#ft_remove_module" class="md-nav__link">
1723 <span class="md-ellipsis">
1724 FT_Remove_Module
1725 </span>
1726 </a>
1727
1728 </li>
1729
1730 <li class="md-nav__item">
1731 <a href="#ft_add_default_modules" class="md-nav__link">
1732 <span class="md-ellipsis">
1733 FT_Add_Default_Modules
1734 </span>
1735 </a>
1736
1737 </li>
1738
1739 <li class="md-nav__item">
1740 <a href="#ft_face_driver_name" class="md-nav__link">
1741 <span class="md-ellipsis">
1742 FT_FACE_DRIVER_NAME
1743 </span>
1744 </a>
1745
1746 </li>
1747
1748 <li class="md-nav__item">
1749 <a href="#ft_property_set" class="md-nav__link">
1750 <span class="md-ellipsis">
1751 FT_Property_Set
1752 </span>
1753 </a>
1754
1755 </li>
1756
1757 <li class="md-nav__item">
1758 <a href="#ft_property_get" class="md-nav__link">
1759 <span class="md-ellipsis">
1760 FT_Property_Get
1761 </span>
1762 </a>
1763
1764 </li>
1765
1766 <li class="md-nav__item">
1767 <a href="#ft_set_default_properties" class="md-nav__link">
1768 <span class="md-ellipsis">
1769 FT_Set_Default_Properties
1770 </span>
1771 </a>
1772
1773 </li>
1774
1775 <li class="md-nav__item">
1776 <a href="#ft_new_library" class="md-nav__link">
1777 <span class="md-ellipsis">
1778 FT_New_Library
1779 </span>
1780 </a>
1781
1782 </li>
1783
1784 <li class="md-nav__item">
1785 <a href="#ft_done_library" class="md-nav__link">
1786 <span class="md-ellipsis">
1787 FT_Done_Library
1788 </span>
1789 </a>
1790
1791 </li>
1792
1793 <li class="md-nav__item">
1794 <a href="#ft_reference_library" class="md-nav__link">
1795 <span class="md-ellipsis">
1796 FT_Reference_Library
1797 </span>
1798 </a>
1799
1800 </li>
1801
1802 <li class="md-nav__item">
1803 <a href="#ft_renderer" class="md-nav__link">
1804 <span class="md-ellipsis">
1805 FT_Renderer
1806 </span>
1807 </a>
1808
1809 </li>
1810
1811 <li class="md-nav__item">
1812 <a href="#ft_renderer_class" class="md-nav__link">
1813 <span class="md-ellipsis">
1814 FT_Renderer_Class
1815 </span>
1816 </a>
1817
1818 </li>
1819
1820 <li class="md-nav__item">
1821 <a href="#ft_get_renderer" class="md-nav__link">
1822 <span class="md-ellipsis">
1823 FT_Get_Renderer
1824 </span>
1825 </a>
1826
1827 </li>
1828
1829 <li class="md-nav__item">
1830 <a href="#ft_set_renderer" class="md-nav__link">
1831 <span class="md-ellipsis">
1832 FT_Set_Renderer
1833 </span>
1834 </a>
1835
1836 </li>
1837
1838 <li class="md-nav__item">
1839 <a href="#ft_set_debug_hook" class="md-nav__link">
1840 <span class="md-ellipsis">
1841 FT_Set_Debug_Hook
1842 </span>
1843 </a>
1844
1845 </li>
1846
1847 <li class="md-nav__item">
1848 <a href="#ft_driver" class="md-nav__link">
1849 <span class="md-ellipsis">
1850 FT_Driver
1851 </span>
1852 </a>
1853
1854 </li>
1855
1856 <li class="md-nav__item">
1857 <a href="#ft_debughook_func" class="md-nav__link">
1858 <span class="md-ellipsis">
1859 FT_DebugHook_Func
1860 </span>
1861 </a>
1862
1863 </li>
1864
1865 <li class="md-nav__item">
1866 <a href="#ft_debug_hook_xxx" class="md-nav__link">
1867 <span class="md-ellipsis">
1868 FT_DEBUG_HOOK_XXX
1869 </span>
1870 </a>
1871
1872 </li>
1873
1874 </ul>
1875
1876 </nav>
1877
1878 </li>
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889 <li class="md-nav__item">
1890 <a href="ft2-gzip.html" class="md-nav__link">
1891
1892
1893 <span class="md-ellipsis">
1894 GZIP Streams
1895
1896 </span>
1897
1898
1899 </a>
1900 </li>
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 <li class="md-nav__item">
1912 <a href="ft2-lzw.html" class="md-nav__link">
1913
1914
1915 <span class="md-ellipsis">
1916 LZW Streams
1917
1918 </span>
1919
1920
1921 </a>
1922 </li>
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 <li class="md-nav__item">
1934 <a href="ft2-bzip2.html" class="md-nav__link">
1935
1936
1937 <span class="md-ellipsis">
1938 BZIP2 Streams
1939
1940 </span>
1941
1942
1943 </a>
1944 </li>
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955 <li class="md-nav__item">
1956 <a href="ft2-debugging_apis.html" class="md-nav__link">
1957
1958
1959 <span class="md-ellipsis">
1960 External Debugging APIs
1961
1962 </span>
1963
1964
1965 </a>
1966 </li>
1967
1968
1969
1970
1971 </ul>
1972 </nav>
1973
1974 </li>
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988 <li class="md-nav__item md-nav__item--nested">
1989
1990
1991
1992 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1993
1994
1995 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1996
1997
1998 <span class="md-ellipsis">
1999 Error Codes
2000
2001 </span>
2002
2003
2004 <span class="md-nav__icon md-icon"></span>
2005 </label>
2006
2007 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
2008 <label class="md-nav__title" for="__nav_10">
2009 <span class="md-nav__icon md-icon"></span>
2010 Error Codes
2011 </label>
2012 <ul class="md-nav__list" data-md-scrollfix>
2013
2014
2015
2016
2017
2018
2019
2020 <li class="md-nav__item">
2021 <a href="ft2-error_enumerations.html" class="md-nav__link">
2022
2023
2024 <span class="md-ellipsis">
2025 Error Enumerations
2026
2027 </span>
2028
2029
2030 </a>
2031 </li>
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042 <li class="md-nav__item">
2043 <a href="ft2-error_code_values.html" class="md-nav__link">
2044
2045
2046 <span class="md-ellipsis">
2047 Error Code Values
2048
2049 </span>
2050
2051
2052 </a>
2053 </li>
2054
2055
2056
2057
2058 </ul>
2059 </nav>
2060
2061 </li>
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075 <li class="md-nav__item md-nav__item--nested">
2076
2077
2078
2079 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
2080
2081
2082 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
2083
2084
2085 <span class="md-ellipsis">
2086 Miscellaneous
2087
2088 </span>
2089
2090
2091 <span class="md-nav__icon md-icon"></span>
2092 </label>
2093
2094 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
2095 <label class="md-nav__title" for="__nav_11">
2096 <span class="md-nav__icon md-icon"></span>
2097 Miscellaneous
2098 </label>
2099 <ul class="md-nav__list" data-md-scrollfix>
2100
2101
2102
2103
2104
2105
2106
2107 <li class="md-nav__item">
2108 <a href="ft2-gx_validation.html" class="md-nav__link">
2109
2110
2111 <span class="md-ellipsis">
2112 TrueTypeGX/AAT Validation
2113
2114 </span>
2115
2116
2117 </a>
2118 </li>
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129 <li class="md-nav__item">
2130 <a href="ft2-incremental.html" class="md-nav__link">
2131
2132
2133 <span class="md-ellipsis">
2134 Incremental Loading
2135
2136 </span>
2137
2138
2139 </a>
2140 </li>
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151 <li class="md-nav__item">
2152 <a href="ft2-truetype_engine.html" class="md-nav__link">
2153
2154
2155 <span class="md-ellipsis">
2156 The TrueType Engine
2157
2158 </span>
2159
2160
2161 </a>
2162 </li>
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173 <li class="md-nav__item">
2174 <a href="ft2-ot_validation.html" class="md-nav__link">
2175
2176
2177 <span class="md-ellipsis">
2178 OpenType Validation
2179
2180 </span>
2181
2182
2183 </a>
2184 </li>
2185
2186
2187
2188
2189 </ul>
2190 </nav>
2191
2192 </li>
2193
2194
2195
2196 </ul>
2197 </nav>
2198 </div>
2199 </div>
2200 </div>
2201
2202
2203
2204 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2205 <div class="md-sidebar__scrollwrap">
2206 <div class="md-sidebar__inner">
2207
2208
2209 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2210
2211
2212
2213
2214
2215
2216 <label class="md-nav__title" for="__toc">
2217 <span class="md-nav__icon md-icon"></span>
2218 Table of contents
2219 </label>
2220 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2221
2222 <li class="md-nav__item">
2223 <a href="#synopsis" class="md-nav__link">
2224 <span class="md-ellipsis">
2225 Synopsis
2226 </span>
2227 </a>
2228
2229 </li>
2230
2231 <li class="md-nav__item">
2232 <a href="#ft_module" class="md-nav__link">
2233 <span class="md-ellipsis">
2234 FT_Module
2235 </span>
2236 </a>
2237
2238 </li>
2239
2240 <li class="md-nav__item">
2241 <a href="#ft_module_constructor" class="md-nav__link">
2242 <span class="md-ellipsis">
2243 FT_Module_Constructor
2244 </span>
2245 </a>
2246
2247 </li>
2248
2249 <li class="md-nav__item">
2250 <a href="#ft_module_destructor" class="md-nav__link">
2251 <span class="md-ellipsis">
2252 FT_Module_Destructor
2253 </span>
2254 </a>
2255
2256 </li>
2257
2258 <li class="md-nav__item">
2259 <a href="#ft_module_requester" class="md-nav__link">
2260 <span class="md-ellipsis">
2261 FT_Module_Requester
2262 </span>
2263 </a>
2264
2265 </li>
2266
2267 <li class="md-nav__item">
2268 <a href="#ft_module_class" class="md-nav__link">
2269 <span class="md-ellipsis">
2270 FT_Module_Class
2271 </span>
2272 </a>
2273
2274 </li>
2275
2276 <li class="md-nav__item">
2277 <a href="#ft_add_module" class="md-nav__link">
2278 <span class="md-ellipsis">
2279 FT_Add_Module
2280 </span>
2281 </a>
2282
2283 </li>
2284
2285 <li class="md-nav__item">
2286 <a href="#ft_get_module" class="md-nav__link">
2287 <span class="md-ellipsis">
2288 FT_Get_Module
2289 </span>
2290 </a>
2291
2292 </li>
2293
2294 <li class="md-nav__item">
2295 <a href="#ft_remove_module" class="md-nav__link">
2296 <span class="md-ellipsis">
2297 FT_Remove_Module
2298 </span>
2299 </a>
2300
2301 </li>
2302
2303 <li class="md-nav__item">
2304 <a href="#ft_add_default_modules" class="md-nav__link">
2305 <span class="md-ellipsis">
2306 FT_Add_Default_Modules
2307 </span>
2308 </a>
2309
2310 </li>
2311
2312 <li class="md-nav__item">
2313 <a href="#ft_face_driver_name" class="md-nav__link">
2314 <span class="md-ellipsis">
2315 FT_FACE_DRIVER_NAME
2316 </span>
2317 </a>
2318
2319 </li>
2320
2321 <li class="md-nav__item">
2322 <a href="#ft_property_set" class="md-nav__link">
2323 <span class="md-ellipsis">
2324 FT_Property_Set
2325 </span>
2326 </a>
2327
2328 </li>
2329
2330 <li class="md-nav__item">
2331 <a href="#ft_property_get" class="md-nav__link">
2332 <span class="md-ellipsis">
2333 FT_Property_Get
2334 </span>
2335 </a>
2336
2337 </li>
2338
2339 <li class="md-nav__item">
2340 <a href="#ft_set_default_properties" class="md-nav__link">
2341 <span class="md-ellipsis">
2342 FT_Set_Default_Properties
2343 </span>
2344 </a>
2345
2346 </li>
2347
2348 <li class="md-nav__item">
2349 <a href="#ft_new_library" class="md-nav__link">
2350 <span class="md-ellipsis">
2351 FT_New_Library
2352 </span>
2353 </a>
2354
2355 </li>
2356
2357 <li class="md-nav__item">
2358 <a href="#ft_done_library" class="md-nav__link">
2359 <span class="md-ellipsis">
2360 FT_Done_Library
2361 </span>
2362 </a>
2363
2364 </li>
2365
2366 <li class="md-nav__item">
2367 <a href="#ft_reference_library" class="md-nav__link">
2368 <span class="md-ellipsis">
2369 FT_Reference_Library
2370 </span>
2371 </a>
2372
2373 </li>
2374
2375 <li class="md-nav__item">
2376 <a href="#ft_renderer" class="md-nav__link">
2377 <span class="md-ellipsis">
2378 FT_Renderer
2379 </span>
2380 </a>
2381
2382 </li>
2383
2384 <li class="md-nav__item">
2385 <a href="#ft_renderer_class" class="md-nav__link">
2386 <span class="md-ellipsis">
2387 FT_Renderer_Class
2388 </span>
2389 </a>
2390
2391 </li>
2392
2393 <li class="md-nav__item">
2394 <a href="#ft_get_renderer" class="md-nav__link">
2395 <span class="md-ellipsis">
2396 FT_Get_Renderer
2397 </span>
2398 </a>
2399
2400 </li>
2401
2402 <li class="md-nav__item">
2403 <a href="#ft_set_renderer" class="md-nav__link">
2404 <span class="md-ellipsis">
2405 FT_Set_Renderer
2406 </span>
2407 </a>
2408
2409 </li>
2410
2411 <li class="md-nav__item">
2412 <a href="#ft_set_debug_hook" class="md-nav__link">
2413 <span class="md-ellipsis">
2414 FT_Set_Debug_Hook
2415 </span>
2416 </a>
2417
2418 </li>
2419
2420 <li class="md-nav__item">
2421 <a href="#ft_driver" class="md-nav__link">
2422 <span class="md-ellipsis">
2423 FT_Driver
2424 </span>
2425 </a>
2426
2427 </li>
2428
2429 <li class="md-nav__item">
2430 <a href="#ft_debughook_func" class="md-nav__link">
2431 <span class="md-ellipsis">
2432 FT_DebugHook_Func
2433 </span>
2434 </a>
2435
2436 </li>
2437
2438 <li class="md-nav__item">
2439 <a href="#ft_debug_hook_xxx" class="md-nav__link">
2440 <span class="md-ellipsis">
2441 FT_DEBUG_HOOK_XXX
2442 </span>
2443 </a>
2444
2445 </li>
2446
2447 </ul>
2448
2449 </nav>
2450 </div>
2451 </div>
2452 </div>
2453
2454
2455
2456 <div class="md-content" data-md-component="content">
2457 <article class="md-content__inner md-typeset">
2458
2459
2460
2461
2462
2463 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#support-api">Support API</a> &raquo; Module Management</p>
2464 <hr />
2465 <h1 id="module-management">Module Management<a class="headerlink" href="#module-management" title="Permanent link">&para;</a></h1>
2466 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2467 <p>The definitions below are used to manage modules within FreeType. Internal and external modules can be added, upgraded, and removed at runtime. For example, an alternative renderer or proprietary font driver can be registered and prioritized. Additionally, some module properties can also be controlled.</p>
2468 <p>Here is a list of existing values of the <code>module_name</code> field in the <code><a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a></code> structure.
2469 <div class="highlight"><pre><span></span><code> autofitter
2470 bdf
2471 cff
2472 gxvalid
2473 otvalid
2474 pcf
2475 pfr
2476 psaux
2477 pshinter
2478 psnames
2479 raster1
2480 sfnt
2481 smooth
2482 truetype
2483 type1
2484 type42
2485 t1cid
2486 winfonts
2487 </code></pre></div></p>
2488 <p>Note that the FreeType Cache sub-system is not a FreeType module.</p>
2489 <h2 id="ft_module">FT_Module<a class="headerlink" href="#ft_module" title="Permanent link">&para;</a></h2>
2490 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2491 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ModuleRec_* <b>FT_Module</b>;
2492 </code></pre></div>
2493
2494 <p>A handle to a given FreeType module object. A module can be a font driver, a renderer, or anything else that provides services to the former.</p>
2495 <hr>
2496
2497 <h2 id="ft_module_constructor">FT_Module_Constructor<a class="headerlink" href="#ft_module_constructor" title="Permanent link">&para;</a></h2>
2498 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2499 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <a href="ft2-basic_types.html#ft_error">FT_Error</a>
2500 (*<b>FT_Module_Constructor</b>)( <a href="ft2-module_management.html#ft_module">FT_Module</a> module );
2501 </code></pre></div>
2502
2503 <p>A function used to initialize (not create) a new module object.</p>
2504 <h4>input</h4>
2505 <table class="fields">
2506 <tr><td class="val" id="module">module</td><td class="desc">
2507 <p>The module to initialize.</p>
2508 </td></tr>
2509 </table>
2510
2511 <hr>
2512
2513 <h2 id="ft_module_destructor">FT_Module_Destructor<a class="headerlink" href="#ft_module_destructor" title="Permanent link">&para;</a></h2>
2514 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2515 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">void</span>
2516 (*<b>FT_Module_Destructor</b>)( <a href="ft2-module_management.html#ft_module">FT_Module</a> module );
2517 </code></pre></div>
2518
2519 <p>A function used to finalize (not destroy) a given module object.</p>
2520 <h4>input</h4>
2521 <table class="fields">
2522 <tr><td class="val" id="module">module</td><td class="desc">
2523 <p>The module to finalize.</p>
2524 </td></tr>
2525 </table>
2526
2527 <hr>
2528
2529 <h2 id="ft_module_requester">FT_Module_Requester<a class="headerlink" href="#ft_module_requester" title="Permanent link">&para;</a></h2>
2530 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2531 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> FT_Module_Interface
2532 (*<b>FT_Module_Requester</b>)( <a href="ft2-module_management.html#ft_module">FT_Module</a> module,
2533 <span class="keyword">const</span> <span class="keyword">char</span>* name );
2534 </code></pre></div>
2535
2536 <p>A function used to query a given module for a specific interface.</p>
2537 <h4>input</h4>
2538 <table class="fields">
2539 <tr><td class="val" id="module">module</td><td class="desc">
2540 <p>The module to be searched.</p>
2541 </td></tr>
2542 <tr><td class="val" id="name">name</td><td class="desc">
2543 <p>The name of the interface in the module.</p>
2544 </td></tr>
2545 </table>
2546
2547 <hr>
2548
2549 <h2 id="ft_module_class">FT_Module_Class<a class="headerlink" href="#ft_module_class" title="Permanent link">&para;</a></h2>
2550 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2551 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Module_Class_
2552 {
2553 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> module_flags;
2554 <a href="ft2-basic_types.html#ft_long">FT_Long</a> module_size;
2555 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* module_name;
2556 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> module_version;
2557 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> module_requires;
2558
2559 <span class="keyword">const</span> <span class="keyword">void</span>* module_interface;
2560
2561 <a href="ft2-module_management.html#ft_module_constructor">FT_Module_Constructor</a> module_init;
2562 <a href="ft2-module_management.html#ft_module_destructor">FT_Module_Destructor</a> module_done;
2563 <a href="ft2-module_management.html#ft_module_requester">FT_Module_Requester</a> get_interface;
2564
2565 } <b>FT_Module_Class</b>;
2566 </code></pre></div>
2567
2568 <p>The module class descriptor. While being a public structure necessary for FreeType's module bookkeeping, most of the fields are essentially internal, not to be used directly by an application.</p>
2569 <h4>fields</h4>
2570 <table class="fields">
2571 <tr><td class="val" id="module_flags">module_flags</td><td class="desc">
2572 <p>Bit flags describing the module.</p>
2573 </td></tr>
2574 <tr><td class="val" id="module_size">module_size</td><td class="desc">
2575 <p>The size of one module object/instance in bytes.</p>
2576 </td></tr>
2577 <tr><td class="val" id="module_name">module_name</td><td class="desc">
2578 <p>The name of the module.</p>
2579 </td></tr>
2580 <tr><td class="val" id="module_version">module_version</td><td class="desc">
2581 <p>The version, as a 16.16 fixed number (major.minor).</p>
2582 </td></tr>
2583 <tr><td class="val" id="module_requires">module_requires</td><td class="desc">
2584 <p>The version of FreeType this module requires, as a 16.16 fixed number (major.minor). Starts at version 2.0, i.e., 0x20000.</p>
2585 </td></tr>
2586 <tr><td class="val" id="module_interface">module_interface</td><td class="desc">
2587 <p>A typeless pointer to a structure (which varies between different modules) that holds the module's interface functions. This is essentially what <code>get_interface</code> returns.</p>
2588 </td></tr>
2589 <tr><td class="val" id="module_init">module_init</td><td class="desc">
2590 <p>The initializing function.</p>
2591 </td></tr>
2592 <tr><td class="val" id="module_done">module_done</td><td class="desc">
2593 <p>The finalizing function.</p>
2594 </td></tr>
2595 <tr><td class="val" id="get_interface">get_interface</td><td class="desc">
2596 <p>The interface requesting function.</p>
2597 </td></tr>
2598 </table>
2599
2600 <hr>
2601
2602 <h2 id="ft_add_module">FT_Add_Module<a class="headerlink" href="#ft_add_module" title="Permanent link">&para;</a></h2>
2603 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2604 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2605 <b>FT_Add_Module</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2606 <span class="keyword">const</span> <a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a>* clazz );
2607 </code></pre></div>
2608
2609 <p>Add a new module to a given library instance.</p>
2610 <h4>inout</h4>
2611 <table class="fields">
2612 <tr><td class="val" id="library">library</td><td class="desc">
2613 <p>A handle to the library object.</p>
2614 </td></tr>
2615 </table>
2616
2617 <h4>input</h4>
2618 <table class="fields">
2619 <tr><td class="val" id="clazz">clazz</td><td class="desc">
2620 <p>A pointer to class descriptor for the module.</p>
2621 </td></tr>
2622 </table>
2623
2624 <h4>return</h4>
2625
2626 <p>FreeType error code. 0&nbsp;means success.</p>
2627 <h4>note</h4>
2628
2629 <p>An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great.</p>
2630 <hr>
2631
2632 <h2 id="ft_get_module">FT_Get_Module<a class="headerlink" href="#ft_get_module" title="Permanent link">&para;</a></h2>
2633 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2634 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-module_management.html#ft_module">FT_Module</a> )
2635 <b>FT_Get_Module</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2636 <span class="keyword">const</span> <span class="keyword">char</span>* module_name );
2637 </code></pre></div>
2638
2639 <p>Find a module by its name.</p>
2640 <h4>input</h4>
2641 <table class="fields">
2642 <tr><td class="val" id="library">library</td><td class="desc">
2643 <p>A handle to the library object.</p>
2644 </td></tr>
2645 <tr><td class="val" id="module_name">module_name</td><td class="desc">
2646 <p>The module's name (as an ASCII string).</p>
2647 </td></tr>
2648 </table>
2649
2650 <h4>return</h4>
2651
2652 <p>A module handle. 0&nbsp;if none was found.</p>
2653 <h4>note</h4>
2654
2655 <p>FreeType's internal modules aren't documented very well, and you should look up the source code for details.</p>
2656 <hr>
2657
2658 <h2 id="ft_remove_module">FT_Remove_Module<a class="headerlink" href="#ft_remove_module" title="Permanent link">&para;</a></h2>
2659 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2660 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2661 <b>FT_Remove_Module</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2662 <a href="ft2-module_management.html#ft_module">FT_Module</a> module );
2663 </code></pre></div>
2664
2665 <p>Remove a given module from a library instance.</p>
2666 <h4>inout</h4>
2667 <table class="fields">
2668 <tr><td class="val" id="library">library</td><td class="desc">
2669 <p>A handle to a library object.</p>
2670 </td></tr>
2671 </table>
2672
2673 <h4>input</h4>
2674 <table class="fields">
2675 <tr><td class="val" id="module">module</td><td class="desc">
2676 <p>A handle to a module object.</p>
2677 </td></tr>
2678 </table>
2679
2680 <h4>return</h4>
2681
2682 <p>FreeType error code. 0&nbsp;means success.</p>
2683 <h4>note</h4>
2684
2685 <p>The module object is destroyed by the function in case of success.</p>
2686 <hr>
2687
2688 <h2 id="ft_add_default_modules">FT_Add_Default_Modules<a class="headerlink" href="#ft_add_default_modules" title="Permanent link">&para;</a></h2>
2689 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2690 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2691 <b>FT_Add_Default_Modules</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library );
2692 </code></pre></div>
2693
2694 <p>Add the set of default drivers to a given library object. This is only useful when you create a library object with <code><a href="ft2-module_management.html#ft_new_library">FT_New_Library</a></code> (usually to plug a custom memory manager).</p>
2695 <h4>inout</h4>
2696 <table class="fields">
2697 <tr><td class="val" id="library">library</td><td class="desc">
2698 <p>A handle to a new library object.</p>
2699 </td></tr>
2700 </table>
2701
2702 <hr>
2703
2704 <h2 id="ft_face_driver_name">FT_FACE_DRIVER_NAME<a class="headerlink" href="#ft_face_driver_name" title="Permanent link">&para;</a></h2>
2705 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2706 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <b>FT_FACE_DRIVER_NAME</b>( face ) \
2707 ( ( *FT_REINTERPRET_CAST( <a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a>**, \
2708 ( face )-&gt;driver ) )-&gt;module_name )
2709 </code></pre></div>
2710
2711 <p>A macro that retrieves the name of a font driver from a face object.</p>
2712 <h4>note</h4>
2713
2714 <p>The font driver name is a valid <code>module_name</code> for <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>. This is not the same as <code><a href="ft2-font_formats.html#ft_get_font_format">FT_Get_Font_Format</a></code>.</p>
2715 <h4>since</h4>
2716
2717 <p>2.11</p>
2718 <hr>
2719
2720 <h2 id="ft_property_set">FT_Property_Set<a class="headerlink" href="#ft_property_set" title="Permanent link">&para;</a></h2>
2721 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2722 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2723 <b>FT_Property_Set</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2724 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* module_name,
2725 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* property_name,
2726 <span class="keyword">const</span> <span class="keyword">void</span>* value );
2727 </code></pre></div>
2728
2729 <p>Set a property for a given module.</p>
2730 <h4>input</h4>
2731 <table class="fields">
2732 <tr><td class="val" id="library">library</td><td class="desc">
2733 <p>A handle to the library the module is part of.</p>
2734 </td></tr>
2735 <tr><td class="val" id="module_name">module_name</td><td class="desc">
2736 <p>The module name.</p>
2737 </td></tr>
2738 <tr><td class="val" id="property_name">property_name</td><td class="desc">
2739 <p>The property name. Properties are described in section ‘<a href="ft2-properties.html#properties">Driver properties</a>’.</p>
2740 <p>Note that only a few modules have properties.</p>
2741 </td></tr>
2742 <tr><td class="val" id="value">value</td><td class="desc">
2743 <p>A generic pointer to a variable or structure that gives the new value of the property. The exact definition of <code>value</code> is dependent on the property; see section ‘<a href="ft2-properties.html#properties">Driver properties</a>’.</p>
2744 </td></tr>
2745 </table>
2746
2747 <h4>return</h4>
2748
2749 <p>FreeType error code. 0&nbsp;means success.</p>
2750 <h4>note</h4>
2751
2752 <p>If <code>module_name</code> isn't a valid module name, or <code>property_name</code> doesn't specify a valid property, or if <code>value</code> doesn't represent a valid value for the given property, an error is returned.</p>
2753 <p>The following example sets property &lsquo;bar&rsquo; (a simple integer) in module &lsquo;foo&rsquo; to value&nbsp;1.
2754 <div class="highlight"><pre><span></span><code> FT_UInt bar;
2755
2756
2757 bar = 1;
2758 FT_Property_Set( library, &quot;foo&quot;, &quot;bar&quot;, &amp;bar );
2759 </code></pre></div></p>
2760 <p>Note that the FreeType Cache sub-system doesn't recognize module property changes. To avoid glyph lookup confusion within the cache you should call <code><a href="ft2-cache_subsystem.html#ftc_manager_reset">FTC_Manager_Reset</a></code> to completely flush the cache if a module property gets changed after <code><a href="ft2-cache_subsystem.html#ftc_manager_new">FTC_Manager_New</a></code> has been called.</p>
2761 <p>It is not possible to set properties of the FreeType Cache sub-system itself with FT_Property_Set; use ?FTC_Property_Set? instead.</p>
2762 <h4>since</h4>
2763
2764 <p>2.4.11</p>
2765 <hr>
2766
2767 <h2 id="ft_property_get">FT_Property_Get<a class="headerlink" href="#ft_property_get" title="Permanent link">&para;</a></h2>
2768 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2769 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2770 <b>FT_Property_Get</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2771 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* module_name,
2772 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* property_name,
2773 <span class="keyword">void</span>* value );
2774 </code></pre></div>
2775
2776 <p>Get a module's property value.</p>
2777 <h4>input</h4>
2778 <table class="fields">
2779 <tr><td class="val" id="library">library</td><td class="desc">
2780 <p>A handle to the library the module is part of.</p>
2781 </td></tr>
2782 <tr><td class="val" id="module_name">module_name</td><td class="desc">
2783 <p>The module name.</p>
2784 </td></tr>
2785 <tr><td class="val" id="property_name">property_name</td><td class="desc">
2786 <p>The property name. Properties are described in section ‘<a href="ft2-properties.html#properties">Driver properties</a>’.</p>
2787 </td></tr>
2788 </table>
2789
2790 <h4>inout</h4>
2791 <table class="fields">
2792 <tr><td class="val" id="value">value</td><td class="desc">
2793 <p>A generic pointer to a variable or structure that gives the value of the property. The exact definition of <code>value</code> is dependent on the property; see section ‘<a href="ft2-properties.html#properties">Driver properties</a>’.</p>
2794 </td></tr>
2795 </table>
2796
2797 <h4>return</h4>
2798
2799 <p>FreeType error code. 0&nbsp;means success.</p>
2800 <h4>note</h4>
2801
2802 <p>If <code>module_name</code> isn't a valid module name, or <code>property_name</code> doesn't specify a valid property, or if <code>value</code> doesn't represent a valid value for the given property, an error is returned.</p>
2803 <p>The following example gets property &lsquo;baz&rsquo; (a range) in module &lsquo;foo&rsquo;.
2804 <div class="highlight"><pre><span></span><code> typedef range_
2805 {
2806 FT_Int32 min;
2807 FT_Int32 max;
2808
2809 } range;
2810
2811 range baz;
2812
2813
2814 FT_Property_Get( library, &quot;foo&quot;, &quot;baz&quot;, &amp;baz );
2815 </code></pre></div></p>
2816 <p>It is not possible to retrieve properties of the FreeType Cache sub-system with FT_Property_Get; use ?FTC_Property_Get? instead.</p>
2817 <h4>since</h4>
2818
2819 <p>2.4.11</p>
2820 <hr>
2821
2822 <h2 id="ft_set_default_properties">FT_Set_Default_Properties<a class="headerlink" href="#ft_set_default_properties" title="Permanent link">&para;</a></h2>
2823 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2824 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
2825 <b>FT_Set_Default_Properties</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library );
2826 </code></pre></div>
2827
2828 <p>If compilation option <code>FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES</code> is set, this function reads the <code>FREETYPE_PROPERTIES</code> environment variable to control driver properties. See section &lsquo;<a href="ft2-properties.html#properties">Driver properties</a>&rsquo; for more.</p>
2829 <p>If the compilation option is not set, this function does nothing.</p>
2830 <p><code>FREETYPE_PROPERTIES</code> has the following syntax form (broken here into multiple lines for better readability).
2831 <div class="highlight"><pre><span></span><code> &lt;optional whitespace&gt;
2832 &lt;module-name1&gt; &#39;:&#39;
2833 &lt;property-name1&gt; &#39;=&#39; &lt;property-value1&gt;
2834 &lt;whitespace&gt;
2835 &lt;module-name2&gt; &#39;:&#39;
2836 &lt;property-name2&gt; &#39;=&#39; &lt;property-value2&gt;
2837 ...
2838 </code></pre></div></p>
2839 <p>Example:
2840 <div class="highlight"><pre><span></span><code> FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
2841 cff:no-stem-darkening=0
2842 </code></pre></div></p>
2843 <h4>inout</h4>
2844 <table class="fields">
2845 <tr><td class="val" id="library">library</td><td class="desc">
2846 <p>A handle to a new library object.</p>
2847 </td></tr>
2848 </table>
2849
2850 <h4>since</h4>
2851
2852 <p>2.8</p>
2853 <hr>
2854
2855 <h2 id="ft_new_library">FT_New_Library<a class="headerlink" href="#ft_new_library" title="Permanent link">&para;</a></h2>
2856 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2857 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2858 <b>FT_New_Library</b>( <a href="ft2-system_interface.html#ft_memory">FT_Memory</a> memory,
2859 <a href="ft2-library_setup.html#ft_library">FT_Library</a> *alibrary );
2860 </code></pre></div>
2861
2862 <p>This function is used to create a new FreeType library instance from a given memory object. It is thus possible to use libraries with distinct memory allocators within the same program. Note, however, that the used <code><a href="ft2-system_interface.html#ft_memory">FT_Memory</a></code> structure is expected to remain valid for the life of the <code><a href="ft2-library_setup.html#ft_library">FT_Library</a></code> object.</p>
2863 <p>Normally, you would call this function (followed by a call to <code><a href="ft2-module_management.html#ft_add_default_modules">FT_Add_Default_Modules</a></code> or a series of calls to <code><a href="ft2-module_management.html#ft_add_module">FT_Add_Module</a></code>, and a call to <code><a href="ft2-module_management.html#ft_set_default_properties">FT_Set_Default_Properties</a></code>) instead of <code><a href="ft2-library_setup.html#ft_init_freetype">FT_Init_FreeType</a></code> to initialize the FreeType library.</p>
2864 <p>Don't use <code><a href="ft2-library_setup.html#ft_done_freetype">FT_Done_FreeType</a></code> but <code><a href="ft2-module_management.html#ft_done_library">FT_Done_Library</a></code> to destroy a library instance.</p>
2865 <h4>input</h4>
2866 <table class="fields">
2867 <tr><td class="val" id="memory">memory</td><td class="desc">
2868 <p>A handle to the original memory object.</p>
2869 </td></tr>
2870 </table>
2871
2872 <h4>output</h4>
2873 <table class="fields">
2874 <tr><td class="val" id="alibrary">alibrary</td><td class="desc">
2875 <p>A pointer to handle of a new library object.</p>
2876 </td></tr>
2877 </table>
2878
2879 <h4>return</h4>
2880
2881 <p>FreeType error code. 0&nbsp;means success.</p>
2882 <h4>note</h4>
2883
2884 <p>See the discussion of reference counters in the description of <code><a href="ft2-module_management.html#ft_reference_library">FT_Reference_Library</a></code>.</p>
2885 <hr>
2886
2887 <h2 id="ft_done_library">FT_Done_Library<a class="headerlink" href="#ft_done_library" title="Permanent link">&para;</a></h2>
2888 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2889 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2890 <b>FT_Done_Library</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library );
2891 </code></pre></div>
2892
2893 <p>Discard a given library object. This closes all drivers and discards all resource objects.</p>
2894 <h4>input</h4>
2895 <table class="fields">
2896 <tr><td class="val" id="library">library</td><td class="desc">
2897 <p>A handle to the target library.</p>
2898 </td></tr>
2899 </table>
2900
2901 <h4>return</h4>
2902
2903 <p>FreeType error code. 0&nbsp;means success.</p>
2904 <h4>note</h4>
2905
2906 <p>See the discussion of reference counters in the description of <code><a href="ft2-module_management.html#ft_reference_library">FT_Reference_Library</a></code>.</p>
2907 <hr>
2908
2909 <h2 id="ft_reference_library">FT_Reference_Library<a class="headerlink" href="#ft_reference_library" title="Permanent link">&para;</a></h2>
2910 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
2911 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2912 <b>FT_Reference_Library</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library );
2913 </code></pre></div>
2914
2915 <p>A counter gets initialized to&nbsp;1 at the time an <code><a href="ft2-library_setup.html#ft_library">FT_Library</a></code> structure is created. This function increments the counter. <code><a href="ft2-module_management.html#ft_done_library">FT_Done_Library</a></code> then only destroys a library if the counter is&nbsp;1, otherwise it simply decrements the counter.</p>
2916 <p>This function helps in managing life-cycles of structures that reference <code><a href="ft2-library_setup.html#ft_library">FT_Library</a></code> objects.</p>
2917 <h4>input</h4>
2918 <table class="fields">
2919 <tr><td class="val" id="library">library</td><td class="desc">
2920 <p>A handle to a target library object.</p>
2921 </td></tr>
2922 </table>
2923
2924 <h4>return</h4>
2925
2926 <p>FreeType error code. 0&nbsp;means success.</p>
2927 <h4>since</h4>
2928
2929 <p>2.4.2</p>
2930 <hr>
2931
2932 <h2 id="ft_renderer">FT_Renderer<a class="headerlink" href="#ft_renderer" title="Permanent link">&para;</a></h2>
2933 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2934 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_RendererRec_* <b>FT_Renderer</b>;
2935 </code></pre></div>
2936
2937 <p>A handle to a given FreeType renderer. A renderer is a module in charge of converting a glyph's outline image to a bitmap. It supports a single glyph image format, and one or more target surface depths.</p>
2938 <hr>
2939
2940 <h2 id="ft_renderer_class">FT_Renderer_Class<a class="headerlink" href="#ft_renderer_class" title="Permanent link">&para;</a></h2>
2941 <p>Defined in FT_RENDER_H (freetype/ftrender.h).</p>
2942 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Renderer_Class_
2943 {
2944 <a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a> root;
2945
2946 <a href="ft2-basic_types.html#ft_glyph_format">FT_Glyph_Format</a> glyph_format;
2947
2948 FT_Renderer_RenderFunc render_glyph;
2949 FT_Renderer_TransformFunc transform_glyph;
2950 FT_Renderer_GetCBoxFunc get_glyph_cbox;
2951 FT_Renderer_SetModeFunc set_mode;
2952
2953 <span class="keyword">const</span> <a href="ft2-raster.html#ft_raster_funcs">FT_Raster_Funcs</a>* raster_class;
2954
2955 } <b>FT_Renderer_Class</b>;
2956 </code></pre></div>
2957
2958 <p>The renderer module class descriptor.</p>
2959 <h4>fields</h4>
2960 <table class="fields">
2961 <tr><td class="val" id="root">root</td><td class="desc">
2962 <p>The root <code><a href="ft2-module_management.html#ft_module_class">FT_Module_Class</a></code> fields.</p>
2963 </td></tr>
2964 <tr><td class="val" id="glyph_format">glyph_format</td><td class="desc">
2965 <p>The glyph image format this renderer handles.</p>
2966 </td></tr>
2967 <tr><td class="val" id="render_glyph">render_glyph</td><td class="desc">
2968 <p>A method used to render the image that is in a given glyph slot into a bitmap.</p>
2969 </td></tr>
2970 <tr><td class="val" id="transform_glyph">transform_glyph</td><td class="desc">
2971 <p>A method used to transform the image that is in a given glyph slot.</p>
2972 </td></tr>
2973 <tr><td class="val" id="get_glyph_cbox">get_glyph_cbox</td><td class="desc">
2974 <p>A method used to access the glyph's cbox.</p>
2975 </td></tr>
2976 <tr><td class="val" id="set_mode">set_mode</td><td class="desc">
2977 <p>A method used to pass additional parameters.</p>
2978 </td></tr>
2979 <tr><td class="val" id="raster_class">raster_class</td><td class="desc">
2980 <p>For <code><a href="ft2-basic_types.html#ft_glyph_format">FT_GLYPH_FORMAT_OUTLINE</a></code> renderers only. This is a pointer to its raster's class.</p>
2981 </td></tr>
2982 </table>
2983
2984 <hr>
2985
2986 <h2 id="ft_get_renderer">FT_Get_Renderer<a class="headerlink" href="#ft_get_renderer" title="Permanent link">&para;</a></h2>
2987 <p>Defined in FT_RENDER_H (freetype/ftrender.h).</p>
2988 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-module_management.html#ft_renderer">FT_Renderer</a> )
2989 <b>FT_Get_Renderer</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2990 <a href="ft2-basic_types.html#ft_glyph_format">FT_Glyph_Format</a> format );
2991 </code></pre></div>
2992
2993 <p>Retrieve the current renderer for a given glyph format.</p>
2994 <h4>input</h4>
2995 <table class="fields">
2996 <tr><td class="val" id="library">library</td><td class="desc">
2997 <p>A handle to the library object.</p>
2998 </td></tr>
2999 <tr><td class="val" id="format">format</td><td class="desc">
3000 <p>The glyph format.</p>
3001 </td></tr>
3002 </table>
3003
3004 <h4>return</h4>
3005
3006 <p>A renderer handle. 0&nbsp;if none found.</p>
3007 <h4>note</h4>
3008
3009 <p>An error will be returned if a module already exists by that name, or if the module requires a version of FreeType that is too great.</p>
3010 <p>To add a new renderer, simply use <code><a href="ft2-module_management.html#ft_add_module">FT_Add_Module</a></code>. To retrieve a renderer by its name, use <code><a href="ft2-module_management.html#ft_get_module">FT_Get_Module</a></code>.</p>
3011 <hr>
3012
3013 <h2 id="ft_set_renderer">FT_Set_Renderer<a class="headerlink" href="#ft_set_renderer" title="Permanent link">&para;</a></h2>
3014 <p>Defined in FT_RENDER_H (freetype/ftrender.h).</p>
3015 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
3016 <b>FT_Set_Renderer</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
3017 <a href="ft2-module_management.html#ft_renderer">FT_Renderer</a> renderer,
3018 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_params,
3019 <a href="ft2-face_creation.html#ft_parameter">FT_Parameter</a>* parameters );
3020 </code></pre></div>
3021
3022 <p>Set the current renderer to use, and set additional mode.</p>
3023 <h4>inout</h4>
3024 <table class="fields">
3025 <tr><td class="val" id="library">library</td><td class="desc">
3026 <p>A handle to the library object.</p>
3027 </td></tr>
3028 </table>
3029
3030 <h4>input</h4>
3031 <table class="fields">
3032 <tr><td class="val" id="renderer">renderer</td><td class="desc">
3033 <p>A handle to the renderer object.</p>
3034 </td></tr>
3035 <tr><td class="val" id="num_params">num_params</td><td class="desc">
3036 <p>The number of additional parameters.</p>
3037 </td></tr>
3038 <tr><td class="val" id="parameters">parameters</td><td class="desc">
3039 <p>Additional parameters.</p>
3040 </td></tr>
3041 </table>
3042
3043 <h4>return</h4>
3044
3045 <p>FreeType error code. 0&nbsp;means success.</p>
3046 <h4>note</h4>
3047
3048 <p>In case of success, the renderer will be used to convert glyph images in the renderer's known format into bitmaps.</p>
3049 <p>This doesn't change the current renderer for other formats.</p>
3050 <p>Currently, no FreeType renderer module uses <code>parameters</code>; you should thus always pass <code>NULL</code> as the value.</p>
3051 <hr>
3052
3053 <h2 id="ft_set_debug_hook">FT_Set_Debug_Hook<a class="headerlink" href="#ft_set_debug_hook" title="Permanent link">&para;</a></h2>
3054 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
3055 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">void</span> )
3056 <b>FT_Set_Debug_Hook</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
3057 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> hook_index,
3058 <a href="ft2-module_management.html#ft_debughook_func">FT_DebugHook_Func</a> debug_hook );
3059 </code></pre></div>
3060
3061 <p>Set a debug hook function for debugging the interpreter of a font format.</p>
3062 <p>While this is a public API function, an application needs access to FreeType's internal header files to do something useful.</p>
3063 <p>Have a look at the source code of the <code>ttdebug</code> FreeType demo program for an example of its usage.</p>
3064 <h4>inout</h4>
3065 <table class="fields">
3066 <tr><td class="val" id="library">library</td><td class="desc">
3067 <p>A handle to the library object.</p>
3068 </td></tr>
3069 </table>
3070
3071 <h4>input</h4>
3072 <table class="fields">
3073 <tr><td class="val" id="hook_index">hook_index</td><td class="desc">
3074 <p>The index of the debug hook. You should use defined enumeration macros like <code><a href="ft2-module_management.html#ft_debug_hook_xxx">FT_DEBUG_HOOK_TRUETYPE</a></code>.</p>
3075 </td></tr>
3076 <tr><td class="val" id="debug_hook">debug_hook</td><td class="desc">
3077 <p>The function used to debug the interpreter.</p>
3078 </td></tr>
3079 </table>
3080
3081 <h4>note</h4>
3082
3083 <p>Currently, four debug hook slots are available, but only one (for the TrueType interpreter) is defined.</p>
3084 <hr>
3085
3086 <h2 id="ft_driver">FT_Driver<a class="headerlink" href="#ft_driver" title="Permanent link">&para;</a></h2>
3087 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
3088 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_DriverRec_* <b>FT_Driver</b>;
3089 </code></pre></div>
3090
3091 <p>A handle to a given FreeType font driver object. A font driver is a module capable of creating faces from font files.</p>
3092 <hr>
3093
3094 <h2 id="ft_debughook_func">FT_DebugHook_Func<a class="headerlink" href="#ft_debughook_func" title="Permanent link">&para;</a></h2>
3095 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
3096 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <a href="ft2-basic_types.html#ft_error">FT_Error</a>
3097 (*<b>FT_DebugHook_Func</b>)( <span class="keyword">void</span>* arg );
3098 </code></pre></div>
3099
3100 <p>A drop-in replacement (or rather a wrapper) for the bytecode or charstring interpreter's main loop function.</p>
3101 <p>Its job is essentially</p>
3102 <ul>
3103 <li>
3104 <p>to activate debug mode to enforce single-stepping,</p>
3105 </li>
3106 <li>
3107 <p>to call the main loop function to interpret the next opcode, and</p>
3108 </li>
3109 <li>
3110 <p>to show the changed context to the user.</p>
3111 </li>
3112 </ul>
3113 <p>An example for such a main loop function is <code>TT_RunIns</code> (declared in FreeType's internal header file <code>src/truetype/ttinterp.h</code>).</p>
3114 <p>Have a look at the source code of the <code>ttdebug</code> FreeType demo program for an example of a drop-in replacement.</p>
3115 <h4>inout</h4>
3116 <table class="fields">
3117 <tr><td class="val" id="arg">arg</td><td class="desc">
3118 <p>A typeless pointer, to be cast to the main loop function's data structure (which depends on the font module). For TrueType fonts it is bytecode interpreter's execution context, <code>TT_ExecContext</code>, which is declared in FreeType's internal header file <code>tttypes.h</code>.</p>
3119 </td></tr>
3120 </table>
3121
3122 <hr>
3123
3124 <h2 id="ft_debug_hook_xxx">FT_DEBUG_HOOK_XXX<a class="headerlink" href="#ft_debug_hook_xxx" title="Permanent link">&para;</a></h2>
3125 <p>Defined in FT_MODULE_H (freetype/ftmodapi.h).</p>
3126 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-module_management.html#ft_debug_hook_truetype">FT_DEBUG_HOOK_TRUETYPE</a> 0
3127 </code></pre></div>
3128
3129 <p>A list of named debug hook indices.</p>
3130 <h4>values</h4>
3131 <table class="fields">
3132 <tr><td class="val" id="ft_debug_hook_truetype">FT_DEBUG_HOOK_TRUETYPE</td><td class="desc">
3133 <p>This hook index identifies the TrueType bytecode debugger.</p>
3134 </td></tr>
3135 </table>
3136
3137 <hr>
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151 </article>
3152 </div>
3153
3154
3155 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
3156 </div>
3157
3158 </main>
3159
3160 <footer class="md-footer">
3161
3162 <div class="md-footer-meta md-typeset">
3163 <div class="md-footer-meta__inner md-grid">
3164 <div class="md-copyright">
3165
3166 <div class="md-copyright__highlight">
3167 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
3168 </div>
3169
3170
3171 Made with
3172 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3173 Material for MkDocs
3174 </a>
3175
3176 </div>
3177
3178 </div>
3179 </div>
3180 </footer>
3181
3182 </div>
3183 <div class="md-dialog" data-md-component="dialog">
3184 <div class="md-dialog__inner md-typeset"></div>
3185 </div>
3186
3187
3188 <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>
3189
3190
3191 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
3192
3193 <script src="javascripts/extra.js"></script>
3194
3195
3196 </body>
3197 </html>