Imported Upstream version 2.10.1
[platform/upstream/freetype2.git] / docs / reference / site / ft2-glyph_variants.html
1
2
3
4
5 <!doctype html>
6 <html lang="en" class="no-js">
7   <head>
8     
9       <meta charset="utf-8">
10       <meta name="viewport" content="width=device-width,initial-scale=1">
11       <meta http-equiv="x-ua-compatible" content="ie=edge">
12       
13         <meta name="description" content="API Reference Documentation for FreeType-2.10.1">
14       
15       
16       
17         <meta name="author" content="FreeType Contributors">
18       
19       
20         <meta name="lang:clipboard.copy" content="Copy to clipboard">
21       
22         <meta name="lang:clipboard.copied" content="Copied to clipboard">
23       
24         <meta name="lang:search.language" content="en">
25       
26         <meta name="lang:search.pipeline.stopwords" content="True">
27       
28         <meta name="lang:search.pipeline.trimmer" content="True">
29       
30         <meta name="lang:search.result.none" content="No matching documents">
31       
32         <meta name="lang:search.result.one" content="1 matching document">
33       
34         <meta name="lang:search.result.other" content="# matching documents">
35       
36         <meta name="lang:search.tokenizer" content="[\s\-]+">
37       
38       <link rel="shortcut icon" href="images/favico.ico">
39       <meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.0.2">
40     
41     
42       
43         <title>Unicode Variation Sequences - FreeType-2.10.1 API Reference</title>
44       
45     
46     
47       <link rel="stylesheet" href="assets/stylesheets/application.982221ab.css">
48       
49         <link rel="stylesheet" href="assets/stylesheets/application-palette.224b79ff.css">
50       
51       
52         
53         
54         <meta name="theme-color" content="#4caf50">
55       
56     
57     
58       <script src="assets/javascripts/modernizr.1f0bcf2b.js"></script>
59     
60     
61       
62         <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
63         <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700|Roboto+Mono">
64         <style>body,input{font-family:"Noto Serif","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono","Courier New",Courier,monospace}</style>
65       
66     
67     <link rel="stylesheet" href="assets/fonts/material-icons.css">
68     
69     
70       <link rel="stylesheet" href="stylesheets/extra.css">
71     
72     
73       
74     
75     
76   </head>
77   
78     
79     
80     <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
81   
82     <svg class="md-svg">
83       <defs>
84         
85         
86       </defs>
87     </svg>
88     <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
89     <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
90     <label class="md-overlay" data-md-component="overlay" for="__drawer"></label>
91     
92       <a href="#unicode-variation-sequences" tabindex="1" class="md-skip">
93         Skip to content
94       </a>
95     
96     
97       <header class="md-header" data-md-component="header">
98   <nav class="md-header-nav md-grid">
99     <div class="md-flex">
100       <div class="md-flex__cell md-flex__cell--shrink">
101         <a href="index.html" title="FreeType-2.10.1 API Reference" class="md-header-nav__button md-logo">
102           
103             <img src="images/favico.ico" width="24" height="24">
104           
105         </a>
106       </div>
107       <div class="md-flex__cell md-flex__cell--shrink">
108         <label class="md-icon md-icon--menu md-header-nav__button" for="__drawer"></label>
109       </div>
110       <div class="md-flex__cell md-flex__cell--stretch">
111         <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
112           
113             <span class="md-header-nav__topic">
114               FreeType-2.10.1 API Reference
115             </span>
116             <span class="md-header-nav__topic">
117               Unicode Variation Sequences
118             </span>
119           
120         </div>
121       </div>
122       <div class="md-flex__cell md-flex__cell--shrink">
123         
124           <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
125           
126 <div class="md-search" data-md-component="search" role="dialog">
127   <label class="md-search__overlay" for="__search"></label>
128   <div class="md-search__inner" role="search">
129     <form class="md-search__form" name="search">
130       <input type="text" class="md-search__input" name="query" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="query" data-md-state="active">
131       <label class="md-icon md-search__icon" for="__search"></label>
132       <button type="reset" class="md-icon md-search__icon" data-md-component="reset" tabindex="-1">
133         &#xE5CD;
134       </button>
135     </form>
136     <div class="md-search__output">
137       <div class="md-search__scrollwrap" data-md-scrollfix>
138         <div class="md-search-result" data-md-component="result">
139           <div class="md-search-result__meta">
140             Type to start searching
141           </div>
142           <ol class="md-search-result__list"></ol>
143         </div>
144       </div>
145     </div>
146   </div>
147 </div>
148         
149       </div>
150       
151     </div>
152   </nav>
153 </header>
154     
155     <div class="md-container">
156       
157         
158       
159       
160       <main class="md-main">
161         <div class="md-main__inner md-grid" data-md-component="container">
162           
163             
164               <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
165                 <div class="md-sidebar__scrollwrap">
166                   <div class="md-sidebar__inner">
167                     <nav class="md-nav md-nav--primary" data-md-level="0">
168   <label class="md-nav__title md-nav__title--site" for="__drawer">
169     <a href="index.html" title="FreeType-2.10.1 API Reference" class="md-nav__button md-logo">
170       
171         <img src="images/favico.ico" width="48" height="48">
172       
173     </a>
174     FreeType-2.10.1 API Reference
175   </label>
176   
177   <ul class="md-nav__list" data-md-scrollfix>
178     
179       
180       
181       
182
183
184   <li class="md-nav__item">
185     <a href="index.html" title="TOC" class="md-nav__link">
186       TOC
187     </a>
188   </li>
189
190     
191       
192       
193       
194
195
196   <li class="md-nav__item">
197     <a href="ft2-index.html" title="Index" class="md-nav__link">
198       Index
199     </a>
200   </li>
201
202     
203       
204       
205       
206
207
208   <li class="md-nav__item md-nav__item--nested">
209     
210       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
211     
212     <label class="md-nav__link" for="nav-3">
213       General Remarks
214     </label>
215     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
216       <label class="md-nav__title" for="nav-3">
217         General Remarks
218       </label>
219       <ul class="md-nav__list" data-md-scrollfix>
220         
221         
222           
223           
224           
225
226
227   <li class="md-nav__item">
228     <a href="ft2-header_inclusion.html" title="FreeType's header inclusion scheme" class="md-nav__link">
229       FreeType's header inclusion scheme
230     </a>
231   </li>
232
233         
234           
235           
236           
237
238
239   <li class="md-nav__item">
240     <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
241       User allocation
242     </a>
243   </li>
244
245         
246       </ul>
247     </nav>
248   </li>
249
250     
251       
252       
253       
254
255   
256
257
258   <li class="md-nav__item md-nav__item--active md-nav__item--nested">
259     
260       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
261     
262     <label class="md-nav__link" for="nav-4">
263       Core API
264     </label>
265     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
266       <label class="md-nav__title" for="nav-4">
267         Core API
268       </label>
269       <ul class="md-nav__list" data-md-scrollfix>
270         
271         
272           
273           
274           
275
276
277   <li class="md-nav__item">
278     <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
279       FreeType Version
280     </a>
281   </li>
282
283         
284           
285           
286           
287
288
289   <li class="md-nav__item">
290     <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
291       Basic Data Types
292     </a>
293   </li>
294
295         
296           
297           
298           
299
300
301   <li class="md-nav__item">
302     <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
303       Base Interface
304     </a>
305   </li>
306
307         
308           
309           
310           
311
312   
313
314
315   <li class="md-nav__item md-nav__item--active">
316     
317     <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
318     
319       
320     
321     
322       <label class="md-nav__link md-nav__link--active" for="__toc">
323         Unicode Variation Sequences
324       </label>
325     
326     <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link md-nav__link--active">
327       Unicode Variation Sequences
328     </a>
329     
330       
331 <nav class="md-nav md-nav--secondary">
332   
333   
334     
335   
336   
337     <label class="md-nav__title" for="__toc">Table of contents</label>
338     <ul class="md-nav__list" data-md-scrollfix>
339       
340         <li class="md-nav__item">
341   <a href="#synopsis" title="Synopsis" class="md-nav__link">
342     Synopsis
343   </a>
344   
345 </li>
346       
347         <li class="md-nav__item">
348   <a href="#ft_face_getcharvariantindex" title="FT_Face_GetCharVariantIndex" class="md-nav__link">
349     FT_Face_GetCharVariantIndex
350   </a>
351   
352 </li>
353       
354         <li class="md-nav__item">
355   <a href="#ft_face_getcharvariantisdefault" title="FT_Face_GetCharVariantIsDefault" class="md-nav__link">
356     FT_Face_GetCharVariantIsDefault
357   </a>
358   
359 </li>
360       
361         <li class="md-nav__item">
362   <a href="#ft_face_getvariantselectors" title="FT_Face_GetVariantSelectors" class="md-nav__link">
363     FT_Face_GetVariantSelectors
364   </a>
365   
366 </li>
367       
368         <li class="md-nav__item">
369   <a href="#ft_face_getvariantsofchar" title="FT_Face_GetVariantsOfChar" class="md-nav__link">
370     FT_Face_GetVariantsOfChar
371   </a>
372   
373 </li>
374       
375         <li class="md-nav__item">
376   <a href="#ft_face_getcharsofvariant" title="FT_Face_GetCharsOfVariant" class="md-nav__link">
377     FT_Face_GetCharsOfVariant
378   </a>
379   
380 </li>
381       
382       
383       
384       
385       
386     </ul>
387   
388 </nav>
389     
390   </li>
391
392         
393           
394           
395           
396
397
398   <li class="md-nav__item">
399     <a href="ft2-color_management.html" title="Glyph Color Management" class="md-nav__link">
400       Glyph Color Management
401     </a>
402   </li>
403
404         
405           
406           
407           
408
409
410   <li class="md-nav__item">
411     <a href="ft2-layer_management.html" title="Glyph Layer Management" class="md-nav__link">
412       Glyph Layer Management
413     </a>
414   </li>
415
416         
417           
418           
419           
420
421
422   <li class="md-nav__item">
423     <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
424       Glyph Management
425     </a>
426   </li>
427
428         
429           
430           
431           
432
433
434   <li class="md-nav__item">
435     <a href="ft2-mac_specific.html" title="Mac Specific Interface" class="md-nav__link">
436       Mac Specific Interface
437     </a>
438   </li>
439
440         
441           
442           
443           
444
445
446   <li class="md-nav__item">
447     <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
448       Size Management
449     </a>
450   </li>
451
452         
453           
454           
455           
456
457
458   <li class="md-nav__item">
459     <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
460       Header File Macros
461     </a>
462   </li>
463
464         
465       </ul>
466     </nav>
467   </li>
468
469     
470       
471       
472       
473
474
475   <li class="md-nav__item md-nav__item--nested">
476     
477       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
478     
479     <label class="md-nav__link" for="nav-5">
480       Format-Specific API
481     </label>
482     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
483       <label class="md-nav__title" for="nav-5">
484         Format-Specific API
485       </label>
486       <ul class="md-nav__list" data-md-scrollfix>
487         
488         
489           
490           
491           
492
493
494   <li class="md-nav__item">
495     <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
496       Multiple Masters
497     </a>
498   </li>
499
500         
501           
502           
503           
504
505
506   <li class="md-nav__item">
507     <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
508       TrueType Tables
509     </a>
510   </li>
511
512         
513           
514           
515           
516
517
518   <li class="md-nav__item">
519     <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
520       Type 1 Tables
521     </a>
522   </li>
523
524         
525           
526           
527           
528
529
530   <li class="md-nav__item">
531     <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
532       SFNT Names
533     </a>
534   </li>
535
536         
537           
538           
539           
540
541
542   <li class="md-nav__item">
543     <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
544       BDF and PCF Files
545     </a>
546   </li>
547
548         
549           
550           
551           
552
553
554   <li class="md-nav__item">
555     <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
556       CID Fonts
557     </a>
558   </li>
559
560         
561           
562           
563           
564
565
566   <li class="md-nav__item">
567     <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
568       PFR Fonts
569     </a>
570   </li>
571
572         
573           
574           
575           
576
577
578   <li class="md-nav__item">
579     <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
580       Window FNT Files
581     </a>
582   </li>
583
584         
585           
586           
587           
588
589
590   <li class="md-nav__item">
591     <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
592       Font Formats
593     </a>
594   </li>
595
596         
597           
598           
599           
600
601
602   <li class="md-nav__item">
603     <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
604       Gasp Table
605     </a>
606   </li>
607
608         
609       </ul>
610     </nav>
611   </li>
612
613     
614       
615       
616       
617
618
619   <li class="md-nav__item md-nav__item--nested">
620     
621       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
622     
623     <label class="md-nav__link" for="nav-6">
624       Controlling FreeType Modules
625     </label>
626     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
627       <label class="md-nav__title" for="nav-6">
628         Controlling FreeType Modules
629       </label>
630       <ul class="md-nav__list" data-md-scrollfix>
631         
632         
633           
634           
635           
636
637
638   <li class="md-nav__item">
639     <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
640       The auto-hinter
641     </a>
642   </li>
643
644         
645           
646           
647           
648
649
650   <li class="md-nav__item">
651     <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
652       The CFF driver
653     </a>
654   </li>
655
656         
657           
658           
659           
660
661
662   <li class="md-nav__item">
663     <a href="ft2-t1_cid_driver.html" title="The Type 1 and CID drivers" class="md-nav__link">
664       The Type 1 and CID drivers
665     </a>
666   </li>
667
668         
669           
670           
671           
672
673
674   <li class="md-nav__item">
675     <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
676       The TrueType driver
677     </a>
678   </li>
679
680         
681           
682           
683           
684
685
686   <li class="md-nav__item">
687     <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
688       The PCF driver
689     </a>
690   </li>
691
692         
693           
694           
695           
696
697
698   <li class="md-nav__item">
699     <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
700       Driver properties
701     </a>
702   </li>
703
704         
705           
706           
707           
708
709
710   <li class="md-nav__item">
711     <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
712       Parameter Tags
713     </a>
714   </li>
715
716         
717           
718           
719           
720
721
722   <li class="md-nav__item">
723     <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
724       Subpixel Rendering
725     </a>
726   </li>
727
728         
729       </ul>
730     </nav>
731   </li>
732
733     
734       
735       
736       
737
738
739   <li class="md-nav__item md-nav__item--nested">
740     
741       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
742     
743     <label class="md-nav__link" for="nav-7">
744       Cache Sub-System
745     </label>
746     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
747       <label class="md-nav__title" for="nav-7">
748         Cache Sub-System
749       </label>
750       <ul class="md-nav__list" data-md-scrollfix>
751         
752         
753           
754           
755           
756
757
758   <li class="md-nav__item">
759     <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
760       Cache Sub-System
761     </a>
762   </li>
763
764         
765       </ul>
766     </nav>
767   </li>
768
769     
770       
771       
772       
773
774
775   <li class="md-nav__item md-nav__item--nested">
776     
777       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
778     
779     <label class="md-nav__link" for="nav-8">
780       Support API
781     </label>
782     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
783       <label class="md-nav__title" for="nav-8">
784         Support API
785       </label>
786       <ul class="md-nav__list" data-md-scrollfix>
787         
788         
789           
790           
791           
792
793
794   <li class="md-nav__item">
795     <a href="ft2-computations.html" title="Computations" class="md-nav__link">
796       Computations
797     </a>
798   </li>
799
800         
801           
802           
803           
804
805
806   <li class="md-nav__item">
807     <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
808       List Processing
809     </a>
810   </li>
811
812         
813           
814           
815           
816
817
818   <li class="md-nav__item">
819     <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
820       Outline Processing
821     </a>
822   </li>
823
824         
825           
826           
827           
828
829
830   <li class="md-nav__item">
831     <a href="ft2-quick_advance.html" title="Quick retrieval of advance values" class="md-nav__link">
832       Quick retrieval of advance values
833     </a>
834   </li>
835
836         
837           
838           
839           
840
841
842   <li class="md-nav__item">
843     <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
844       Bitmap Handling
845     </a>
846   </li>
847
848         
849           
850           
851           
852
853
854   <li class="md-nav__item">
855     <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
856       Scanline Converter
857     </a>
858   </li>
859
860         
861           
862           
863           
864
865
866   <li class="md-nav__item">
867     <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
868       Glyph Stroker
869     </a>
870   </li>
871
872         
873           
874           
875           
876
877
878   <li class="md-nav__item">
879     <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
880       System Interface
881     </a>
882   </li>
883
884         
885           
886           
887           
888
889
890   <li class="md-nav__item">
891     <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
892       Module Management
893     </a>
894   </li>
895
896         
897           
898           
899           
900
901
902   <li class="md-nav__item">
903     <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
904       GZIP Streams
905     </a>
906   </li>
907
908         
909           
910           
911           
912
913
914   <li class="md-nav__item">
915     <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
916       LZW Streams
917     </a>
918   </li>
919
920         
921           
922           
923           
924
925
926   <li class="md-nav__item">
927     <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
928       BZIP2 Streams
929     </a>
930   </li>
931
932         
933       </ul>
934     </nav>
935   </li>
936
937     
938       
939       
940       
941
942
943   <li class="md-nav__item md-nav__item--nested">
944     
945       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
946     
947     <label class="md-nav__link" for="nav-9">
948       Error Codes
949     </label>
950     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
951       <label class="md-nav__title" for="nav-9">
952         Error Codes
953       </label>
954       <ul class="md-nav__list" data-md-scrollfix>
955         
956         
957           
958           
959           
960
961
962   <li class="md-nav__item">
963     <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
964       Error Enumerations
965     </a>
966   </li>
967
968         
969           
970           
971           
972
973
974   <li class="md-nav__item">
975     <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
976       Error Code Values
977     </a>
978   </li>
979
980         
981       </ul>
982     </nav>
983   </li>
984
985     
986       
987       
988       
989
990
991   <li class="md-nav__item md-nav__item--nested">
992     
993       <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
994     
995     <label class="md-nav__link" for="nav-10">
996       Miscellaneous
997     </label>
998     <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
999       <label class="md-nav__title" for="nav-10">
1000         Miscellaneous
1001       </label>
1002       <ul class="md-nav__list" data-md-scrollfix>
1003         
1004         
1005           
1006           
1007           
1008
1009
1010   <li class="md-nav__item">
1011     <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
1012       OpenType Validation
1013     </a>
1014   </li>
1015
1016         
1017           
1018           
1019           
1020
1021
1022   <li class="md-nav__item">
1023     <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
1024       Incremental Loading
1025     </a>
1026   </li>
1027
1028         
1029           
1030           
1031           
1032
1033
1034   <li class="md-nav__item">
1035     <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
1036       The TrueType Engine
1037     </a>
1038   </li>
1039
1040         
1041           
1042           
1043           
1044
1045
1046   <li class="md-nav__item">
1047     <a href="ft2-gx_validation.html" title="TrueTypeGX/AAT Validation" class="md-nav__link">
1048       TrueTypeGX/AAT Validation
1049     </a>
1050   </li>
1051
1052         
1053       </ul>
1054     </nav>
1055   </li>
1056
1057     
1058   </ul>
1059 </nav>
1060                   </div>
1061                 </div>
1062               </div>
1063             
1064             
1065               <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
1066                 <div class="md-sidebar__scrollwrap">
1067                   <div class="md-sidebar__inner">
1068                     
1069 <nav class="md-nav md-nav--secondary">
1070   
1071   
1072     
1073   
1074   
1075     <label class="md-nav__title" for="__toc">Table of contents</label>
1076     <ul class="md-nav__list" data-md-scrollfix>
1077       
1078         <li class="md-nav__item">
1079   <a href="#synopsis" title="Synopsis" class="md-nav__link">
1080     Synopsis
1081   </a>
1082   
1083 </li>
1084       
1085         <li class="md-nav__item">
1086   <a href="#ft_face_getcharvariantindex" title="FT_Face_GetCharVariantIndex" class="md-nav__link">
1087     FT_Face_GetCharVariantIndex
1088   </a>
1089   
1090 </li>
1091       
1092         <li class="md-nav__item">
1093   <a href="#ft_face_getcharvariantisdefault" title="FT_Face_GetCharVariantIsDefault" class="md-nav__link">
1094     FT_Face_GetCharVariantIsDefault
1095   </a>
1096   
1097 </li>
1098       
1099         <li class="md-nav__item">
1100   <a href="#ft_face_getvariantselectors" title="FT_Face_GetVariantSelectors" class="md-nav__link">
1101     FT_Face_GetVariantSelectors
1102   </a>
1103   
1104 </li>
1105       
1106         <li class="md-nav__item">
1107   <a href="#ft_face_getvariantsofchar" title="FT_Face_GetVariantsOfChar" class="md-nav__link">
1108     FT_Face_GetVariantsOfChar
1109   </a>
1110   
1111 </li>
1112       
1113         <li class="md-nav__item">
1114   <a href="#ft_face_getcharsofvariant" title="FT_Face_GetCharsOfVariant" class="md-nav__link">
1115     FT_Face_GetCharsOfVariant
1116   </a>
1117   
1118 </li>
1119       
1120       
1121       
1122       
1123       
1124     </ul>
1125   
1126 </nav>
1127                   </div>
1128                 </div>
1129               </div>
1130             
1131           
1132           <div class="md-content">
1133             <article class="md-content__inner md-typeset">
1134               
1135                 
1136                 
1137                 <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; Unicode Variation Sequences</p>
1138 <hr />
1139 <h1 id="unicode-variation-sequences">Unicode Variation Sequences<a class="headerlink" href="#unicode-variation-sequences" title="Permanent link">&para;</a></h1>
1140 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">&para;</a></h2>
1141 <p>Many characters, especially for CJK scripts, have variant forms. They are a sort of grey area somewhere between being totally irrelevant and semantically distinct; for this reason, the Unicode consortium decided to introduce Variation Sequences (VS), consisting of a Unicode base character and a variation selector instead of further extending the already huge number of characters.</p>
1142 <p>Unicode maintains two different sets, namely &lsquo;Standardized Variation Sequences&rsquo; and registered &lsquo;Ideographic Variation Sequences&rsquo; (IVS), collected in the &lsquo;Ideographic Variation Database&rsquo; (IVD).</p>
1143 <p><a href="https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt">https://unicode.org/Public/UCD/latest/ucd/StandardizedVariants.txt</a> <a href="https://unicode.org/reports/tr37/">https://unicode.org/reports/tr37/</a> <a href="https://unicode.org/ivd/">https://unicode.org/ivd/</a></p>
1144 <p>To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS.</p>
1145 <p>Three Mongolian Variation Selectors have the values U+180B-U+180D; 256 generic Variation Selectors are encoded in the ranges U+FE00-U+FE0F and U+E0100-U+E01EF. IVS currently use Variation Selectors from the range U+E0100-U+E01EF only.</p>
1146 <p>A VS consists of the base character value followed by a single Variation Selector. For example, to get the first variation of U+9089, you have to write the character sequence <code>U+9089 U+E0100</code>.</p>
1147 <p>Adobe and MS decided to support both standardized and ideographic VS with a new cmap subtable (format&nbsp;14). It is an odd subtable because it is not a mapping of input code points to glyphs, but contains lists of all variations supported by the font.</p>
1148 <p>A variation may be either &lsquo;default&rsquo; or &lsquo;non-default&rsquo; for a given font. A default variation is the one you will get for that code point if you look it up in the standard Unicode cmap. A non-default variation is a different glyph.</p>
1149 <h2 id="ft_face_getcharvariantindex">FT_Face_GetCharVariantIndex<a class="headerlink" href="#ft_face_getcharvariantindex" title="Permanent link">&para;</a></h2>
1150 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1151 <div class = "codehilite">
1152 <pre>
1153   FT_EXPORT( <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> )
1154   <b>FT_Face_GetCharVariantIndex</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a>   face,
1155                                <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  charcode,
1156                                <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  variantSelector );
1157 </pre>
1158 </div>
1159
1160 <p>Return the glyph index of a given character code as modified by the variation selector.</p>
1161 <h4>input</h4>
1162
1163 <table class="fields">
1164 <tr><td class="val" id="face">face</td><td class="desc">
1165 <p>A handle to the source face object.</p>
1166 </td></tr>
1167 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1168 <p>The character code point in Unicode.</p>
1169 </td></tr>
1170 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1171 <p>The Unicode code point of the variation selector.</p>
1172 </td></tr>
1173 </table>
1174
1175 <h4>return</h4>
1176
1177 <p>The glyph index. 0&nbsp;means either &lsquo;undefined character code&rsquo;, or &lsquo;undefined selector code&rsquo;, or &lsquo;no variation selector cmap subtable&rsquo;, or &lsquo;current CharMap is not Unicode&rsquo;.</p>
1178 <h4>note</h4>
1179
1180 <p>If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value&nbsp;0 always corresponds to the &lsquo;missing glyph&rsquo;.</p>
1181 <p>This function is only meaningful if a) the font has a variation selector cmap sub table, and b) the current charmap has a Unicode encoding.</p>
1182 <h4>since</h4>
1183
1184 <p>2.3.6</p>
1185 <hr>
1186
1187 <h2 id="ft_face_getcharvariantisdefault">FT_Face_GetCharVariantIsDefault<a class="headerlink" href="#ft_face_getcharvariantisdefault" title="Permanent link">&para;</a></h2>
1188 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1189 <div class = "codehilite">
1190 <pre>
1191   FT_EXPORT( <a href="ft2-basic_types.html#ft_int">FT_Int</a> )
1192   <b>FT_Face_GetCharVariantIsDefault</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a>   face,
1193                                    <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  charcode,
1194                                    <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  variantSelector );
1195 </pre>
1196 </div>
1197
1198 <p>Check whether this variation of this Unicode character is the one to be found in the charmap.</p>
1199 <h4>input</h4>
1200
1201 <table class="fields">
1202 <tr><td class="val" id="face">face</td><td class="desc">
1203 <p>A handle to the source face object.</p>
1204 </td></tr>
1205 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1206 <p>The character codepoint in Unicode.</p>
1207 </td></tr>
1208 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1209 <p>The Unicode codepoint of the variation selector.</p>
1210 </td></tr>
1211 </table>
1212
1213 <h4>return</h4>
1214
1215 <p>1&nbsp;if found in the standard (Unicode) cmap, 0&nbsp;if found in the variation selector cmap, or -1 if it is not a variation.</p>
1216 <h4>note</h4>
1217
1218 <p>This function is only meaningful if the font has a variation selector cmap subtable.</p>
1219 <h4>since</h4>
1220
1221 <p>2.3.6</p>
1222 <hr>
1223
1224 <h2 id="ft_face_getvariantselectors">FT_Face_GetVariantSelectors<a class="headerlink" href="#ft_face_getvariantselectors" title="Permanent link">&para;</a></h2>
1225 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1226 <div class = "codehilite">
1227 <pre>
1228   FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1229   <b>FT_Face_GetVariantSelectors</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a>  face );
1230 </pre>
1231 </div>
1232
1233 <p>Return a zero-terminated list of Unicode variation selectors found in the font.</p>
1234 <h4>input</h4>
1235
1236 <table class="fields">
1237 <tr><td class="val" id="face">face</td><td class="desc">
1238 <p>A handle to the source face object.</p>
1239 </td></tr>
1240 </table>
1241
1242 <h4>return</h4>
1243
1244 <p>A pointer to an array of selector code points, or <code>NULL</code> if there is no valid variation selector cmap subtable.</p>
1245 <h4>note</h4>
1246
1247 <p>The last item in the array is&nbsp;0; the array is owned by the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1248 <h4>since</h4>
1249
1250 <p>2.3.6</p>
1251 <hr>
1252
1253 <h2 id="ft_face_getvariantsofchar">FT_Face_GetVariantsOfChar<a class="headerlink" href="#ft_face_getvariantsofchar" title="Permanent link">&para;</a></h2>
1254 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1255 <div class = "codehilite">
1256 <pre>
1257   FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1258   <b>FT_Face_GetVariantsOfChar</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a>   face,
1259                              <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  charcode );
1260 </pre>
1261 </div>
1262
1263 <p>Return a zero-terminated list of Unicode variation selectors found for the specified character code.</p>
1264 <h4>input</h4>
1265
1266 <table class="fields">
1267 <tr><td class="val" id="face">face</td><td class="desc">
1268 <p>A handle to the source face object.</p>
1269 </td></tr>
1270 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1271 <p>The character codepoint in Unicode.</p>
1272 </td></tr>
1273 </table>
1274
1275 <h4>return</h4>
1276
1277 <p>A pointer to an array of variation selector code points that are active for the given character, or <code>NULL</code> if the corresponding list is empty.</p>
1278 <h4>note</h4>
1279
1280 <p>The last item in the array is&nbsp;0; the array is owned by the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1281 <h4>since</h4>
1282
1283 <p>2.3.6</p>
1284 <hr>
1285
1286 <h2 id="ft_face_getcharsofvariant">FT_Face_GetCharsOfVariant<a class="headerlink" href="#ft_face_getcharsofvariant" title="Permanent link">&para;</a></h2>
1287 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1288 <div class = "codehilite">
1289 <pre>
1290   FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1291   <b>FT_Face_GetCharsOfVariant</b>( <a href="ft2-base_interface.html#ft_face">FT_Face</a>   face,
1292                              <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a>  variantSelector );
1293 </pre>
1294 </div>
1295
1296 <p>Return a zero-terminated list of Unicode character codes found for the specified variation selector.</p>
1297 <h4>input</h4>
1298
1299 <table class="fields">
1300 <tr><td class="val" id="face">face</td><td class="desc">
1301 <p>A handle to the source face object.</p>
1302 </td></tr>
1303 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1304 <p>The variation selector code point in Unicode.</p>
1305 </td></tr>
1306 </table>
1307
1308 <h4>return</h4>
1309
1310 <p>A list of all the code points that are specified by this selector (both default and non-default codes are returned) or <code>NULL</code> if there is no valid cmap or the variation selector is invalid.</p>
1311 <h4>note</h4>
1312
1313 <p>The last item in the array is&nbsp;0; the array is owned by the <code><a href="ft2-base_interface.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1314 <h4>since</h4>
1315
1316 <p>2.3.6</p>
1317 <hr>
1318                 
1319                   
1320                 
1321               
1322               
1323                 
1324
1325
1326               
1327             </article>
1328           </div>
1329         </div>
1330       </main>
1331       
1332         
1333 <footer class="md-footer">
1334   
1335     <div class="md-footer-nav">
1336       <nav class="md-footer-nav__inner md-grid">
1337         
1338           <a href="ft2-base_interface.html" title="Base Interface" class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel="prev">
1339             <div class="md-flex__cell md-flex__cell--shrink">
1340               <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
1341             </div>
1342             <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
1343               <span class="md-flex__ellipsis">
1344                 <span class="md-footer-nav__direction">
1345                   Previous
1346                 </span>
1347                 Base Interface
1348               </span>
1349             </div>
1350           </a>
1351         
1352         
1353           <a href="ft2-color_management.html" title="Glyph Color Management" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel="next">
1354             <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
1355               <span class="md-flex__ellipsis">
1356                 <span class="md-footer-nav__direction">
1357                   Next
1358                 </span>
1359                 Glyph Color Management
1360               </span>
1361             </div>
1362             <div class="md-flex__cell md-flex__cell--shrink">
1363               <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
1364             </div>
1365           </a>
1366         
1367       </nav>
1368     </div>
1369   
1370   <div class="md-footer-meta md-typeset">
1371     <div class="md-footer-meta__inner md-grid">
1372       <div class="md-footer-copyright">
1373         
1374           <div class="md-footer-copyright__highlight">
1375             Copyright 2019 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
1376           </div>
1377         
1378         powered by
1379         <a href="https://www.mkdocs.org">MkDocs</a>
1380         and
1381         <a href="https://squidfunk.github.io/mkdocs-material/">
1382           Material for MkDocs</a>
1383       </div>
1384       
1385     </div>
1386   </div>
1387 </footer>
1388       
1389     </div>
1390     
1391       <script src="assets/javascripts/application.d9aa80ab.js"></script>
1392       
1393       <script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
1394       
1395         <script src="javascripts/extra.js"></script>
1396       
1397     
1398   </body>
1399 </html>