Debian Codegraph @

docs/reference/ft2-information_retrieval.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-information_retrieval.html">
16
17
18 <link rel="prev" href="ft2-character_mapping.html">
19
20
21 <link rel="next" href="ft2-other_api_data.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>Information Retrieval - 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="#information-retrieval" 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 Information Retrieval
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
363
364 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
365
366
367
368 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" checked>
369
370
371 <label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
372
373
374 <span class="md-ellipsis">
375 Core API
376
377 </span>
378
379
380 <span class="md-nav__icon md-icon"></span>
381 </label>
382
383 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="true">
384 <label class="md-nav__title" for="__nav_4">
385 <span class="md-nav__icon md-icon"></span>
386 Core API
387 </label>
388 <ul class="md-nav__list" data-md-scrollfix>
389
390
391
392
393
394
395
396 <li class="md-nav__item">
397 <a href="ft2-basic_types.html" class="md-nav__link">
398
399
400 <span class="md-ellipsis">
401 Basic Data Types
402
403 </span>
404
405
406 </a>
407 </li>
408
409
410
411
412
413
414
415
416
417
418 <li class="md-nav__item">
419 <a href="ft2-library_setup.html" class="md-nav__link">
420
421
422 <span class="md-ellipsis">
423 Library Setup
424
425 </span>
426
427
428 </a>
429 </li>
430
431
432
433
434
435
436
437
438
439
440 <li class="md-nav__item">
441 <a href="ft2-face_creation.html" class="md-nav__link">
442
443
444 <span class="md-ellipsis">
445 Face Creation
446
447 </span>
448
449
450 </a>
451 </li>
452
453
454
455
456
457
458
459
460
461
462 <li class="md-nav__item">
463 <a href="ft2-font_testing_macros.html" class="md-nav__link">
464
465
466 <span class="md-ellipsis">
467 Font Testing Macros
468
469 </span>
470
471
472 </a>
473 </li>
474
475
476
477
478
479
480
481
482
483
484 <li class="md-nav__item">
485 <a href="ft2-sizing_and_scaling.html" class="md-nav__link">
486
487
488 <span class="md-ellipsis">
489 Sizing and Scaling
490
491 </span>
492
493
494 </a>
495 </li>
496
497
498
499
500
501
502
503
504
505
506 <li class="md-nav__item">
507 <a href="ft2-glyph_retrieval.html" class="md-nav__link">
508
509
510 <span class="md-ellipsis">
511 Glyph Retrieval
512
513 </span>
514
515
516 </a>
517 </li>
518
519
520
521
522
523
524
525
526
527
528 <li class="md-nav__item">
529 <a href="ft2-character_mapping.html" class="md-nav__link">
530
531
532 <span class="md-ellipsis">
533 Character Mapping
534
535 </span>
536
537
538 </a>
539 </li>
540
541
542
543
544
545
546
547
548
549
550
551
552 <li class="md-nav__item md-nav__item--active">
553
554 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
555
556
557
558
559
560 <label class="md-nav__link md-nav__link--active" for="__toc">
561
562
563 <span class="md-ellipsis">
564 Information Retrieval
565
566 </span>
567
568
569 <span class="md-nav__icon md-icon"></span>
570 </label>
571
572 <a href="ft2-information_retrieval.html" class="md-nav__link md-nav__link--active">
573
574
575 <span class="md-ellipsis">
576 Information Retrieval
577
578 </span>
579
580
581 </a>
582
583
584
585 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
586
587
588
589
590
591
592 <label class="md-nav__title" for="__toc">
593 <span class="md-nav__icon md-icon"></span>
594 Table of contents
595 </label>
596 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
597
598 <li class="md-nav__item">
599 <a href="#synopsis" class="md-nav__link">
600 <span class="md-ellipsis">
601 Synopsis
602 </span>
603 </a>
604
605 </li>
606
607 <li class="md-nav__item">
608 <a href="#ft_get_name_index" class="md-nav__link">
609 <span class="md-ellipsis">
610 FT_Get_Name_Index
611 </span>
612 </a>
613
614 </li>
615
616 <li class="md-nav__item">
617 <a href="#ft_get_glyph_name" class="md-nav__link">
618 <span class="md-ellipsis">
619 FT_Get_Glyph_Name
620 </span>
621 </a>
622
623 </li>
624
625 <li class="md-nav__item">
626 <a href="#ft_get_postscript_name" class="md-nav__link">
627 <span class="md-ellipsis">
628 FT_Get_Postscript_Name
629 </span>
630 </a>
631
632 </li>
633
634 <li class="md-nav__item">
635 <a href="#ft_get_fstype_flags" class="md-nav__link">
636 <span class="md-ellipsis">
637 FT_Get_FSType_Flags
638 </span>
639 </a>
640
641 </li>
642
643 <li class="md-nav__item">
644 <a href="#ft_fstype_xxx" class="md-nav__link">
645 <span class="md-ellipsis">
646 FT_FSTYPE_XXX
647 </span>
648 </a>
649
650 </li>
651
652 <li class="md-nav__item">
653 <a href="#ft_get_subglyph_info" class="md-nav__link">
654 <span class="md-ellipsis">
655 FT_Get_SubGlyph_Info
656 </span>
657 </a>
658
659 </li>
660
661 <li class="md-nav__item">
662 <a href="#ft_subglyph_flag_xxx" class="md-nav__link">
663 <span class="md-ellipsis">
664 FT_SUBGLYPH_FLAG_XXX
665 </span>
666 </a>
667
668 </li>
669
670 </ul>
671
672 </nav>
673
674 </li>
675
676
677
678
679
680
681
682
683
684
685 <li class="md-nav__item">
686 <a href="ft2-other_api_data.html" class="md-nav__link">
687
688
689 <span class="md-ellipsis">
690 Other API Data
691
692 </span>
693
694
695 </a>
696 </li>
697
698
699
700
701 </ul>
702 </nav>
703
704 </li>
705
706
707
708
709
710
711
712
713
714
715
716
717
718 <li class="md-nav__item md-nav__item--nested">
719
720
721
722 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" >
723
724
725 <label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
726
727
728 <span class="md-ellipsis">
729 Extended API
730
731 </span>
732
733
734 <span class="md-nav__icon md-icon"></span>
735 </label>
736
737 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="false">
738 <label class="md-nav__title" for="__nav_5">
739 <span class="md-nav__icon md-icon"></span>
740 Extended API
741 </label>
742 <ul class="md-nav__list" data-md-scrollfix>
743
744
745
746
747
748
749
750 <li class="md-nav__item">
751 <a href="ft2-glyph_variants.html" class="md-nav__link">
752
753
754 <span class="md-ellipsis">
755 Unicode Variation Sequences
756
757 </span>
758
759
760 </a>
761 </li>
762
763
764
765
766
767
768
769
770
771
772 <li class="md-nav__item">
773 <a href="ft2-color_management.html" class="md-nav__link">
774
775
776 <span class="md-ellipsis">
777 Glyph Color Management
778
779 </span>
780
781
782 </a>
783 </li>
784
785
786
787
788
789
790
791
792
793
794 <li class="md-nav__item">
795 <a href="ft2-layer_management.html" class="md-nav__link">
796
797
798 <span class="md-ellipsis">
799 Glyph Layer Management
800
801 </span>
802
803
804 </a>
805 </li>
806
807
808
809
810
811
812
813
814
815
816 <li class="md-nav__item">
817 <a href="ft2-glyph_management.html" class="md-nav__link">
818
819
820 <span class="md-ellipsis">
821 Glyph Management
822
823 </span>
824
825
826 </a>
827 </li>
828
829
830
831
832
833
834
835
836
837
838 <li class="md-nav__item">
839 <a href="ft2-mac_specific.html" class="md-nav__link">
840
841
842 <span class="md-ellipsis">
843 Mac Specific Interface
844
845 </span>
846
847
848 </a>
849 </li>
850
851
852
853
854
855
856
857
858
859
860 <li class="md-nav__item">
861 <a href="ft2-sizes_management.html" class="md-nav__link">
862
863
864 <span class="md-ellipsis">
865 Size Management
866
867 </span>
868
869
870 </a>
871 </li>
872
873
874
875
876
877
878
879
880
881
882 <li class="md-nav__item">
883 <a href="ft2-header_file_macros.html" class="md-nav__link">
884
885
886 <span class="md-ellipsis">
887 Header File Macros
888
889 </span>
890
891
892 </a>
893 </li>
894
895
896
897
898 </ul>
899 </nav>
900
901 </li>
902
903
904
905
906
907
908
909
910
911
912
913
914
915 <li class="md-nav__item md-nav__item--nested">
916
917
918
919 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" >
920
921
922 <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
923
924
925 <span class="md-ellipsis">
926 Format-Specific API
927
928 </span>
929
930
931 <span class="md-nav__icon md-icon"></span>
932 </label>
933
934 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="false">
935 <label class="md-nav__title" for="__nav_6">
936 <span class="md-nav__icon md-icon"></span>
937 Format-Specific API
938 </label>
939 <ul class="md-nav__list" data-md-scrollfix>
940
941
942
943
944
945
946
947 <li class="md-nav__item">
948 <a href="ft2-multiple_masters.html" class="md-nav__link">
949
950
951 <span class="md-ellipsis">
952 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
953
954 </span>
955
956
957 </a>
958 </li>
959
960
961
962
963
964
965
966
967
968
969 <li class="md-nav__item">
970 <a href="ft2-truetype_tables.html" class="md-nav__link">
971
972
973 <span class="md-ellipsis">
974 TrueType Tables
975
976 </span>
977
978
979 </a>
980 </li>
981
982
983
984
985
986
987
988
989
990
991 <li class="md-nav__item">
992 <a href="ft2-type1_tables.html" class="md-nav__link">
993
994
995 <span class="md-ellipsis">
996 Type 1 Tables
997
998 </span>
999
1000
1001 </a>
1002 </li>
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013 <li class="md-nav__item">
1014 <a href="ft2-sfnt_names.html" class="md-nav__link">
1015
1016
1017 <span class="md-ellipsis">
1018 SFNT Names
1019
1020 </span>
1021
1022
1023 </a>
1024 </li>
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035 <li class="md-nav__item">
1036 <a href="ft2-bdf_fonts.html" class="md-nav__link">
1037
1038
1039 <span class="md-ellipsis">
1040 BDF and PCF Files
1041
1042 </span>
1043
1044
1045 </a>
1046 </li>
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057 <li class="md-nav__item">
1058 <a href="ft2-cid_fonts.html" class="md-nav__link">
1059
1060
1061 <span class="md-ellipsis">
1062 CID Fonts
1063
1064 </span>
1065
1066
1067 </a>
1068 </li>
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079 <li class="md-nav__item">
1080 <a href="ft2-pfr_fonts.html" class="md-nav__link">
1081
1082
1083 <span class="md-ellipsis">
1084 PFR Fonts
1085
1086 </span>
1087
1088
1089 </a>
1090 </li>
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101 <li class="md-nav__item">
1102 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
1103
1104
1105 <span class="md-ellipsis">
1106 Window FNT Files
1107
1108 </span>
1109
1110
1111 </a>
1112 </li>
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123 <li class="md-nav__item">
1124 <a href="ft2-svg_fonts.html" class="md-nav__link">
1125
1126
1127 <span class="md-ellipsis">
1128 OpenType SVG Fonts
1129
1130 </span>
1131
1132
1133 </a>
1134 </li>
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145 <li class="md-nav__item">
1146 <a href="ft2-font_formats.html" class="md-nav__link">
1147
1148
1149 <span class="md-ellipsis">
1150 Font Formats
1151
1152 </span>
1153
1154
1155 </a>
1156 </li>
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167 <li class="md-nav__item">
1168 <a href="ft2-gasp_table.html" class="md-nav__link">
1169
1170
1171 <span class="md-ellipsis">
1172 Gasp Table
1173
1174 </span>
1175
1176
1177 </a>
1178 </li>
1179
1180
1181
1182
1183 </ul>
1184 </nav>
1185
1186 </li>
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200 <li class="md-nav__item md-nav__item--nested">
1201
1202
1203
1204 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
1205
1206
1207 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1208
1209
1210 <span class="md-ellipsis">
1211 Controlling FreeType Modules
1212
1213 </span>
1214
1215
1216 <span class="md-nav__icon md-icon"></span>
1217 </label>
1218
1219 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
1220 <label class="md-nav__title" for="__nav_7">
1221 <span class="md-nav__icon md-icon"></span>
1222 Controlling FreeType Modules
1223 </label>
1224 <ul class="md-nav__list" data-md-scrollfix>
1225
1226
1227
1228
1229
1230
1231
1232 <li class="md-nav__item">
1233 <a href="ft2-auto_hinter.html" class="md-nav__link">
1234
1235
1236 <span class="md-ellipsis">
1237 The auto-hinter
1238
1239 </span>
1240
1241
1242 </a>
1243 </li>
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 <li class="md-nav__item">
1255 <a href="ft2-cff_driver.html" class="md-nav__link">
1256
1257
1258 <span class="md-ellipsis">
1259 The CFF driver
1260
1261 </span>
1262
1263
1264 </a>
1265 </li>
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 <li class="md-nav__item">
1277 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1278
1279
1280 <span class="md-ellipsis">
1281 The Type 1 and CID drivers
1282
1283 </span>
1284
1285
1286 </a>
1287 </li>
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298 <li class="md-nav__item">
1299 <a href="ft2-tt_driver.html" class="md-nav__link">
1300
1301
1302 <span class="md-ellipsis">
1303 The TrueType driver
1304
1305 </span>
1306
1307
1308 </a>
1309 </li>
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320 <li class="md-nav__item">
1321 <a href="ft2-pcf_driver.html" class="md-nav__link">
1322
1323
1324 <span class="md-ellipsis">
1325 The PCF driver
1326
1327 </span>
1328
1329
1330 </a>
1331 </li>
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 <li class="md-nav__item">
1343 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1344
1345
1346 <span class="md-ellipsis">
1347 The SVG driver
1348
1349 </span>
1350
1351
1352 </a>
1353 </li>
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 <li class="md-nav__item">
1365 <a href="ft2-properties.html" class="md-nav__link">
1366
1367
1368 <span class="md-ellipsis">
1369 Driver properties
1370
1371 </span>
1372
1373
1374 </a>
1375 </li>
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 <li class="md-nav__item">
1387 <a href="ft2-parameter_tags.html" class="md-nav__link">
1388
1389
1390 <span class="md-ellipsis">
1391 Parameter Tags
1392
1393 </span>
1394
1395
1396 </a>
1397 </li>
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408 <li class="md-nav__item">
1409 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1410
1411
1412 <span class="md-ellipsis">
1413 Subpixel Rendering
1414
1415 </span>
1416
1417
1418 </a>
1419 </li>
1420
1421
1422
1423
1424 </ul>
1425 </nav>
1426
1427 </li>
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441 <li class="md-nav__item md-nav__item--nested">
1442
1443
1444
1445 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1446
1447
1448 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1449
1450
1451 <span class="md-ellipsis">
1452 Cache Sub-System
1453
1454 </span>
1455
1456
1457 <span class="md-nav__icon md-icon"></span>
1458 </label>
1459
1460 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1461 <label class="md-nav__title" for="__nav_8">
1462 <span class="md-nav__icon md-icon"></span>
1463 Cache Sub-System
1464 </label>
1465 <ul class="md-nav__list" data-md-scrollfix>
1466
1467
1468
1469
1470
1471
1472
1473 <li class="md-nav__item">
1474 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1475
1476
1477 <span class="md-ellipsis">
1478 Cache Sub-System
1479
1480 </span>
1481
1482
1483 </a>
1484 </li>
1485
1486
1487
1488
1489 </ul>
1490 </nav>
1491
1492 </li>
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506 <li class="md-nav__item md-nav__item--nested">
1507
1508
1509
1510 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
1511
1512
1513 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1514
1515
1516 <span class="md-ellipsis">
1517 Support API
1518
1519 </span>
1520
1521
1522 <span class="md-nav__icon md-icon"></span>
1523 </label>
1524
1525 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
1526 <label class="md-nav__title" for="__nav_9">
1527 <span class="md-nav__icon md-icon"></span>
1528 Support API
1529 </label>
1530 <ul class="md-nav__list" data-md-scrollfix>
1531
1532
1533
1534
1535
1536
1537
1538 <li class="md-nav__item">
1539 <a href="ft2-computations.html" class="md-nav__link">
1540
1541
1542 <span class="md-ellipsis">
1543 Computations
1544
1545 </span>
1546
1547
1548 </a>
1549 </li>
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560 <li class="md-nav__item">
1561 <a href="ft2-list_processing.html" class="md-nav__link">
1562
1563
1564 <span class="md-ellipsis">
1565 List Processing
1566
1567 </span>
1568
1569
1570 </a>
1571 </li>
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582 <li class="md-nav__item">
1583 <a href="ft2-outline_processing.html" class="md-nav__link">
1584
1585
1586 <span class="md-ellipsis">
1587 Outline Processing
1588
1589 </span>
1590
1591
1592 </a>
1593 </li>
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604 <li class="md-nav__item">
1605 <a href="ft2-quick_advance.html" class="md-nav__link">
1606
1607
1608 <span class="md-ellipsis">
1609 Quick retrieval of advance values
1610
1611 </span>
1612
1613
1614 </a>
1615 </li>
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626 <li class="md-nav__item">
1627 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1628
1629
1630 <span class="md-ellipsis">
1631 Bitmap Handling
1632
1633 </span>
1634
1635
1636 </a>
1637 </li>
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648 <li class="md-nav__item">
1649 <a href="ft2-raster.html" class="md-nav__link">
1650
1651
1652 <span class="md-ellipsis">
1653 Scanline Converter
1654
1655 </span>
1656
1657
1658 </a>
1659 </li>
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670 <li class="md-nav__item">
1671 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1672
1673
1674 <span class="md-ellipsis">
1675 Glyph Stroker
1676
1677 </span>
1678
1679
1680 </a>
1681 </li>
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692 <li class="md-nav__item">
1693 <a href="ft2-system_interface.html" class="md-nav__link">
1694
1695
1696 <span class="md-ellipsis">
1697 System Interface
1698
1699 </span>
1700
1701
1702 </a>
1703 </li>
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714 <li class="md-nav__item">
1715 <a href="ft2-module_management.html" class="md-nav__link">
1716
1717
1718 <span class="md-ellipsis">
1719 Module Management
1720
1721 </span>
1722
1723
1724 </a>
1725 </li>
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 <li class="md-nav__item">
1737 <a href="ft2-gzip.html" class="md-nav__link">
1738
1739
1740 <span class="md-ellipsis">
1741 GZIP Streams
1742
1743 </span>
1744
1745
1746 </a>
1747 </li>
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758 <li class="md-nav__item">
1759 <a href="ft2-lzw.html" class="md-nav__link">
1760
1761
1762 <span class="md-ellipsis">
1763 LZW Streams
1764
1765 </span>
1766
1767
1768 </a>
1769 </li>
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 <li class="md-nav__item">
1781 <a href="ft2-bzip2.html" class="md-nav__link">
1782
1783
1784 <span class="md-ellipsis">
1785 BZIP2 Streams
1786
1787 </span>
1788
1789
1790 </a>
1791 </li>
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802 <li class="md-nav__item">
1803 <a href="ft2-debugging_apis.html" class="md-nav__link">
1804
1805
1806 <span class="md-ellipsis">
1807 External Debugging APIs
1808
1809 </span>
1810
1811
1812 </a>
1813 </li>
1814
1815
1816
1817
1818 </ul>
1819 </nav>
1820
1821 </li>
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835 <li class="md-nav__item md-nav__item--nested">
1836
1837
1838
1839 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1840
1841
1842 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1843
1844
1845 <span class="md-ellipsis">
1846 Error Codes
1847
1848 </span>
1849
1850
1851 <span class="md-nav__icon md-icon"></span>
1852 </label>
1853
1854 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
1855 <label class="md-nav__title" for="__nav_10">
1856 <span class="md-nav__icon md-icon"></span>
1857 Error Codes
1858 </label>
1859 <ul class="md-nav__list" data-md-scrollfix>
1860
1861
1862
1863
1864
1865
1866
1867 <li class="md-nav__item">
1868 <a href="ft2-error_enumerations.html" class="md-nav__link">
1869
1870
1871 <span class="md-ellipsis">
1872 Error Enumerations
1873
1874 </span>
1875
1876
1877 </a>
1878 </li>
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889 <li class="md-nav__item">
1890 <a href="ft2-error_code_values.html" class="md-nav__link">
1891
1892
1893 <span class="md-ellipsis">
1894 Error Code Values
1895
1896 </span>
1897
1898
1899 </a>
1900 </li>
1901
1902
1903
1904
1905 </ul>
1906 </nav>
1907
1908 </li>
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 <li class="md-nav__item md-nav__item--nested">
1923
1924
1925
1926 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
1927
1928
1929 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
1930
1931
1932 <span class="md-ellipsis">
1933 Miscellaneous
1934
1935 </span>
1936
1937
1938 <span class="md-nav__icon md-icon"></span>
1939 </label>
1940
1941 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
1942 <label class="md-nav__title" for="__nav_11">
1943 <span class="md-nav__icon md-icon"></span>
1944 Miscellaneous
1945 </label>
1946 <ul class="md-nav__list" data-md-scrollfix>
1947
1948
1949
1950
1951
1952
1953
1954 <li class="md-nav__item">
1955 <a href="ft2-gx_validation.html" class="md-nav__link">
1956
1957
1958 <span class="md-ellipsis">
1959 TrueTypeGX/AAT Validation
1960
1961 </span>
1962
1963
1964 </a>
1965 </li>
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976 <li class="md-nav__item">
1977 <a href="ft2-incremental.html" class="md-nav__link">
1978
1979
1980 <span class="md-ellipsis">
1981 Incremental Loading
1982
1983 </span>
1984
1985
1986 </a>
1987 </li>
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998 <li class="md-nav__item">
1999 <a href="ft2-truetype_engine.html" class="md-nav__link">
2000
2001
2002 <span class="md-ellipsis">
2003 The TrueType Engine
2004
2005 </span>
2006
2007
2008 </a>
2009 </li>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020 <li class="md-nav__item">
2021 <a href="ft2-ot_validation.html" class="md-nav__link">
2022
2023
2024 <span class="md-ellipsis">
2025 OpenType Validation
2026
2027 </span>
2028
2029
2030 </a>
2031 </li>
2032
2033
2034
2035
2036 </ul>
2037 </nav>
2038
2039 </li>
2040
2041
2042
2043 </ul>
2044 </nav>
2045 </div>
2046 </div>
2047 </div>
2048
2049
2050
2051 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2052 <div class="md-sidebar__scrollwrap">
2053 <div class="md-sidebar__inner">
2054
2055
2056 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2057
2058
2059
2060
2061
2062
2063 <label class="md-nav__title" for="__toc">
2064 <span class="md-nav__icon md-icon"></span>
2065 Table of contents
2066 </label>
2067 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2068
2069 <li class="md-nav__item">
2070 <a href="#synopsis" class="md-nav__link">
2071 <span class="md-ellipsis">
2072 Synopsis
2073 </span>
2074 </a>
2075
2076 </li>
2077
2078 <li class="md-nav__item">
2079 <a href="#ft_get_name_index" class="md-nav__link">
2080 <span class="md-ellipsis">
2081 FT_Get_Name_Index
2082 </span>
2083 </a>
2084
2085 </li>
2086
2087 <li class="md-nav__item">
2088 <a href="#ft_get_glyph_name" class="md-nav__link">
2089 <span class="md-ellipsis">
2090 FT_Get_Glyph_Name
2091 </span>
2092 </a>
2093
2094 </li>
2095
2096 <li class="md-nav__item">
2097 <a href="#ft_get_postscript_name" class="md-nav__link">
2098 <span class="md-ellipsis">
2099 FT_Get_Postscript_Name
2100 </span>
2101 </a>
2102
2103 </li>
2104
2105 <li class="md-nav__item">
2106 <a href="#ft_get_fstype_flags" class="md-nav__link">
2107 <span class="md-ellipsis">
2108 FT_Get_FSType_Flags
2109 </span>
2110 </a>
2111
2112 </li>
2113
2114 <li class="md-nav__item">
2115 <a href="#ft_fstype_xxx" class="md-nav__link">
2116 <span class="md-ellipsis">
2117 FT_FSTYPE_XXX
2118 </span>
2119 </a>
2120
2121 </li>
2122
2123 <li class="md-nav__item">
2124 <a href="#ft_get_subglyph_info" class="md-nav__link">
2125 <span class="md-ellipsis">
2126 FT_Get_SubGlyph_Info
2127 </span>
2128 </a>
2129
2130 </li>
2131
2132 <li class="md-nav__item">
2133 <a href="#ft_subglyph_flag_xxx" class="md-nav__link">
2134 <span class="md-ellipsis">
2135 FT_SUBGLYPH_FLAG_XXX
2136 </span>
2137 </a>
2138
2139 </li>
2140
2141 </ul>
2142
2143 </nav>
2144 </div>
2145 </div>
2146 </div>
2147
2148
2149
2150 <div class="md-content" data-md-component="content">
2151 <article class="md-content__inner md-typeset">
2152
2153
2154
2155
2156
2157 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#core-api">Core API</a> &raquo; Information Retrieval</p>
2158 <hr />
2159 <h1 id="information-retrieval">Information Retrieval<a class="headerlink" href="#information-retrieval" title="Permanent link">&para;</a></h1>
2160 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2161 <p>Functions to retrieve font and glyph information. Only some very basic data is covered; see also the chapter on the format-specific API for more.</p>
2162 <h2 id="ft_get_name_index">FT_Get_Name_Index<a class="headerlink" href="#ft_get_name_index" title="Permanent link">&para;</a></h2>
2163 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2164 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> )
2165 <b>FT_Get_Name_Index</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2166 <span class="keyword">const</span> <a href="ft2-basic_types.html#ft_string">FT_String</a>* glyph_name );
2167 </code></pre></div>
2168
2169 <p>Return the glyph index of a given glyph name. This only works for those faces where <code><a href="ft2-font_testing_macros.html#ft_has_glyph_names">FT_HAS_GLYPH_NAMES</a></code> returns true.</p>
2170 <h4>input</h4>
2171 <table class="fields">
2172 <tr><td class="val" id="face">face</td><td class="desc">
2173 <p>A handle to the source face object.</p>
2174 </td></tr>
2175 <tr><td class="val" id="glyph_name">glyph_name</td><td class="desc">
2176 <p>The glyph name.</p>
2177 </td></tr>
2178 </table>
2179
2180 <h4>return</h4>
2181
2182 <p>The glyph index. 0&nbsp;means &lsquo;undefined character code&rsquo;.</p>
2183 <h4>note</h4>
2184
2185 <p>Acceptable glyph names might come from the <a href="https://github.com/adobe-type-tools/agl-aglfn">Adobe Glyph List</a>. See <code><a href="ft2-information_retrieval.html#ft_get_glyph_name">FT_Get_Glyph_Name</a></code> for the inverse functionality.</p>
2186 <p>This function has limited capabilities if the config macro <code>FT_CONFIG_OPTION_POSTSCRIPT_NAMES</code> is not defined in <code>ftoption.h</code>: It then works only for fonts that actually embed glyph names (which many recent OpenType fonts do not).</p>
2187 <hr>
2188
2189 <h2 id="ft_get_glyph_name">FT_Get_Glyph_Name<a class="headerlink" href="#ft_get_glyph_name" title="Permanent link">&para;</a></h2>
2190 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2191 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2192 <b>FT_Get_Glyph_Name</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2193 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> glyph_index,
2194 <a href="ft2-basic_types.html#ft_pointer">FT_Pointer</a> buffer,
2195 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> buffer_max );
2196 </code></pre></div>
2197
2198 <p>Retrieve the ASCII name of a given glyph in a face. This only works for those faces where <code><a href="ft2-font_testing_macros.html#ft_has_glyph_names">FT_HAS_GLYPH_NAMES</a></code> returns true.</p>
2199 <h4>input</h4>
2200 <table class="fields">
2201 <tr><td class="val" id="face">face</td><td class="desc">
2202 <p>A handle to a source face object.</p>
2203 </td></tr>
2204 <tr><td class="val" id="glyph_index">glyph_index</td><td class="desc">
2205 <p>The glyph index.</p>
2206 </td></tr>
2207 <tr><td class="val" id="buffer_max">buffer_max</td><td class="desc">
2208 <p>The maximum number of bytes available in the buffer.</p>
2209 </td></tr>
2210 </table>
2211
2212 <h4>output</h4>
2213 <table class="fields">
2214 <tr><td class="val" id="buffer">buffer</td><td class="desc">
2215 <p>A pointer to a target buffer where the name is copied to.</p>
2216 </td></tr>
2217 </table>
2218
2219 <h4>return</h4>
2220
2221 <p>FreeType error code. 0&nbsp;means success.</p>
2222 <h4>note</h4>
2223
2224 <p>An error is returned if the face doesn't provide glyph names or if the glyph index is invalid. In all cases of failure, the first byte of <code>buffer</code> is set to&nbsp;0 to indicate an empty name.</p>
2225 <p>The glyph name is truncated to fit within the buffer if it is too long. The returned string is always zero-terminated.</p>
2226 <p>Be aware that FreeType reorders glyph indices internally so that glyph index&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo; (called &lsquo;.notdef&rsquo;).</p>
2227 <p>This function has limited capabilities if the config macro <code>FT_CONFIG_OPTION_POSTSCRIPT_NAMES</code> is not defined in <code>ftoption.h</code>: It then works only for fonts that actually embed glyph names (which many recent OpenType fonts do not).</p>
2228 <hr>
2229
2230 <h2 id="ft_get_postscript_name">FT_Get_Postscript_Name<a class="headerlink" href="#ft_get_postscript_name" title="Permanent link">&para;</a></h2>
2231 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2232 <div class = "codehilite"><pre><code> FT_EXPORT( <span class="keyword">const</span> <span class="keyword">char</span>* )
2233 <b>FT_Get_Postscript_Name</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face );
2234 </code></pre></div>
2235
2236 <p>Retrieve the ASCII PostScript name of a given face, if available. This only works with PostScript, TrueType, and OpenType fonts.</p>
2237 <h4>input</h4>
2238 <table class="fields">
2239 <tr><td class="val" id="face">face</td><td class="desc">
2240 <p>A handle to the source face object.</p>
2241 </td></tr>
2242 </table>
2243
2244 <h4>return</h4>
2245
2246 <p>A pointer to the face's PostScript name. <code>NULL</code> if unavailable.</p>
2247 <h4>note</h4>
2248
2249 <p>The returned pointer is owned by the face and is destroyed with it.</p>
2250 <p>For variation fonts, this string changes if you select a different instance, and you have to call <code>FT_Get_PostScript_Name</code> again to retrieve it. FreeType follows Adobe TechNote #5902, &lsquo;Generating PostScript Names for Fonts Using OpenType Font Variations&rsquo;.</p>
2251 <p><a href="https://download.macromedia.com/pub/developer/opentype/tech-notes/5902.AdobePSNameGeneration.html">https://download.macromedia.com/pub/developer/opentype/tech-notes/5902.AdobePSNameGeneration.html</a></p>
2252 <p>[Since 2.9] Special PostScript names for named instances are only returned if the named instance is set with <code><a href="ft2-multiple_masters.html#ft_set_named_instance">FT_Set_Named_Instance</a></code> (and the font has corresponding entries in its &lsquo;fvar&rsquo; table or is the default named instance). If <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true, the algorithmically derived PostScript name is provided, not looking up special entries for named instances.</p>
2253 <hr>
2254
2255 <h2 id="ft_get_fstype_flags">FT_Get_FSType_Flags<a class="headerlink" href="#ft_get_fstype_flags" title="Permanent link">&para;</a></h2>
2256 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2257 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_ushort">FT_UShort</a> )
2258 <b>FT_Get_FSType_Flags</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face );
2259 </code></pre></div>
2260
2261 <p>Return the <code>fsType</code> flags for a font.</p>
2262 <h4>input</h4>
2263 <table class="fields">
2264 <tr><td class="val" id="face">face</td><td class="desc">
2265 <p>A handle to the source face object.</p>
2266 </td></tr>
2267 </table>
2268
2269 <h4>return</h4>
2270
2271 <p>The <code>fsType</code> flags, see <code><a href="ft2-information_retrieval.html#ft_fstype_xxx">FT_FSTYPE_XXX</a></code>.</p>
2272 <h4>note</h4>
2273
2274 <p>Use this function rather than directly reading the <code>fs_type</code> field in the <code><a href="ft2-type1_tables.html#ps_fontinforec">PS_FontInfoRec</a></code> structure, which is only guaranteed to return the correct results for Type&nbsp;1 fonts.</p>
2275 <h4>since</h4>
2276
2277 <p>2.3.8</p>
2278 <hr>
2279
2280 <h2 id="ft_fstype_xxx">FT_FSTYPE_XXX<a class="headerlink" href="#ft_fstype_xxx" title="Permanent link">&para;</a></h2>
2281 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2282 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_installable_embedding">FT_FSTYPE_INSTALLABLE_EMBEDDING</a> 0x0000
2283 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_restricted_license_embedding">FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</a> 0x0002
2284 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_preview_and_print_embedding">FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</a> 0x0004
2285 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_editable_embedding">FT_FSTYPE_EDITABLE_EMBEDDING</a> 0x0008
2286 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_no_subsetting">FT_FSTYPE_NO_SUBSETTING</a> 0x0100
2287 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_fstype_bitmap_embedding_only">FT_FSTYPE_BITMAP_EMBEDDING_ONLY</a> 0x0200
2288 </code></pre></div>
2289
2290 <p>A list of bit flags used in the <code>fsType</code> field of the OS/2 table in a TrueType or OpenType font and the <code>FSType</code> entry in a PostScript font. These bit flags are returned by <code><a href="ft2-information_retrieval.html#ft_get_fstype_flags">FT_Get_FSType_Flags</a></code>; they inform client applications of embedding and subsetting restrictions associated with a font.</p>
2291 <p>See <a href="https://adobe-type-tools.github.io/font-tech-notes/pdfs/AcrobatDC_FontPolicies.pdf">https://adobe-type-tools.github.io/font-tech-notes/pdfs/AcrobatDC_FontPolicies.pdf</a> for more details.</p>
2292 <h4>values</h4>
2293 <table class="fields long">
2294 <tr><td class="val" id="ft_fstype_installable_embedding">FT_FSTYPE_INSTALLABLE_EMBEDDING</td><td class="desc">
2295 <p>Fonts with no fsType bit set may be embedded and permanently installed on the remote system by an application.</p>
2296 </td></tr>
2297 <tr><td class="val" id="ft_fstype_restricted_license_embedding">FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING</td><td class="desc">
2298 <p>Fonts that have only this bit set must not be modified, embedded or exchanged in any manner without first obtaining permission of the font software copyright owner.</p>
2299 </td></tr>
2300 <tr><td class="val" id="ft_fstype_preview_and_print_embedding">FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING</td><td class="desc">
2301 <p>The font may be embedded and temporarily loaded on the remote system. Documents containing Preview &amp; Print fonts must be opened ‘read-only’; no edits can be applied to the document.</p>
2302 </td></tr>
2303 <tr><td class="val" id="ft_fstype_editable_embedding">FT_FSTYPE_EDITABLE_EMBEDDING</td><td class="desc">
2304 <p>The font may be embedded but must only be installed temporarily on other systems. In contrast to Preview &amp; Print fonts, documents containing editable fonts may be opened for reading, editing is permitted, and changes may be saved.</p>
2305 </td></tr>
2306 <tr><td class="val" id="ft_fstype_no_subsetting">FT_FSTYPE_NO_SUBSETTING</td><td class="desc">
2307 <p>The font may not be subsetted prior to embedding.</p>
2308 </td></tr>
2309 <tr><td class="val" id="ft_fstype_bitmap_embedding_only">FT_FSTYPE_BITMAP_EMBEDDING_ONLY</td><td class="desc">
2310 <p>Only bitmaps contained in the font may be embedded; no outline data may be embedded. If there are no bitmaps available in the font, then the font is unembeddable.</p>
2311 </td></tr>
2312 </table>
2313
2314 <h4>note</h4>
2315
2316 <p>The flags are ORed together, thus more than a single value can be returned.</p>
2317 <p>While the <code>fsType</code> flags can indicate that a font may be embedded, a license with the font vendor may be separately required to use the font in this way.</p>
2318 <hr>
2319
2320 <h2 id="ft_get_subglyph_info">FT_Get_SubGlyph_Info<a class="headerlink" href="#ft_get_subglyph_info" title="Permanent link">&para;</a></h2>
2321 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2322 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2323 <b>FT_Get_SubGlyph_Info</b>( <a href="ft2-glyph_retrieval.html#ft_glyphslot">FT_GlyphSlot</a> glyph,
2324 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> sub_index,
2325 <a href="ft2-basic_types.html#ft_int">FT_Int</a> *p_index,
2326 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *p_flags,
2327 <a href="ft2-basic_types.html#ft_int">FT_Int</a> *p_arg1,
2328 <a href="ft2-basic_types.html#ft_int">FT_Int</a> *p_arg2,
2329 <a href="ft2-basic_types.html#ft_matrix">FT_Matrix</a> *p_transform );
2330 </code></pre></div>
2331
2332 <p>Retrieve a description of a given subglyph. Only use it if <code>glyph-&gt;format</code> is <code><a href="ft2-basic_types.html#ft_glyph_format">FT_GLYPH_FORMAT_COMPOSITE</a></code>; an error is returned otherwise.</p>
2333 <h4>input</h4>
2334 <table class="fields">
2335 <tr><td class="val" id="glyph">glyph</td><td class="desc">
2336 <p>The source glyph slot.</p>
2337 </td></tr>
2338 <tr><td class="val" id="sub_index">sub_index</td><td class="desc">
2339 <p>The index of the subglyph. Must be less than <code>glyph-&gt;num_subglyphs</code>.</p>
2340 </td></tr>
2341 </table>
2342
2343 <h4>output</h4>
2344 <table class="fields">
2345 <tr><td class="val" id="p_index">p_index</td><td class="desc">
2346 <p>The glyph index of the subglyph.</p>
2347 </td></tr>
2348 <tr><td class="val" id="p_flags">p_flags</td><td class="desc">
2349 <p>The subglyph flags, see <code><a href="ft2-information_retrieval.html#ft_subglyph_flag_xxx">FT_SUBGLYPH_FLAG_XXX</a></code>.</p>
2350 </td></tr>
2351 <tr><td class="val" id="p_arg1">p_arg1</td><td class="desc">
2352 <p>The subglyph's first argument (if any).</p>
2353 </td></tr>
2354 <tr><td class="val" id="p_arg2">p_arg2</td><td class="desc">
2355 <p>The subglyph's second argument (if any).</p>
2356 </td></tr>
2357 <tr><td class="val" id="p_transform">p_transform</td><td class="desc">
2358 <p>The subglyph transformation (if any).</p>
2359 </td></tr>
2360 </table>
2361
2362 <h4>return</h4>
2363
2364 <p>FreeType error code. 0&nbsp;means success.</p>
2365 <h4>note</h4>
2366
2367 <p>The values of <code>*p_arg1</code>, <code>*p_arg2</code>, and <code>*p_transform</code> must be interpreted depending on the flags returned in <code>*p_flags</code>. See the OpenType specification for details.</p>
2368 <p><a href="https://learn.microsoft.com/typography/opentype/spec/glyf#composite-glyph-description">https://learn.microsoft.com/typography/opentype/spec/glyf#composite-glyph-description</a></p>
2369 <hr>
2370
2371 <h2 id="ft_subglyph_flag_xxx">FT_SUBGLYPH_FLAG_XXX<a class="headerlink" href="#ft_subglyph_flag_xxx" title="Permanent link">&para;</a></h2>
2372 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
2373 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_args_are_words">FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</a> 1
2374 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_args_are_xy_values">FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</a> 2
2375 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_round_xy_to_grid">FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</a> 4
2376 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_scale">FT_SUBGLYPH_FLAG_SCALE</a> 8
2377 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_xy_scale">FT_SUBGLYPH_FLAG_XY_SCALE</a> 0x40
2378 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_2x2">FT_SUBGLYPH_FLAG_2X2</a> 0x80
2379 #<span class="keyword">define</span> <a href="ft2-information_retrieval.html#ft_subglyph_flag_use_my_metrics">FT_SUBGLYPH_FLAG_USE_MY_METRICS</a> 0x200
2380 </code></pre></div>
2381
2382 <p>A list of constants describing subglyphs. Please refer to the &lsquo;glyf&rsquo; table description in the OpenType specification for the meaning of the various flags (which get synthesized for non-OpenType subglyphs).</p>
2383 <p><a href="https://learn.microsoft.com/typography/opentype/spec/glyf#composite-glyph-description">https://learn.microsoft.com/typography/opentype/spec/glyf#composite-glyph-description</a></p>
2384 <h4>values</h4>
2385 <table class="fields long">
2386 <tr><td class="val" id="ft_subglyph_flag_args_are_words">FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS</td><td class="desc">
2387
2388 </td></tr>
2389 <tr><td class="val" id="ft_subglyph_flag_args_are_xy_values">FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES</td><td class="desc">
2390
2391 </td></tr>
2392 <tr><td class="val" id="ft_subglyph_flag_round_xy_to_grid">FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID</td><td class="desc">
2393
2394 </td></tr>
2395 <tr><td class="val" id="ft_subglyph_flag_scale">FT_SUBGLYPH_FLAG_SCALE</td><td class="desc">
2396
2397 </td></tr>
2398 <tr><td class="val" id="ft_subglyph_flag_xy_scale">FT_SUBGLYPH_FLAG_XY_SCALE</td><td class="desc">
2399
2400 </td></tr>
2401 <tr><td class="val" id="ft_subglyph_flag_2x2">FT_SUBGLYPH_FLAG_2X2</td><td class="desc">
2402
2403 </td></tr>
2404 <tr><td class="val" id="ft_subglyph_flag_use_my_metrics">FT_SUBGLYPH_FLAG_USE_MY_METRICS</td><td class="desc">
2405
2406 </td></tr>
2407 </table>
2408
2409 <hr>
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423 </article>
2424 </div>
2425
2426
2427 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
2428 </div>
2429
2430 </main>
2431
2432 <footer class="md-footer">
2433
2434 <div class="md-footer-meta md-typeset">
2435 <div class="md-footer-meta__inner md-grid">
2436 <div class="md-copyright">
2437
2438 <div class="md-copyright__highlight">
2439 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
2440 </div>
2441
2442
2443 Made with
2444 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
2445 Material for MkDocs
2446 </a>
2447
2448 </div>
2449
2450 </div>
2451 </div>
2452 </footer>
2453
2454 </div>
2455 <div class="md-dialog" data-md-component="dialog">
2456 <div class="md-dialog__inner md-typeset"></div>
2457 </div>
2458
2459
2460 <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>
2461
2462
2463 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
2464
2465 <script src="javascripts/extra.js"></script>
2466
2467
2468 </body>
2469 </html>