Debian Codegraph @

docs/reference/ft2-multiple_masters.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-multiple_masters.html">
16
17
18 <link rel="prev" href="ft2-header_file_macros.html">
19
20
21 <link rel="next" href="ft2-truetype_tables.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>OpenType Font Variations, TrueType GX, and Adobe MM Fonts - 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="#opentype-font-variations-truetype-gx-and-adobe-mm-fonts" 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 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
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
801
802 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
803
804
805
806 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_6" checked>
807
808
809 <label class="md-nav__link" for="__nav_6" id="__nav_6_label" tabindex="0">
810
811
812 <span class="md-ellipsis">
813 Format-Specific API
814
815 </span>
816
817
818 <span class="md-nav__icon md-icon"></span>
819 </label>
820
821 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_6_label" aria-expanded="true">
822 <label class="md-nav__title" for="__nav_6">
823 <span class="md-nav__icon md-icon"></span>
824 Format-Specific API
825 </label>
826 <ul class="md-nav__list" data-md-scrollfix>
827
828
829
830
831
832
833
834
835
836 <li class="md-nav__item md-nav__item--active">
837
838 <input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
839
840
841
842
843
844 <label class="md-nav__link md-nav__link--active" for="__toc">
845
846
847 <span class="md-ellipsis">
848 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
849
850 </span>
851
852
853 <span class="md-nav__icon md-icon"></span>
854 </label>
855
856 <a href="ft2-multiple_masters.html" class="md-nav__link md-nav__link--active">
857
858
859 <span class="md-ellipsis">
860 OpenType Font Variations, TrueType GX, and Adobe MM Fonts
861
862 </span>
863
864
865 </a>
866
867
868
869 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
870
871
872
873
874
875
876 <label class="md-nav__title" for="__toc">
877 <span class="md-nav__icon md-icon"></span>
878 Table of contents
879 </label>
880 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
881
882 <li class="md-nav__item">
883 <a href="#synopsis" class="md-nav__link">
884 <span class="md-ellipsis">
885 Synopsis
886 </span>
887 </a>
888
889 </li>
890
891 <li class="md-nav__item">
892 <a href="#t1_max_mm_xxx" class="md-nav__link">
893 <span class="md-ellipsis">
894 T1_MAX_MM_XXX
895 </span>
896 </a>
897
898 </li>
899
900 <li class="md-nav__item">
901 <a href="#ft_mm_axis" class="md-nav__link">
902 <span class="md-ellipsis">
903 FT_MM_Axis
904 </span>
905 </a>
906
907 </li>
908
909 <li class="md-nav__item">
910 <a href="#ft_multi_master" class="md-nav__link">
911 <span class="md-ellipsis">
912 FT_Multi_Master
913 </span>
914 </a>
915
916 </li>
917
918 <li class="md-nav__item">
919 <a href="#ft_var_axis" class="md-nav__link">
920 <span class="md-ellipsis">
921 FT_Var_Axis
922 </span>
923 </a>
924
925 </li>
926
927 <li class="md-nav__item">
928 <a href="#ft_var_named_style" class="md-nav__link">
929 <span class="md-ellipsis">
930 FT_Var_Named_Style
931 </span>
932 </a>
933
934 </li>
935
936 <li class="md-nav__item">
937 <a href="#ft_mm_var" class="md-nav__link">
938 <span class="md-ellipsis">
939 FT_MM_Var
940 </span>
941 </a>
942
943 </li>
944
945 <li class="md-nav__item">
946 <a href="#ft_get_multi_master" class="md-nav__link">
947 <span class="md-ellipsis">
948 FT_Get_Multi_Master
949 </span>
950 </a>
951
952 </li>
953
954 <li class="md-nav__item">
955 <a href="#ft_get_mm_var" class="md-nav__link">
956 <span class="md-ellipsis">
957 FT_Get_MM_Var
958 </span>
959 </a>
960
961 </li>
962
963 <li class="md-nav__item">
964 <a href="#ft_done_mm_var" class="md-nav__link">
965 <span class="md-ellipsis">
966 FT_Done_MM_Var
967 </span>
968 </a>
969
970 </li>
971
972 <li class="md-nav__item">
973 <a href="#ft_set_mm_design_coordinates" class="md-nav__link">
974 <span class="md-ellipsis">
975 FT_Set_MM_Design_Coordinates
976 </span>
977 </a>
978
979 </li>
980
981 <li class="md-nav__item">
982 <a href="#ft_set_var_design_coordinates" class="md-nav__link">
983 <span class="md-ellipsis">
984 FT_Set_Var_Design_Coordinates
985 </span>
986 </a>
987
988 </li>
989
990 <li class="md-nav__item">
991 <a href="#ft_get_var_design_coordinates" class="md-nav__link">
992 <span class="md-ellipsis">
993 FT_Get_Var_Design_Coordinates
994 </span>
995 </a>
996
997 </li>
998
999 <li class="md-nav__item">
1000 <a href="#ft_set_mm_blend_coordinates" class="md-nav__link">
1001 <span class="md-ellipsis">
1002 FT_Set_MM_Blend_Coordinates
1003 </span>
1004 </a>
1005
1006 </li>
1007
1008 <li class="md-nav__item">
1009 <a href="#ft_get_mm_blend_coordinates" class="md-nav__link">
1010 <span class="md-ellipsis">
1011 FT_Get_MM_Blend_Coordinates
1012 </span>
1013 </a>
1014
1015 </li>
1016
1017 <li class="md-nav__item">
1018 <a href="#ft_set_var_blend_coordinates" class="md-nav__link">
1019 <span class="md-ellipsis">
1020 FT_Set_Var_Blend_Coordinates
1021 </span>
1022 </a>
1023
1024 </li>
1025
1026 <li class="md-nav__item">
1027 <a href="#ft_get_var_blend_coordinates" class="md-nav__link">
1028 <span class="md-ellipsis">
1029 FT_Get_Var_Blend_Coordinates
1030 </span>
1031 </a>
1032
1033 </li>
1034
1035 <li class="md-nav__item">
1036 <a href="#ft_set_mm_weightvector" class="md-nav__link">
1037 <span class="md-ellipsis">
1038 FT_Set_MM_WeightVector
1039 </span>
1040 </a>
1041
1042 </li>
1043
1044 <li class="md-nav__item">
1045 <a href="#ft_get_mm_weightvector" class="md-nav__link">
1046 <span class="md-ellipsis">
1047 FT_Get_MM_WeightVector
1048 </span>
1049 </a>
1050
1051 </li>
1052
1053 <li class="md-nav__item">
1054 <a href="#ft_var_axis_flag_xxx" class="md-nav__link">
1055 <span class="md-ellipsis">
1056 FT_VAR_AXIS_FLAG_XXX
1057 </span>
1058 </a>
1059
1060 </li>
1061
1062 <li class="md-nav__item">
1063 <a href="#ft_get_var_axis_flags" class="md-nav__link">
1064 <span class="md-ellipsis">
1065 FT_Get_Var_Axis_Flags
1066 </span>
1067 </a>
1068
1069 </li>
1070
1071 <li class="md-nav__item">
1072 <a href="#ft_set_named_instance" class="md-nav__link">
1073 <span class="md-ellipsis">
1074 FT_Set_Named_Instance
1075 </span>
1076 </a>
1077
1078 </li>
1079
1080 <li class="md-nav__item">
1081 <a href="#ft_get_default_named_instance" class="md-nav__link">
1082 <span class="md-ellipsis">
1083 FT_Get_Default_Named_Instance
1084 </span>
1085 </a>
1086
1087 </li>
1088
1089 </ul>
1090
1091 </nav>
1092
1093 </li>
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104 <li class="md-nav__item">
1105 <a href="ft2-truetype_tables.html" class="md-nav__link">
1106
1107
1108 <span class="md-ellipsis">
1109 TrueType Tables
1110
1111 </span>
1112
1113
1114 </a>
1115 </li>
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126 <li class="md-nav__item">
1127 <a href="ft2-type1_tables.html" class="md-nav__link">
1128
1129
1130 <span class="md-ellipsis">
1131 Type 1 Tables
1132
1133 </span>
1134
1135
1136 </a>
1137 </li>
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148 <li class="md-nav__item">
1149 <a href="ft2-sfnt_names.html" class="md-nav__link">
1150
1151
1152 <span class="md-ellipsis">
1153 SFNT Names
1154
1155 </span>
1156
1157
1158 </a>
1159 </li>
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170 <li class="md-nav__item">
1171 <a href="ft2-bdf_fonts.html" class="md-nav__link">
1172
1173
1174 <span class="md-ellipsis">
1175 BDF and PCF Files
1176
1177 </span>
1178
1179
1180 </a>
1181 </li>
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192 <li class="md-nav__item">
1193 <a href="ft2-cid_fonts.html" class="md-nav__link">
1194
1195
1196 <span class="md-ellipsis">
1197 CID Fonts
1198
1199 </span>
1200
1201
1202 </a>
1203 </li>
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214 <li class="md-nav__item">
1215 <a href="ft2-pfr_fonts.html" class="md-nav__link">
1216
1217
1218 <span class="md-ellipsis">
1219 PFR Fonts
1220
1221 </span>
1222
1223
1224 </a>
1225 </li>
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236 <li class="md-nav__item">
1237 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
1238
1239
1240 <span class="md-ellipsis">
1241 Window FNT Files
1242
1243 </span>
1244
1245
1246 </a>
1247 </li>
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258 <li class="md-nav__item">
1259 <a href="ft2-svg_fonts.html" class="md-nav__link">
1260
1261
1262 <span class="md-ellipsis">
1263 OpenType SVG Fonts
1264
1265 </span>
1266
1267
1268 </a>
1269 </li>
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280 <li class="md-nav__item">
1281 <a href="ft2-font_formats.html" class="md-nav__link">
1282
1283
1284 <span class="md-ellipsis">
1285 Font Formats
1286
1287 </span>
1288
1289
1290 </a>
1291 </li>
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 <li class="md-nav__item">
1303 <a href="ft2-gasp_table.html" class="md-nav__link">
1304
1305
1306 <span class="md-ellipsis">
1307 Gasp Table
1308
1309 </span>
1310
1311
1312 </a>
1313 </li>
1314
1315
1316
1317
1318 </ul>
1319 </nav>
1320
1321 </li>
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335 <li class="md-nav__item md-nav__item--nested">
1336
1337
1338
1339 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_7" >
1340
1341
1342 <label class="md-nav__link" for="__nav_7" id="__nav_7_label" tabindex="0">
1343
1344
1345 <span class="md-ellipsis">
1346 Controlling FreeType Modules
1347
1348 </span>
1349
1350
1351 <span class="md-nav__icon md-icon"></span>
1352 </label>
1353
1354 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_7_label" aria-expanded="false">
1355 <label class="md-nav__title" for="__nav_7">
1356 <span class="md-nav__icon md-icon"></span>
1357 Controlling FreeType Modules
1358 </label>
1359 <ul class="md-nav__list" data-md-scrollfix>
1360
1361
1362
1363
1364
1365
1366
1367 <li class="md-nav__item">
1368 <a href="ft2-auto_hinter.html" class="md-nav__link">
1369
1370
1371 <span class="md-ellipsis">
1372 The auto-hinter
1373
1374 </span>
1375
1376
1377 </a>
1378 </li>
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389 <li class="md-nav__item">
1390 <a href="ft2-cff_driver.html" class="md-nav__link">
1391
1392
1393 <span class="md-ellipsis">
1394 The CFF driver
1395
1396 </span>
1397
1398
1399 </a>
1400 </li>
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411 <li class="md-nav__item">
1412 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
1413
1414
1415 <span class="md-ellipsis">
1416 The Type 1 and CID drivers
1417
1418 </span>
1419
1420
1421 </a>
1422 </li>
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433 <li class="md-nav__item">
1434 <a href="ft2-tt_driver.html" class="md-nav__link">
1435
1436
1437 <span class="md-ellipsis">
1438 The TrueType driver
1439
1440 </span>
1441
1442
1443 </a>
1444 </li>
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455 <li class="md-nav__item">
1456 <a href="ft2-pcf_driver.html" class="md-nav__link">
1457
1458
1459 <span class="md-ellipsis">
1460 The PCF driver
1461
1462 </span>
1463
1464
1465 </a>
1466 </li>
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477 <li class="md-nav__item">
1478 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
1479
1480
1481 <span class="md-ellipsis">
1482 The SVG driver
1483
1484 </span>
1485
1486
1487 </a>
1488 </li>
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499 <li class="md-nav__item">
1500 <a href="ft2-properties.html" class="md-nav__link">
1501
1502
1503 <span class="md-ellipsis">
1504 Driver properties
1505
1506 </span>
1507
1508
1509 </a>
1510 </li>
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521 <li class="md-nav__item">
1522 <a href="ft2-parameter_tags.html" class="md-nav__link">
1523
1524
1525 <span class="md-ellipsis">
1526 Parameter Tags
1527
1528 </span>
1529
1530
1531 </a>
1532 </li>
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543 <li class="md-nav__item">
1544 <a href="ft2-lcd_rendering.html" class="md-nav__link">
1545
1546
1547 <span class="md-ellipsis">
1548 Subpixel Rendering
1549
1550 </span>
1551
1552
1553 </a>
1554 </li>
1555
1556
1557
1558
1559 </ul>
1560 </nav>
1561
1562 </li>
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576 <li class="md-nav__item md-nav__item--nested">
1577
1578
1579
1580 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_8" >
1581
1582
1583 <label class="md-nav__link" for="__nav_8" id="__nav_8_label" tabindex="0">
1584
1585
1586 <span class="md-ellipsis">
1587 Cache Sub-System
1588
1589 </span>
1590
1591
1592 <span class="md-nav__icon md-icon"></span>
1593 </label>
1594
1595 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_8_label" aria-expanded="false">
1596 <label class="md-nav__title" for="__nav_8">
1597 <span class="md-nav__icon md-icon"></span>
1598 Cache Sub-System
1599 </label>
1600 <ul class="md-nav__list" data-md-scrollfix>
1601
1602
1603
1604
1605
1606
1607
1608 <li class="md-nav__item">
1609 <a href="ft2-cache_subsystem.html" class="md-nav__link">
1610
1611
1612 <span class="md-ellipsis">
1613 Cache Sub-System
1614
1615 </span>
1616
1617
1618 </a>
1619 </li>
1620
1621
1622
1623
1624 </ul>
1625 </nav>
1626
1627 </li>
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641 <li class="md-nav__item md-nav__item--nested">
1642
1643
1644
1645 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_9" >
1646
1647
1648 <label class="md-nav__link" for="__nav_9" id="__nav_9_label" tabindex="0">
1649
1650
1651 <span class="md-ellipsis">
1652 Support API
1653
1654 </span>
1655
1656
1657 <span class="md-nav__icon md-icon"></span>
1658 </label>
1659
1660 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_9_label" aria-expanded="false">
1661 <label class="md-nav__title" for="__nav_9">
1662 <span class="md-nav__icon md-icon"></span>
1663 Support API
1664 </label>
1665 <ul class="md-nav__list" data-md-scrollfix>
1666
1667
1668
1669
1670
1671
1672
1673 <li class="md-nav__item">
1674 <a href="ft2-computations.html" class="md-nav__link">
1675
1676
1677 <span class="md-ellipsis">
1678 Computations
1679
1680 </span>
1681
1682
1683 </a>
1684 </li>
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695 <li class="md-nav__item">
1696 <a href="ft2-list_processing.html" class="md-nav__link">
1697
1698
1699 <span class="md-ellipsis">
1700 List Processing
1701
1702 </span>
1703
1704
1705 </a>
1706 </li>
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717 <li class="md-nav__item">
1718 <a href="ft2-outline_processing.html" class="md-nav__link">
1719
1720
1721 <span class="md-ellipsis">
1722 Outline Processing
1723
1724 </span>
1725
1726
1727 </a>
1728 </li>
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739 <li class="md-nav__item">
1740 <a href="ft2-quick_advance.html" class="md-nav__link">
1741
1742
1743 <span class="md-ellipsis">
1744 Quick retrieval of advance values
1745
1746 </span>
1747
1748
1749 </a>
1750 </li>
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761 <li class="md-nav__item">
1762 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1763
1764
1765 <span class="md-ellipsis">
1766 Bitmap Handling
1767
1768 </span>
1769
1770
1771 </a>
1772 </li>
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783 <li class="md-nav__item">
1784 <a href="ft2-raster.html" class="md-nav__link">
1785
1786
1787 <span class="md-ellipsis">
1788 Scanline Converter
1789
1790 </span>
1791
1792
1793 </a>
1794 </li>
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805 <li class="md-nav__item">
1806 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1807
1808
1809 <span class="md-ellipsis">
1810 Glyph Stroker
1811
1812 </span>
1813
1814
1815 </a>
1816 </li>
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827 <li class="md-nav__item">
1828 <a href="ft2-system_interface.html" class="md-nav__link">
1829
1830
1831 <span class="md-ellipsis">
1832 System Interface
1833
1834 </span>
1835
1836
1837 </a>
1838 </li>
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849 <li class="md-nav__item">
1850 <a href="ft2-module_management.html" class="md-nav__link">
1851
1852
1853 <span class="md-ellipsis">
1854 Module Management
1855
1856 </span>
1857
1858
1859 </a>
1860 </li>
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871 <li class="md-nav__item">
1872 <a href="ft2-gzip.html" class="md-nav__link">
1873
1874
1875 <span class="md-ellipsis">
1876 GZIP Streams
1877
1878 </span>
1879
1880
1881 </a>
1882 </li>
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893 <li class="md-nav__item">
1894 <a href="ft2-lzw.html" class="md-nav__link">
1895
1896
1897 <span class="md-ellipsis">
1898 LZW Streams
1899
1900 </span>
1901
1902
1903 </a>
1904 </li>
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915 <li class="md-nav__item">
1916 <a href="ft2-bzip2.html" class="md-nav__link">
1917
1918
1919 <span class="md-ellipsis">
1920 BZIP2 Streams
1921
1922 </span>
1923
1924
1925 </a>
1926 </li>
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937 <li class="md-nav__item">
1938 <a href="ft2-debugging_apis.html" class="md-nav__link">
1939
1940
1941 <span class="md-ellipsis">
1942 External Debugging APIs
1943
1944 </span>
1945
1946
1947 </a>
1948 </li>
1949
1950
1951
1952
1953 </ul>
1954 </nav>
1955
1956 </li>
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970 <li class="md-nav__item md-nav__item--nested">
1971
1972
1973
1974 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >
1975
1976
1977 <label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">
1978
1979
1980 <span class="md-ellipsis">
1981 Error Codes
1982
1983 </span>
1984
1985
1986 <span class="md-nav__icon md-icon"></span>
1987 </label>
1988
1989 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
1990 <label class="md-nav__title" for="__nav_10">
1991 <span class="md-nav__icon md-icon"></span>
1992 Error Codes
1993 </label>
1994 <ul class="md-nav__list" data-md-scrollfix>
1995
1996
1997
1998
1999
2000
2001
2002 <li class="md-nav__item">
2003 <a href="ft2-error_enumerations.html" class="md-nav__link">
2004
2005
2006 <span class="md-ellipsis">
2007 Error Enumerations
2008
2009 </span>
2010
2011
2012 </a>
2013 </li>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024 <li class="md-nav__item">
2025 <a href="ft2-error_code_values.html" class="md-nav__link">
2026
2027
2028 <span class="md-ellipsis">
2029 Error Code Values
2030
2031 </span>
2032
2033
2034 </a>
2035 </li>
2036
2037
2038
2039
2040 </ul>
2041 </nav>
2042
2043 </li>
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057 <li class="md-nav__item md-nav__item--nested">
2058
2059
2060
2061 <input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_11" >
2062
2063
2064 <label class="md-nav__link" for="__nav_11" id="__nav_11_label" tabindex="0">
2065
2066
2067 <span class="md-ellipsis">
2068 Miscellaneous
2069
2070 </span>
2071
2072
2073 <span class="md-nav__icon md-icon"></span>
2074 </label>
2075
2076 <nav class="md-nav" data-md-level="1" aria-labelledby="__nav_11_label" aria-expanded="false">
2077 <label class="md-nav__title" for="__nav_11">
2078 <span class="md-nav__icon md-icon"></span>
2079 Miscellaneous
2080 </label>
2081 <ul class="md-nav__list" data-md-scrollfix>
2082
2083
2084
2085
2086
2087
2088
2089 <li class="md-nav__item">
2090 <a href="ft2-gx_validation.html" class="md-nav__link">
2091
2092
2093 <span class="md-ellipsis">
2094 TrueTypeGX/AAT Validation
2095
2096 </span>
2097
2098
2099 </a>
2100 </li>
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111 <li class="md-nav__item">
2112 <a href="ft2-incremental.html" class="md-nav__link">
2113
2114
2115 <span class="md-ellipsis">
2116 Incremental Loading
2117
2118 </span>
2119
2120
2121 </a>
2122 </li>
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133 <li class="md-nav__item">
2134 <a href="ft2-truetype_engine.html" class="md-nav__link">
2135
2136
2137 <span class="md-ellipsis">
2138 The TrueType Engine
2139
2140 </span>
2141
2142
2143 </a>
2144 </li>
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155 <li class="md-nav__item">
2156 <a href="ft2-ot_validation.html" class="md-nav__link">
2157
2158
2159 <span class="md-ellipsis">
2160 OpenType Validation
2161
2162 </span>
2163
2164
2165 </a>
2166 </li>
2167
2168
2169
2170
2171 </ul>
2172 </nav>
2173
2174 </li>
2175
2176
2177
2178 </ul>
2179 </nav>
2180 </div>
2181 </div>
2182 </div>
2183
2184
2185
2186 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2187 <div class="md-sidebar__scrollwrap">
2188 <div class="md-sidebar__inner">
2189
2190
2191 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2192
2193
2194
2195
2196
2197
2198 <label class="md-nav__title" for="__toc">
2199 <span class="md-nav__icon md-icon"></span>
2200 Table of contents
2201 </label>
2202 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2203
2204 <li class="md-nav__item">
2205 <a href="#synopsis" class="md-nav__link">
2206 <span class="md-ellipsis">
2207 Synopsis
2208 </span>
2209 </a>
2210
2211 </li>
2212
2213 <li class="md-nav__item">
2214 <a href="#t1_max_mm_xxx" class="md-nav__link">
2215 <span class="md-ellipsis">
2216 T1_MAX_MM_XXX
2217 </span>
2218 </a>
2219
2220 </li>
2221
2222 <li class="md-nav__item">
2223 <a href="#ft_mm_axis" class="md-nav__link">
2224 <span class="md-ellipsis">
2225 FT_MM_Axis
2226 </span>
2227 </a>
2228
2229 </li>
2230
2231 <li class="md-nav__item">
2232 <a href="#ft_multi_master" class="md-nav__link">
2233 <span class="md-ellipsis">
2234 FT_Multi_Master
2235 </span>
2236 </a>
2237
2238 </li>
2239
2240 <li class="md-nav__item">
2241 <a href="#ft_var_axis" class="md-nav__link">
2242 <span class="md-ellipsis">
2243 FT_Var_Axis
2244 </span>
2245 </a>
2246
2247 </li>
2248
2249 <li class="md-nav__item">
2250 <a href="#ft_var_named_style" class="md-nav__link">
2251 <span class="md-ellipsis">
2252 FT_Var_Named_Style
2253 </span>
2254 </a>
2255
2256 </li>
2257
2258 <li class="md-nav__item">
2259 <a href="#ft_mm_var" class="md-nav__link">
2260 <span class="md-ellipsis">
2261 FT_MM_Var
2262 </span>
2263 </a>
2264
2265 </li>
2266
2267 <li class="md-nav__item">
2268 <a href="#ft_get_multi_master" class="md-nav__link">
2269 <span class="md-ellipsis">
2270 FT_Get_Multi_Master
2271 </span>
2272 </a>
2273
2274 </li>
2275
2276 <li class="md-nav__item">
2277 <a href="#ft_get_mm_var" class="md-nav__link">
2278 <span class="md-ellipsis">
2279 FT_Get_MM_Var
2280 </span>
2281 </a>
2282
2283 </li>
2284
2285 <li class="md-nav__item">
2286 <a href="#ft_done_mm_var" class="md-nav__link">
2287 <span class="md-ellipsis">
2288 FT_Done_MM_Var
2289 </span>
2290 </a>
2291
2292 </li>
2293
2294 <li class="md-nav__item">
2295 <a href="#ft_set_mm_design_coordinates" class="md-nav__link">
2296 <span class="md-ellipsis">
2297 FT_Set_MM_Design_Coordinates
2298 </span>
2299 </a>
2300
2301 </li>
2302
2303 <li class="md-nav__item">
2304 <a href="#ft_set_var_design_coordinates" class="md-nav__link">
2305 <span class="md-ellipsis">
2306 FT_Set_Var_Design_Coordinates
2307 </span>
2308 </a>
2309
2310 </li>
2311
2312 <li class="md-nav__item">
2313 <a href="#ft_get_var_design_coordinates" class="md-nav__link">
2314 <span class="md-ellipsis">
2315 FT_Get_Var_Design_Coordinates
2316 </span>
2317 </a>
2318
2319 </li>
2320
2321 <li class="md-nav__item">
2322 <a href="#ft_set_mm_blend_coordinates" class="md-nav__link">
2323 <span class="md-ellipsis">
2324 FT_Set_MM_Blend_Coordinates
2325 </span>
2326 </a>
2327
2328 </li>
2329
2330 <li class="md-nav__item">
2331 <a href="#ft_get_mm_blend_coordinates" class="md-nav__link">
2332 <span class="md-ellipsis">
2333 FT_Get_MM_Blend_Coordinates
2334 </span>
2335 </a>
2336
2337 </li>
2338
2339 <li class="md-nav__item">
2340 <a href="#ft_set_var_blend_coordinates" class="md-nav__link">
2341 <span class="md-ellipsis">
2342 FT_Set_Var_Blend_Coordinates
2343 </span>
2344 </a>
2345
2346 </li>
2347
2348 <li class="md-nav__item">
2349 <a href="#ft_get_var_blend_coordinates" class="md-nav__link">
2350 <span class="md-ellipsis">
2351 FT_Get_Var_Blend_Coordinates
2352 </span>
2353 </a>
2354
2355 </li>
2356
2357 <li class="md-nav__item">
2358 <a href="#ft_set_mm_weightvector" class="md-nav__link">
2359 <span class="md-ellipsis">
2360 FT_Set_MM_WeightVector
2361 </span>
2362 </a>
2363
2364 </li>
2365
2366 <li class="md-nav__item">
2367 <a href="#ft_get_mm_weightvector" class="md-nav__link">
2368 <span class="md-ellipsis">
2369 FT_Get_MM_WeightVector
2370 </span>
2371 </a>
2372
2373 </li>
2374
2375 <li class="md-nav__item">
2376 <a href="#ft_var_axis_flag_xxx" class="md-nav__link">
2377 <span class="md-ellipsis">
2378 FT_VAR_AXIS_FLAG_XXX
2379 </span>
2380 </a>
2381
2382 </li>
2383
2384 <li class="md-nav__item">
2385 <a href="#ft_get_var_axis_flags" class="md-nav__link">
2386 <span class="md-ellipsis">
2387 FT_Get_Var_Axis_Flags
2388 </span>
2389 </a>
2390
2391 </li>
2392
2393 <li class="md-nav__item">
2394 <a href="#ft_set_named_instance" class="md-nav__link">
2395 <span class="md-ellipsis">
2396 FT_Set_Named_Instance
2397 </span>
2398 </a>
2399
2400 </li>
2401
2402 <li class="md-nav__item">
2403 <a href="#ft_get_default_named_instance" class="md-nav__link">
2404 <span class="md-ellipsis">
2405 FT_Get_Default_Named_Instance
2406 </span>
2407 </a>
2408
2409 </li>
2410
2411 </ul>
2412
2413 </nav>
2414 </div>
2415 </div>
2416 </div>
2417
2418
2419
2420 <div class="md-content" data-md-component="content">
2421 <article class="md-content__inner md-typeset">
2422
2423
2424
2425
2426
2427 <p><a href="https://www.freetype.org">FreeType</a> &raquo; <a href="../">Docs</a> &raquo; <a href="index.html#format-specific-api">Format-Specific API</a> &raquo; OpenType Font Variations, TrueType GX, and Adobe MM Fonts</p>
2428 <hr />
2429 <h1 id="opentype-font-variations-truetype-gx-and-adobe-mm-fonts">OpenType Font Variations, TrueType GX, and Adobe MM Fonts<a class="headerlink" href="#opentype-font-variations-truetype-gx-and-adobe-mm-fonts" title="Permanent link">&para;</a></h1>
2430 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
2431 <p>The following types and functions manage OpenType Font Variations, Adobe Multiple Master (MM) fonts, and Apple TrueType GX fonts. These formats have in common that they allow the selection of specific design instances by setting design coordinates for one or more axes like font weight or width.</p>
2432 <p>For historical reasons there are two interfaces. The first, older one can be used with Adobe MM fonts only, and the second, newer one is a unified interface that handles all three font formats. However, some differences remain and are documented accordingly; in particular, Adobe MM fonts don't have named instances (see below).</p>
2433 <p>For Adobe MM fonts, macro <code><a href="ft2-font_testing_macros.html#ft_is_sfnt">FT_IS_SFNT</a></code> returns false. For TrueType GX and OpenType Font Variations, it returns true.</p>
2434 <p>We use mostly the terminology of the OpenType standard. Here are some important technical terms.</p>
2435 <ul>
2436 <li>
2437 <p>A &lsquo;named instance&rsquo; is a tuple of design coordinates that has a string ID (i.e., an index into the font's &lsquo;name&rsquo; table) associated with it. The font can tell the user that, for example, [Weight=700,Width=110] is &lsquo;Bold&rsquo;. Another name for &lsquo;named instance&rsquo; is &lsquo;named style&rsquo;.</p>
2438 <p>Adobe MM fonts don't have named instances.</p>
2439 </li>
2440 <li>
2441 <p>The &lsquo;default instance&rsquo; of a variation font is that instance for which the nth axis coordinate is equal to the nth default axis coordinate (i.e., <code>axis[n].def</code> as specified in the <code><a href="ft2-multiple_masters.html#ft_mm_var">FT_MM_Var</a></code> structure), with&nbsp;n covering all axes. In TrueType GX and OpenType Font Variations, the default instance is explicitly given. In Adobe MM fonts, the <code>WeightVector</code> entry as found in the font file is taken as the default instance.</p>
2442 <p>For TrueType GX and OpenType Font Variations, FreeType synthesizes a named instance for the default instance if the font does not contain such an entry.</p>
2443 </li>
2444 <li>
2445 <p>&lsquo;Design coordinates&rsquo; are the axis values found in a variation font file. Their meaning is specified by the font designer and the values are rather arbitrary.</p>
2446 <p>For example, the &lsquo;weight&rsquo; axis in design coordinates might vary between 100 (thin) and 900 (heavy) in font&nbsp;A, while font&nbsp;B contains values between 400 (normal) and 800 (extra bold).</p>
2447 </li>
2448 <li>
2449 <p>&lsquo;Normalized coordinates&rsquo; are design coordinates mapped to a standard range; they are also called &lsquo;blend coordinates&rsquo;.</p>
2450 <p>For TrueType GX and OpenType Font Variations, the range is [-1;1], with the minimum mapped to value&nbsp;-1, the default mapped to value&nbsp;0, and the maximum mapped to value&nbsp;1, and all other coordinates mapped to intervening points. Please look up the <a href="https://learn.microsoft.com/en-us/typography/opentype/spec/otvaroverview">OpenType specification</a> on how this mapping works in detail.</p>
2451 <p>For Adobe MM fonts, this standard range is [0;1], with the minimum mapped to value&nbsp;0 and the maximum mapped to value&nbsp;1, and all other coordinates mapped to intervening points. Please look up <a href="https://adobe-type-tools.github.io/font-tech-notes/pdfs/5015.Type1_Supp.pdf">Adobe TechNote #5015</a> on how this mapping works in detail.</p>
2452 <p>Assuming that the two fonts in the previous example are OpenType Font Variations, both font&nbsp;A's [100;900] and font&nbsp;B's [400;800] coordinate ranges get mapped to [-1;1].</p>
2453 </li>
2454 </ul>
2455 <h2 id="t1_max_mm_xxx">T1_MAX_MM_XXX<a class="headerlink" href="#t1_max_mm_xxx" title="Permanent link">&para;</a></h2>
2456 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2457 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-multiple_masters.html#t1_max_mm_axis">T1_MAX_MM_AXIS</a> 4
2458 #<span class="keyword">define</span> <a href="ft2-multiple_masters.html#t1_max_mm_designs">T1_MAX_MM_DESIGNS</a> 16
2459 #<span class="keyword">define</span> <a href="ft2-multiple_masters.html#t1_max_mm_map_points">T1_MAX_MM_MAP_POINTS</a> 20
2460 </code></pre></div>
2461
2462 <p>Adobe MM font limits as defined in their specifications.</p>
2463 <h4>values</h4>
2464 <table class="fields">
2465 <tr><td class="val" id="t1_max_mm_axis">T1_MAX_MM_AXIS</td><td class="desc">
2466 <p>The maximum number of Adobe MM font axes.</p>
2467 </td></tr>
2468 <tr><td class="val" id="t1_max_mm_designs">T1_MAX_MM_DESIGNS</td><td class="desc">
2469 <p>The maximum number of Adobe MM font designs.</p>
2470 </td></tr>
2471 <tr><td class="val" id="t1_max_mm_map_points">T1_MAX_MM_MAP_POINTS</td><td class="desc">
2472 <p>The maximum number of elements in a design map.</p>
2473 </td></tr>
2474 </table>
2475
2476 <hr>
2477
2478 <h2 id="ft_mm_axis">FT_MM_Axis<a class="headerlink" href="#ft_mm_axis" title="Permanent link">&para;</a></h2>
2479 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2480 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_MM_Axis_
2481 {
2482 <a href="ft2-basic_types.html#ft_string">FT_String</a>* name;
2483 <a href="ft2-basic_types.html#ft_long">FT_Long</a> minimum;
2484 <a href="ft2-basic_types.html#ft_long">FT_Long</a> maximum;
2485
2486 } <b>FT_MM_Axis</b>;
2487 </code></pre></div>
2488
2489 <p>A structure to model a given axis in design space for Adobe MM fonts.</p>
2490 <p>This structure can't be used with TrueType GX or OpenType Font Variations.</p>
2491 <h4>fields</h4>
2492 <table class="fields">
2493 <tr><td class="val" id="name">name</td><td class="desc">
2494 <p>The axis's name.</p>
2495 </td></tr>
2496 <tr><td class="val" id="minimum">minimum</td><td class="desc">
2497 <p>The axis's minimum design coordinate.</p>
2498 </td></tr>
2499 <tr><td class="val" id="maximum">maximum</td><td class="desc">
2500 <p>The axis's maximum design coordinate.</p>
2501 </td></tr>
2502 </table>
2503
2504 <hr>
2505
2506 <h2 id="ft_multi_master">FT_Multi_Master<a class="headerlink" href="#ft_multi_master" title="Permanent link">&para;</a></h2>
2507 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2508 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Multi_Master_
2509 {
2510 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_axis;
2511 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_designs;
2512 <a href="ft2-multiple_masters.html#ft_mm_axis">FT_MM_Axis</a> axis[<a href="ft2-multiple_masters.html#t1_max_mm_axis">T1_MAX_MM_AXIS</a>];
2513
2514 } <b>FT_Multi_Master</b>;
2515 </code></pre></div>
2516
2517 <p>A structure to model the axes and space of an Adobe MM font.</p>
2518 <p>This structure can't be used with TrueType GX or OpenType Font Variations.</p>
2519 <h4>fields</h4>
2520 <table class="fields">
2521 <tr><td class="val" id="num_axis">num_axis</td><td class="desc">
2522 <p>Number of axes. Cannot exceed 4.</p>
2523 </td></tr>
2524 <tr><td class="val" id="num_designs">num_designs</td><td class="desc">
2525 <p>Number of designs; should be normally <code>2^num_axis</code> even though the Type 1 specification strangely allows for intermediate designs to be present. This number cannot exceed 16.</p>
2526 </td></tr>
2527 <tr><td class="val" id="axis">axis</td><td class="desc">
2528 <p>A table of axis descriptors.</p>
2529 </td></tr>
2530 </table>
2531
2532 <hr>
2533
2534 <h2 id="ft_var_axis">FT_Var_Axis<a class="headerlink" href="#ft_var_axis" title="Permanent link">&para;</a></h2>
2535 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2536 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Var_Axis_
2537 {
2538 <a href="ft2-basic_types.html#ft_string">FT_String</a>* name;
2539
2540 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> minimum;
2541 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> def;
2542 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a> maximum;
2543
2544 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> tag;
2545 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> strid;
2546
2547 } <b>FT_Var_Axis</b>;
2548 </code></pre></div>
2549
2550 <p>A structure to model a given axis in design space for Adobe MM fonts, TrueType GX, and OpenType Font Variations.</p>
2551 <h4>fields</h4>
2552 <table class="fields">
2553 <tr><td class="val" id="name">name</td><td class="desc">
2554 <p>The axis's name. Not always meaningful for TrueType GX or OpenType Font Variations.</p>
2555 </td></tr>
2556 <tr><td class="val" id="minimum">minimum</td><td class="desc">
2557 <p>The axis's minimum design coordinate.</p>
2558 </td></tr>
2559 <tr><td class="val" id="def">def</td><td class="desc">
2560 <p>The axis's default design coordinate. FreeType computes meaningful default values for Adobe MM fonts.</p>
2561 </td></tr>
2562 <tr><td class="val" id="maximum">maximum</td><td class="desc">
2563 <p>The axis's maximum design coordinate.</p>
2564 </td></tr>
2565 <tr><td class="val" id="tag">tag</td><td class="desc">
2566 <p>The axis's tag (the equivalent to ‘name’ for TrueType GX and OpenType Font Variations). FreeType provides default values for Adobe MM fonts if possible.</p>
2567 </td></tr>
2568 <tr><td class="val" id="strid">strid</td><td class="desc">
2569 <p>The axis name entry in the font's ‘name’ table. This is another (and often better) version of the ‘name’ field for TrueType GX or OpenType Font Variations. Not meaningful for Adobe MM fonts.</p>
2570 </td></tr>
2571 </table>
2572
2573 <h4>note</h4>
2574
2575 <p>The fields <code>minimum</code>, <code>def</code>, and <code>maximum</code> are 16.16 fractional values for TrueType GX and OpenType Font Variations. For Adobe MM fonts, the values are whole numbers (i.e., the fractional part is zero).</p>
2576 <hr>
2577
2578 <h2 id="ft_var_named_style">FT_Var_Named_Style<a class="headerlink" href="#ft_var_named_style" title="Permanent link">&para;</a></h2>
2579 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2580 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Var_Named_Style_
2581 {
2582 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords;
2583 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> strid;
2584 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> psid; /* since 2.7.1 */
2585
2586 } <b>FT_Var_Named_Style</b>;
2587 </code></pre></div>
2588
2589 <p>A structure to model a named instance in a TrueType GX or OpenType Font Variations.</p>
2590 <p>This structure can't be used for Adobe MM fonts.</p>
2591 <h4>fields</h4>
2592 <table class="fields">
2593 <tr><td class="val" id="coords">coords</td><td class="desc">
2594 <p>The design coordinates for this instance. This is an array with one entry for each axis.</p>
2595 </td></tr>
2596 <tr><td class="val" id="strid">strid</td><td class="desc">
2597 <p>An index into the ‘name’ table identifying this instance.</p>
2598 </td></tr>
2599 <tr><td class="val" id="psid">psid</td><td class="desc">
2600 <p>An index into the ‘name’ table identifying a PostScript name for this instance. Value 0xFFFF indicates a missing entry.</p>
2601 </td></tr>
2602 </table>
2603
2604 <hr>
2605
2606 <h2 id="ft_mm_var">FT_MM_Var<a class="headerlink" href="#ft_mm_var" title="Permanent link">&para;</a></h2>
2607 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2608 <div class = "codehilite"><pre><code> <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_MM_Var_
2609 {
2610 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_axis;
2611 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_designs;
2612 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_namedstyles;
2613 <a href="ft2-multiple_masters.html#ft_var_axis">FT_Var_Axis</a>* axis;
2614 <a href="ft2-multiple_masters.html#ft_var_named_style">FT_Var_Named_Style</a>* namedstyle;
2615
2616 } <b>FT_MM_Var</b>;
2617 </code></pre></div>
2618
2619 <p>A structure to model the axes and space of Adobe MM fonts, TrueType GX, or OpenType Font Variations.</p>
2620 <p>Some fields are specific to one format and not to the others.</p>
2621 <h4>fields</h4>
2622 <table class="fields">
2623 <tr><td class="val" id="num_axis">num_axis</td><td class="desc">
2624 <p>The number of axes. The maximum value is 4 for Adobe MM fonts; no limit in TrueType GX or OpenType Font Variations.</p>
2625 </td></tr>
2626 <tr><td class="val" id="num_designs">num_designs</td><td class="desc">
2627 <p>The number of designs; should be normally <code>2^num_axis</code> for Adobe MM fonts. Not meaningful for TrueType GX or OpenType Font Variations (where every glyph could have a different number of designs).</p>
2628 </td></tr>
2629 <tr><td class="val" id="num_namedstyles">num_namedstyles</td><td class="desc">
2630 <p>The number of named instances. For Adobe MM fonts, this value is always zero.</p>
2631 </td></tr>
2632 <tr><td class="val" id="axis">axis</td><td class="desc">
2633 <p>An axis descriptor table. TrueType GX and OpenType Font Variations contain slightly more data than Adobe MM fonts. Memory management of this pointer is done internally by FreeType.</p>
2634 </td></tr>
2635 <tr><td class="val" id="namedstyle">namedstyle</td><td class="desc">
2636 <p>An array of named instances. Only meaningful for TrueType GX and OpenType Font Variations. Memory management of this pointer is done internally by FreeType.</p>
2637 </td></tr>
2638 </table>
2639
2640 <hr>
2641
2642 <h2 id="ft_get_multi_master">FT_Get_Multi_Master<a class="headerlink" href="#ft_get_multi_master" title="Permanent link">&para;</a></h2>
2643 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2644 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2645 <b>FT_Get_Multi_Master</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2646 <a href="ft2-multiple_masters.html#ft_multi_master">FT_Multi_Master</a> *amaster );
2647 </code></pre></div>
2648
2649 <p>Retrieve a variation descriptor of a given Adobe MM font.</p>
2650 <p>This function can't be used with TrueType GX or OpenType Font Variations.</p>
2651 <h4>input</h4>
2652 <table class="fields">
2653 <tr><td class="val" id="face">face</td><td class="desc">
2654 <p>A handle to the source face.</p>
2655 </td></tr>
2656 </table>
2657
2658 <h4>output</h4>
2659 <table class="fields">
2660 <tr><td class="val" id="amaster">amaster</td><td class="desc">
2661 <p>The Adobe MM font's variation descriptor.</p>
2662 </td></tr>
2663 </table>
2664
2665 <h4>return</h4>
2666
2667 <p>FreeType error code. 0&nbsp;means success.</p>
2668 <hr>
2669
2670 <h2 id="ft_get_mm_var">FT_Get_MM_Var<a class="headerlink" href="#ft_get_mm_var" title="Permanent link">&para;</a></h2>
2671 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2672 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2673 <b>FT_Get_MM_Var</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2674 <a href="ft2-multiple_masters.html#ft_mm_var">FT_MM_Var</a>* *amaster );
2675 </code></pre></div>
2676
2677 <p>Retrieve a variation descriptor for a given font.</p>
2678 <p>This function works with all supported variation formats.</p>
2679 <h4>input</h4>
2680 <table class="fields">
2681 <tr><td class="val" id="face">face</td><td class="desc">
2682 <p>A handle to the source face.</p>
2683 </td></tr>
2684 </table>
2685
2686 <h4>output</h4>
2687 <table class="fields">
2688 <tr><td class="val" id="amaster">amaster</td><td class="desc">
2689 <p>The variation descriptor. Allocates a data structure, which the user must deallocate with a call to <code><a href="ft2-multiple_masters.html#ft_done_mm_var">FT_Done_MM_Var</a></code> after use.</p>
2690 </td></tr>
2691 </table>
2692
2693 <h4>return</h4>
2694
2695 <p>FreeType error code. 0&nbsp;means success.</p>
2696 <hr>
2697
2698 <h2 id="ft_done_mm_var">FT_Done_MM_Var<a class="headerlink" href="#ft_done_mm_var" title="Permanent link">&para;</a></h2>
2699 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2700 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2701 <b>FT_Done_MM_Var</b>( <a href="ft2-library_setup.html#ft_library">FT_Library</a> library,
2702 <a href="ft2-multiple_masters.html#ft_mm_var">FT_MM_Var</a> *amaster );
2703 </code></pre></div>
2704
2705 <p>Free the memory allocated by <code><a href="ft2-multiple_masters.html#ft_get_mm_var">FT_Get_MM_Var</a></code>.</p>
2706 <h4>input</h4>
2707 <table class="fields">
2708 <tr><td class="val" id="library">library</td><td class="desc">
2709 <p>A handle of the face's parent library object that was used in the call to <code><a href="ft2-multiple_masters.html#ft_get_mm_var">FT_Get_MM_Var</a></code> to create <code>amaster</code>.</p>
2710 </td></tr>
2711 </table>
2712
2713 <h4>return</h4>
2714
2715 <p>FreeType error code. 0&nbsp;means success.</p>
2716 <hr>
2717
2718 <h2 id="ft_set_mm_design_coordinates">FT_Set_MM_Design_Coordinates<a class="headerlink" href="#ft_set_mm_design_coordinates" title="Permanent link">&para;</a></h2>
2719 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2720 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2721 <b>FT_Set_MM_Design_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2722 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2723 <a href="ft2-basic_types.html#ft_long">FT_Long</a>* coords );
2724 </code></pre></div>
2725
2726 <p>For Adobe MM fonts, choose an interpolated font design through design coordinates.</p>
2727 <p>This function can't be used with TrueType GX or OpenType Font Variations.</p>
2728 <h4>inout</h4>
2729 <table class="fields">
2730 <tr><td class="val" id="face">face</td><td class="desc">
2731 <p>A handle to the source face.</p>
2732 </td></tr>
2733 </table>
2734
2735 <h4>input</h4>
2736 <table class="fields">
2737 <tr><td class="val" id="num_coords">num_coords</td><td class="desc">
2738 <p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
2739 </td></tr>
2740 <tr><td class="val" id="coords">coords</td><td class="desc">
2741 <p>An array of design coordinates.</p>
2742 </td></tr>
2743 </table>
2744
2745 <h4>return</h4>
2746
2747 <p>FreeType error code. 0&nbsp;means success.</p>
2748 <h4>note</h4>
2749
2750 <p>[Since 2.8.1] To reset all axes to the default values, call the function with <code>num_coords</code> set to zero and <code>coords</code> set to <code>NULL</code>.</p>
2751 <p>[Since 2.9] If <code>num_coords</code> is larger than zero, this function sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true). If <code>num_coords</code> is zero, this bit flag gets unset.</p>
2752 <hr>
2753
2754 <h2 id="ft_set_var_design_coordinates">FT_Set_Var_Design_Coordinates<a class="headerlink" href="#ft_set_var_design_coordinates" title="Permanent link">&para;</a></h2>
2755 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2756 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2757 <b>FT_Set_Var_Design_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2758 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2759 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2760 </code></pre></div>
2761
2762 <p>Choose an interpolated font design through design coordinates.</p>
2763 <p>This function works with all supported variation formats.</p>
2764 <h4>inout</h4>
2765 <table class="fields">
2766 <tr><td class="val" id="face">face</td><td class="desc">
2767 <p>A handle to the source face.</p>
2768 </td></tr>
2769 </table>
2770
2771 <h4>input</h4>
2772 <table class="fields">
2773 <tr><td class="val" id="num_coords">num_coords</td><td class="desc">
2774 <p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
2775 </td></tr>
2776 <tr><td class="val" id="coords">coords</td><td class="desc">
2777 <p>An array of design coordinates.</p>
2778 </td></tr>
2779 </table>
2780
2781 <h4>return</h4>
2782
2783 <p>FreeType error code. 0&nbsp;means success.</p>
2784 <h4>note</h4>
2785
2786 <p>The design coordinates are 16.16 fractional values for TrueType GX and OpenType Font Variations. For Adobe MM fonts, the values are supposed to be whole numbers (i.e., the fractional part is zero).</p>
2787 <p>[Since 2.8.1] To reset all axes to the default values, call the function with <code>num_coords</code> set to zero and <code>coords</code> set to <code>NULL</code>. [Since 2.9] &lsquo;Default values&rsquo; means the currently selected named instance (or the base font if no named instance is selected).</p>
2788 <p>[Since 2.9] If <code>num_coords</code> is larger than zero, this function sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true). If <code>num_coords</code> is zero, this bit flag gets unset.</p>
2789 <p>[Since 2.14] This function also sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true) if any of the provided coordinates is different from the face's default value for the corresponding axis, that is, the set up face is not at its default position.</p>
2790 <hr>
2791
2792 <h2 id="ft_get_var_design_coordinates">FT_Get_Var_Design_Coordinates<a class="headerlink" href="#ft_get_var_design_coordinates" title="Permanent link">&para;</a></h2>
2793 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2794 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2795 <b>FT_Get_Var_Design_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2796 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2797 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2798 </code></pre></div>
2799
2800 <p>Get the design coordinates of the currently selected interpolated font.</p>
2801 <p>This function works with all supported variation formats.</p>
2802 <h4>input</h4>
2803 <table class="fields">
2804 <tr><td class="val" id="face">face</td><td class="desc">
2805 <p>A handle to the source face.</p>
2806 </td></tr>
2807 <tr><td class="val" id="num_coords">num_coords</td><td class="desc">
2808 <p>The number of design coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0.</p>
2809 </td></tr>
2810 </table>
2811
2812 <h4>output</h4>
2813 <table class="fields">
2814 <tr><td class="val" id="coords">coords</td><td class="desc">
2815 <p>The design coordinates array, which must be allocated by the user.</p>
2816 </td></tr>
2817 </table>
2818
2819 <h4>return</h4>
2820
2821 <p>FreeType error code. 0&nbsp;means success.</p>
2822 <h4>note</h4>
2823
2824 <p>The design coordinates are 16.16 fractional values for TrueType GX and OpenType Font Variations. For Adobe MM fonts, the values are whole numbers (i.e., the fractional part is zero).</p>
2825 <h4>since</h4>
2826
2827 <p>2.7.1</p>
2828 <hr>
2829
2830 <h2 id="ft_set_mm_blend_coordinates">FT_Set_MM_Blend_Coordinates<a class="headerlink" href="#ft_set_mm_blend_coordinates" title="Permanent link">&para;</a></h2>
2831 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2832 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2833 <b>FT_Set_MM_Blend_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2834 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2835 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2836 </code></pre></div>
2837
2838 <p>Choose an interpolated font design through normalized coordinates.</p>
2839 <p>This function works with all supported variation formats.</p>
2840 <h4>inout</h4>
2841 <table class="fields">
2842 <tr><td class="val" id="face">face</td><td class="desc">
2843 <p>A handle to the source face.</p>
2844 </td></tr>
2845 </table>
2846
2847 <h4>input</h4>
2848 <table class="fields">
2849 <tr><td class="val" id="num_coords">num_coords</td><td class="desc">
2850 <p>The number of available design coordinates. If it is larger than the number of axes, ignore the excess values. If it is smaller than the number of axes, use default values for the remaining axes.</p>
2851 </td></tr>
2852 <tr><td class="val" id="coords">coords</td><td class="desc">
2853 <p>The normalized coordinates array. Each element is a 16.16 fractional value and must be between 0 and 1.0 for Adobe MM fonts, and between -1.0 and 1.0 for TrueType GX and OpenType Font Variations.</p>
2854 </td></tr>
2855 </table>
2856
2857 <h4>return</h4>
2858
2859 <p>FreeType error code. 0&nbsp;means success.</p>
2860 <h4>note</h4>
2861
2862 <p>[Since 2.8.1] To reset all axes to the default values, call the function with <code>num_coords</code> set to zero and <code>coords</code> set to <code>NULL</code>. [Since 2.9] &lsquo;Default values&rsquo; means the currently selected named instance (or the base font if no named instance is selected).</p>
2863 <p>[Since 2.9] If <code>num_coords</code> is larger than zero, this function sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true). If <code>num_coords</code> is zero, this bit flag gets unset.</p>
2864 <p>[Since 2.14] This function also sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true) if any of the provided coordinates is different from the face's default value for the corresponding axis, that is, the set up face is not at its default position.</p>
2865 <hr>
2866
2867 <h2 id="ft_get_mm_blend_coordinates">FT_Get_MM_Blend_Coordinates<a class="headerlink" href="#ft_get_mm_blend_coordinates" title="Permanent link">&para;</a></h2>
2868 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2869 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2870 <b>FT_Get_MM_Blend_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2871 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2872 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2873 </code></pre></div>
2874
2875 <p>Get the normalized coordinates of the currently selected interpolated font.</p>
2876 <p>This function works with all supported variation formats.</p>
2877 <h4>input</h4>
2878 <table class="fields">
2879 <tr><td class="val" id="face">face</td><td class="desc">
2880 <p>A handle to the source face.</p>
2881 </td></tr>
2882 <tr><td class="val" id="num_coords">num_coords</td><td class="desc">
2883 <p>The number of normalized coordinates to retrieve. If it is larger than the number of axes, set the excess values to 0.5 for Adobe MM fonts, and to 0 for TrueType GX and OpenType Font Variations.</p>
2884 </td></tr>
2885 </table>
2886
2887 <h4>output</h4>
2888 <table class="fields">
2889 <tr><td class="val" id="coords">coords</td><td class="desc">
2890 <p>The normalized coordinates array (as 16.16 fractional values), which must be allocated by the user.</p>
2891 </td></tr>
2892 </table>
2893
2894 <h4>return</h4>
2895
2896 <p>FreeType error code. 0&nbsp;means success.</p>
2897 <h4>since</h4>
2898
2899 <p>2.7.1</p>
2900 <hr>
2901
2902 <h2 id="ft_set_var_blend_coordinates">FT_Set_Var_Blend_Coordinates<a class="headerlink" href="#ft_set_var_blend_coordinates" title="Permanent link">&para;</a></h2>
2903 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2904 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2905 <b>FT_Set_Var_Blend_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2906 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2907 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2908 </code></pre></div>
2909
2910 <p>This is another name of <code><a href="ft2-multiple_masters.html#ft_set_mm_blend_coordinates">FT_Set_MM_Blend_Coordinates</a></code>.</p>
2911 <hr>
2912
2913 <h2 id="ft_get_var_blend_coordinates">FT_Get_Var_Blend_Coordinates<a class="headerlink" href="#ft_get_var_blend_coordinates" title="Permanent link">&para;</a></h2>
2914 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2915 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2916 <b>FT_Get_Var_Blend_Coordinates</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2917 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> num_coords,
2918 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* coords );
2919 </code></pre></div>
2920
2921 <p>This is another name of <code><a href="ft2-multiple_masters.html#ft_get_mm_blend_coordinates">FT_Get_MM_Blend_Coordinates</a></code>.</p>
2922 <h4>since</h4>
2923
2924 <p>2.7.1</p>
2925 <hr>
2926
2927 <h2 id="ft_set_mm_weightvector">FT_Set_MM_WeightVector<a class="headerlink" href="#ft_set_mm_weightvector" title="Permanent link">&para;</a></h2>
2928 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2929 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2930 <b>FT_Set_MM_WeightVector</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2931 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> len,
2932 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* weightvector );
2933 </code></pre></div>
2934
2935 <p>For Adobe MM fonts, choose an interpolated font design by directly setting the weight vector.</p>
2936 <p>This function can't be used with TrueType GX or OpenType Font Variations.</p>
2937 <h4>inout</h4>
2938 <table class="fields">
2939 <tr><td class="val" id="face">face</td><td class="desc">
2940 <p>A handle to the source face.</p>
2941 </td></tr>
2942 </table>
2943
2944 <h4>input</h4>
2945 <table class="fields">
2946 <tr><td class="val" id="len">len</td><td class="desc">
2947 <p>The length of the weight vector array. If it is larger than the number of designs, the extra values are ignored. If it is less than the number of designs, the remaining values are set to zero.</p>
2948 </td></tr>
2949 <tr><td class="val" id="weightvector">weightvector</td><td class="desc">
2950 <p>An array representing the weight vector.</p>
2951 </td></tr>
2952 </table>
2953
2954 <h4>return</h4>
2955
2956 <p>FreeType error code. 0&nbsp;means success.</p>
2957 <h4>note</h4>
2958
2959 <p>Adobe MM fonts limit the number of designs, and thus the length of the weight vector, to 16&nbsp;elements.</p>
2960 <p>If <code>len</code> is larger than zero, this function sets the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit in <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code>'s <code>face_flags</code> field (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns true). If <code>len</code> is zero, this bit flag is unset and the weight vector array is reset to the default values.</p>
2961 <p>The Adobe documentation also states that the values in the <code>WeightVector</code> array must total 1.0 &plusmn;&nbsp;0.001. In practice this does not seem to be enforced, so is not enforced here, either.</p>
2962 <h4>since</h4>
2963
2964 <p>2.10</p>
2965 <hr>
2966
2967 <h2 id="ft_get_mm_weightvector">FT_Get_MM_WeightVector<a class="headerlink" href="#ft_get_mm_weightvector" title="Permanent link">&para;</a></h2>
2968 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
2969 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
2970 <b>FT_Get_MM_WeightVector</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
2971 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a>* len,
2972 <a href="ft2-basic_types.html#ft_fixed">FT_Fixed</a>* weightvector );
2973 </code></pre></div>
2974
2975 <p>For Adobe MM fonts, retrieve the current weight vector of the font.</p>
2976 <p>This function can't be used with TrueType GX or OpenType Font Variations.</p>
2977 <h4>inout</h4>
2978 <table class="fields">
2979 <tr><td class="val" id="face">face</td><td class="desc">
2980 <p>A handle to the source face.</p>
2981 </td></tr>
2982 <tr><td class="val" id="len">len</td><td class="desc">
2983 <p>A pointer to the size of the array to be filled. If the size of the array is less than the number of designs, <code>FT_Err_Invalid_Argument</code> is returned, and <code>len</code> is set to the required size (the number of designs). If the size of the array is greater than the number of designs, the remaining entries are set to 0. On successful completion, <code>len</code> is set to the number of designs (i.e., the number of values written to the array).</p>
2984 </td></tr>
2985 </table>
2986
2987 <h4>output</h4>
2988 <table class="fields">
2989 <tr><td class="val" id="weightvector">weightvector</td><td class="desc">
2990 <p>An array to be filled; it must be allocated by the user.</p>
2991 </td></tr>
2992 </table>
2993
2994 <h4>return</h4>
2995
2996 <p>FreeType error code. 0&nbsp;means success.</p>
2997 <h4>note</h4>
2998
2999 <p>Adobe MM fonts limit the number of designs, and thus the length of the weight vector, to&nbsp;16 elements.</p>
3000 <h4>since</h4>
3001
3002 <p>2.10</p>
3003 <hr>
3004
3005 <h2 id="ft_var_axis_flag_xxx">FT_VAR_AXIS_FLAG_XXX<a class="headerlink" href="#ft_var_axis_flag_xxx" title="Permanent link">&para;</a></h2>
3006 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
3007 <div class = "codehilite"><pre><code>#<span class="keyword">define</span> <a href="ft2-multiple_masters.html#ft_var_axis_flag_hidden">FT_VAR_AXIS_FLAG_HIDDEN</a> 1
3008 </code></pre></div>
3009
3010 <p>A list of bit flags used in the return value of <code><a href="ft2-multiple_masters.html#ft_get_var_axis_flags">FT_Get_Var_Axis_Flags</a></code>.</p>
3011 <h4>values</h4>
3012 <table class="fields">
3013 <tr><td class="val" id="ft_var_axis_flag_hidden">FT_VAR_AXIS_FLAG_HIDDEN</td><td class="desc">
3014 <p>The variation axis should not be exposed to user interfaces.</p>
3015 </td></tr>
3016 </table>
3017
3018 <h4>since</h4>
3019
3020 <p>2.8.1</p>
3021 <hr>
3022
3023 <h2 id="ft_get_var_axis_flags">FT_Get_Var_Axis_Flags<a class="headerlink" href="#ft_get_var_axis_flags" title="Permanent link">&para;</a></h2>
3024 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
3025 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
3026 <b>FT_Get_Var_Axis_Flags</b>( <a href="ft2-multiple_masters.html#ft_mm_var">FT_MM_Var</a>* master,
3027 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> axis_index,
3028 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a>* flags );
3029 </code></pre></div>
3030
3031 <p>Get the &lsquo;flags&rsquo; field of an OpenType Variation Axis Record.</p>
3032 <p>Not meaningful for Adobe MM fonts (<code>*flags</code> is always zero).</p>
3033 <h4>input</h4>
3034 <table class="fields">
3035 <tr><td class="val" id="master">master</td><td class="desc">
3036 <p>The variation descriptor.</p>
3037 </td></tr>
3038 <tr><td class="val" id="axis_index">axis_index</td><td class="desc">
3039 <p>The index of the requested variation axis.</p>
3040 </td></tr>
3041 </table>
3042
3043 <h4>output</h4>
3044 <table class="fields">
3045 <tr><td class="val" id="flags">flags</td><td class="desc">
3046 <p>The ‘flags’ field. See <code><a href="ft2-multiple_masters.html#ft_var_axis_flag_xxx">FT_VAR_AXIS_FLAG_XXX</a></code> for possible values.</p>
3047 </td></tr>
3048 </table>
3049
3050 <h4>return</h4>
3051
3052 <p>FreeType error code. 0&nbsp;means success.</p>
3053 <h4>since</h4>
3054
3055 <p>2.8.1</p>
3056 <hr>
3057
3058 <h2 id="ft_set_named_instance">FT_Set_Named_Instance<a class="headerlink" href="#ft_set_named_instance" title="Permanent link">&para;</a></h2>
3059 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
3060 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
3061 <b>FT_Set_Named_Instance</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
3062 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> instance_index );
3063 </code></pre></div>
3064
3065 <p>Set or change the current named instance.</p>
3066 <h4>input</h4>
3067 <table class="fields">
3068 <tr><td class="val" id="face">face</td><td class="desc">
3069 <p>A handle to the source face.</p>
3070 </td></tr>
3071 <tr><td class="val" id="instance_index">instance_index</td><td class="desc">
3072 <p>The index of the requested instance, starting with value 1. If set to value 0, FreeType switches to font access without a named instance.</p>
3073 </td></tr>
3074 </table>
3075
3076 <h4>return</h4>
3077
3078 <p>FreeType error code. 0&nbsp;means success.</p>
3079 <h4>note</h4>
3080
3081 <p>The function uses the value of <code>instance_index</code> to set bits 16-30 of the face's <code>face_index</code> field. It also resets any variation applied to the font, and the <code><a href="ft2-face_creation.html#ft_face_flag_xxx">FT_FACE_FLAG_VARIATION</a></code> bit of the face's <code>face_flags</code> field gets reset to zero (i.e., <code><a href="ft2-font_testing_macros.html#ft_is_variation">FT_IS_VARIATION</a></code> returns false).</p>
3082 <p>For Adobe MM fonts, this function resets the current face to the default instance.</p>
3083 <h4>since</h4>
3084
3085 <p>2.9</p>
3086 <hr>
3087
3088 <h2 id="ft_get_default_named_instance">FT_Get_Default_Named_Instance<a class="headerlink" href="#ft_get_default_named_instance" title="Permanent link">&para;</a></h2>
3089 <p>Defined in FT_MULTIPLE_MASTERS_H (freetype/ftmm.h).</p>
3090 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_error">FT_Error</a> )
3091 <b>FT_Get_Default_Named_Instance</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
3092 <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> *instance_index );
3093 </code></pre></div>
3094
3095 <p>Retrieve the index of the default named instance, to be used with <code><a href="ft2-multiple_masters.html#ft_set_named_instance">FT_Set_Named_Instance</a></code>.</p>
3096 <p>FreeType synthesizes a named instance for the default instance if the font does not contain such an entry.</p>
3097 <h4>input</h4>
3098 <table class="fields">
3099 <tr><td class="val" id="face">face</td><td class="desc">
3100 <p>A handle to the source face.</p>
3101 </td></tr>
3102 </table>
3103
3104 <h4>output</h4>
3105 <table class="fields">
3106 <tr><td class="val" id="instance_index">instance_index</td><td class="desc">
3107 <p>The index of the default named instance.</p>
3108 </td></tr>
3109 </table>
3110
3111 <h4>return</h4>
3112
3113 <p>FreeType error code. 0&nbsp;means success.</p>
3114 <h4>note</h4>
3115
3116 <p>For Adobe MM fonts, this function always returns zero for <code>instance_index</code>.</p>
3117 <h4>since</h4>
3118
3119 <p>2.13.1</p>
3120 <hr>
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134 </article>
3135 </div>
3136
3137
3138 <script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
3139 </div>
3140
3141 </main>
3142
3143 <footer class="md-footer">
3144
3145 <div class="md-footer-meta md-typeset">
3146 <div class="md-footer-meta__inner md-grid">
3147 <div class="md-copyright">
3148
3149 <div class="md-copyright__highlight">
3150 Copyright 2026 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
3151 </div>
3152
3153
3154 Made with
3155 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3156 Material for MkDocs
3157 </a>
3158
3159 </div>
3160
3161 </div>
3162 </div>
3163 </footer>
3164
3165 </div>
3166 <div class="md-dialog" data-md-component="dialog">
3167 <div class="md-dialog__inner md-typeset"></div>
3168 </div>
3169
3170
3171 <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>
3172
3173
3174 <script src="assets/javascripts/bundle.c8b220af.min.js"></script>
3175
3176 <script src="javascripts/extra.js"></script>
3177
3178
3179 </body>
3180 </html>