6 <html lang="en" class="no-js">
10 <meta name="viewport" content="width=device-width,initial-scale=1">
11 <meta http-equiv="x-ua-compatible" content="ie=edge">
13 <meta name="description" content="API Reference Documentation for FreeType-2.10.1">
17 <meta name="author" content="FreeType Contributors">
20 <meta name="lang:clipboard.copy" content="Copy to clipboard">
22 <meta name="lang:clipboard.copied" content="Copied to clipboard">
24 <meta name="lang:search.language" content="en">
26 <meta name="lang:search.pipeline.stopwords" content="True">
28 <meta name="lang:search.pipeline.trimmer" content="True">
30 <meta name="lang:search.result.none" content="No matching documents">
32 <meta name="lang:search.result.one" content="1 matching document">
34 <meta name="lang:search.result.other" content="# matching documents">
36 <meta name="lang:search.tokenizer" content="[\s\-]+">
38 <link rel="shortcut icon" href="images/favico.ico">
39 <meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.0.2">
43 <title>Unicode Variation Sequences - FreeType-2.10.1 API Reference</title>
47 <link rel="stylesheet" href="assets/stylesheets/application.982221ab.css">
49 <link rel="stylesheet" href="assets/stylesheets/application-palette.224b79ff.css">
54 <meta name="theme-color" content="#4caf50">
58 <script src="assets/javascripts/modernizr.1f0bcf2b.js"></script>
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>
67 <link rel="stylesheet" href="assets/fonts/material-icons.css">
70 <link rel="stylesheet" href="stylesheets/extra.css">
80 <body dir="ltr" data-md-color-primary="green" data-md-color-accent="green">
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>
92 <a href="#unicode-variation-sequences" tabindex="1" class="md-skip">
97 <header class="md-header" data-md-component="header">
98 <nav class="md-header-nav md-grid">
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">
103 <img src="images/favico.ico" width="24" height="24">
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>
110 <div class="md-flex__cell md-flex__cell--stretch">
111 <div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
113 <span class="md-header-nav__topic">
114 FreeType-2.10.1 API Reference
116 <span class="md-header-nav__topic">
117 Unicode Variation Sequences
122 <div class="md-flex__cell md-flex__cell--shrink">
124 <label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
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">
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
142 <ol class="md-search-result__list"></ol>
155 <div class="md-container">
160 <main class="md-main">
161 <div class="md-main__inner md-grid" data-md-component="container">
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">
171 <img src="images/favico.ico" width="48" height="48">
174 FreeType-2.10.1 API Reference
177 <ul class="md-nav__list" data-md-scrollfix>
184 <li class="md-nav__item">
185 <a href="index.html" title="TOC" class="md-nav__link">
196 <li class="md-nav__item">
197 <a href="ft2-index.html" title="Index" class="md-nav__link">
208 <li class="md-nav__item md-nav__item--nested">
210 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
212 <label class="md-nav__link" for="nav-3">
215 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
216 <label class="md-nav__title" for="nav-3">
219 <ul class="md-nav__list" data-md-scrollfix>
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
239 <li class="md-nav__item">
240 <a href="ft2-user_allocation.html" title="User allocation" class="md-nav__link">
258 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
260 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4" checked>
262 <label class="md-nav__link" for="nav-4">
265 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
266 <label class="md-nav__title" for="nav-4">
269 <ul class="md-nav__list" data-md-scrollfix>
277 <li class="md-nav__item">
278 <a href="ft2-version.html" title="FreeType Version" class="md-nav__link">
289 <li class="md-nav__item">
290 <a href="ft2-basic_types.html" title="Basic Data Types" class="md-nav__link">
301 <li class="md-nav__item">
302 <a href="ft2-base_interface.html" title="Base Interface" class="md-nav__link">
315 <li class="md-nav__item md-nav__item--active">
317 <input class="md-toggle md-nav__toggle" data-md-toggle="toc" type="checkbox" id="__toc">
322 <label class="md-nav__link md-nav__link--active" for="__toc">
323 Unicode Variation Sequences
326 <a href="ft2-glyph_variants.html" title="Unicode Variation Sequences" class="md-nav__link md-nav__link--active">
327 Unicode Variation Sequences
331 <nav class="md-nav md-nav--secondary">
337 <label class="md-nav__title" for="__toc">Table of contents</label>
338 <ul class="md-nav__list" data-md-scrollfix>
340 <li class="md-nav__item">
341 <a href="#synopsis" title="Synopsis" class="md-nav__link">
347 <li class="md-nav__item">
348 <a href="#ft_face_getcharvariantindex" title="FT_Face_GetCharVariantIndex" class="md-nav__link">
349 FT_Face_GetCharVariantIndex
354 <li class="md-nav__item">
355 <a href="#ft_face_getcharvariantisdefault" title="FT_Face_GetCharVariantIsDefault" class="md-nav__link">
356 FT_Face_GetCharVariantIsDefault
361 <li class="md-nav__item">
362 <a href="#ft_face_getvariantselectors" title="FT_Face_GetVariantSelectors" class="md-nav__link">
363 FT_Face_GetVariantSelectors
368 <li class="md-nav__item">
369 <a href="#ft_face_getvariantsofchar" title="FT_Face_GetVariantsOfChar" class="md-nav__link">
370 FT_Face_GetVariantsOfChar
375 <li class="md-nav__item">
376 <a href="#ft_face_getcharsofvariant" title="FT_Face_GetCharsOfVariant" class="md-nav__link">
377 FT_Face_GetCharsOfVariant
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
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
422 <li class="md-nav__item">
423 <a href="ft2-glyph_management.html" title="Glyph Management" class="md-nav__link">
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
446 <li class="md-nav__item">
447 <a href="ft2-sizes_management.html" title="Size Management" class="md-nav__link">
458 <li class="md-nav__item">
459 <a href="ft2-header_file_macros.html" title="Header File Macros" class="md-nav__link">
475 <li class="md-nav__item md-nav__item--nested">
477 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
479 <label class="md-nav__link" for="nav-5">
482 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
483 <label class="md-nav__title" for="nav-5">
486 <ul class="md-nav__list" data-md-scrollfix>
494 <li class="md-nav__item">
495 <a href="ft2-multiple_masters.html" title="Multiple Masters" class="md-nav__link">
506 <li class="md-nav__item">
507 <a href="ft2-truetype_tables.html" title="TrueType Tables" class="md-nav__link">
518 <li class="md-nav__item">
519 <a href="ft2-type1_tables.html" title="Type 1 Tables" class="md-nav__link">
530 <li class="md-nav__item">
531 <a href="ft2-sfnt_names.html" title="SFNT Names" class="md-nav__link">
542 <li class="md-nav__item">
543 <a href="ft2-bdf_fonts.html" title="BDF and PCF Files" class="md-nav__link">
554 <li class="md-nav__item">
555 <a href="ft2-cid_fonts.html" title="CID Fonts" class="md-nav__link">
566 <li class="md-nav__item">
567 <a href="ft2-pfr_fonts.html" title="PFR Fonts" class="md-nav__link">
578 <li class="md-nav__item">
579 <a href="ft2-winfnt_fonts.html" title="Window FNT Files" class="md-nav__link">
590 <li class="md-nav__item">
591 <a href="ft2-font_formats.html" title="Font Formats" class="md-nav__link">
602 <li class="md-nav__item">
603 <a href="ft2-gasp_table.html" title="Gasp Table" class="md-nav__link">
619 <li class="md-nav__item md-nav__item--nested">
621 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6">
623 <label class="md-nav__link" for="nav-6">
624 Controlling FreeType Modules
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
630 <ul class="md-nav__list" data-md-scrollfix>
638 <li class="md-nav__item">
639 <a href="ft2-auto_hinter.html" title="The auto-hinter" class="md-nav__link">
650 <li class="md-nav__item">
651 <a href="ft2-cff_driver.html" title="The CFF driver" class="md-nav__link">
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
674 <li class="md-nav__item">
675 <a href="ft2-tt_driver.html" title="The TrueType driver" class="md-nav__link">
686 <li class="md-nav__item">
687 <a href="ft2-pcf_driver.html" title="The PCF driver" class="md-nav__link">
698 <li class="md-nav__item">
699 <a href="ft2-properties.html" title="Driver properties" class="md-nav__link">
710 <li class="md-nav__item">
711 <a href="ft2-parameter_tags.html" title="Parameter Tags" class="md-nav__link">
722 <li class="md-nav__item">
723 <a href="ft2-lcd_rendering.html" title="Subpixel Rendering" class="md-nav__link">
739 <li class="md-nav__item md-nav__item--nested">
741 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
743 <label class="md-nav__link" for="nav-7">
746 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
747 <label class="md-nav__title" for="nav-7">
750 <ul class="md-nav__list" data-md-scrollfix>
758 <li class="md-nav__item">
759 <a href="ft2-cache_subsystem.html" title="Cache Sub-System" class="md-nav__link">
775 <li class="md-nav__item md-nav__item--nested">
777 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-8" type="checkbox" id="nav-8">
779 <label class="md-nav__link" for="nav-8">
782 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
783 <label class="md-nav__title" for="nav-8">
786 <ul class="md-nav__list" data-md-scrollfix>
794 <li class="md-nav__item">
795 <a href="ft2-computations.html" title="Computations" class="md-nav__link">
806 <li class="md-nav__item">
807 <a href="ft2-list_processing.html" title="List Processing" class="md-nav__link">
818 <li class="md-nav__item">
819 <a href="ft2-outline_processing.html" title="Outline Processing" class="md-nav__link">
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
842 <li class="md-nav__item">
843 <a href="ft2-bitmap_handling.html" title="Bitmap Handling" class="md-nav__link">
854 <li class="md-nav__item">
855 <a href="ft2-raster.html" title="Scanline Converter" class="md-nav__link">
866 <li class="md-nav__item">
867 <a href="ft2-glyph_stroker.html" title="Glyph Stroker" class="md-nav__link">
878 <li class="md-nav__item">
879 <a href="ft2-system_interface.html" title="System Interface" class="md-nav__link">
890 <li class="md-nav__item">
891 <a href="ft2-module_management.html" title="Module Management" class="md-nav__link">
902 <li class="md-nav__item">
903 <a href="ft2-gzip.html" title="GZIP Streams" class="md-nav__link">
914 <li class="md-nav__item">
915 <a href="ft2-lzw.html" title="LZW Streams" class="md-nav__link">
926 <li class="md-nav__item">
927 <a href="ft2-bzip2.html" title="BZIP2 Streams" class="md-nav__link">
943 <li class="md-nav__item md-nav__item--nested">
945 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-9" type="checkbox" id="nav-9">
947 <label class="md-nav__link" for="nav-9">
950 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
951 <label class="md-nav__title" for="nav-9">
954 <ul class="md-nav__list" data-md-scrollfix>
962 <li class="md-nav__item">
963 <a href="ft2-error_enumerations.html" title="Error Enumerations" class="md-nav__link">
974 <li class="md-nav__item">
975 <a href="ft2-error_code_values.html" title="Error Code Values" class="md-nav__link">
991 <li class="md-nav__item md-nav__item--nested">
993 <input class="md-toggle md-nav__toggle" data-md-toggle="nav-10" type="checkbox" id="nav-10">
995 <label class="md-nav__link" for="nav-10">
998 <nav class="md-nav" data-md-component="collapsible" data-md-level="1">
999 <label class="md-nav__title" for="nav-10">
1002 <ul class="md-nav__list" data-md-scrollfix>
1010 <li class="md-nav__item">
1011 <a href="ft2-ot_validation.html" title="OpenType Validation" class="md-nav__link">
1022 <li class="md-nav__item">
1023 <a href="ft2-incremental.html" title="Incremental Loading" class="md-nav__link">
1034 <li class="md-nav__item">
1035 <a href="ft2-truetype_engine.html" title="The TrueType Engine" class="md-nav__link">
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
1065 <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
1066 <div class="md-sidebar__scrollwrap">
1067 <div class="md-sidebar__inner">
1069 <nav class="md-nav md-nav--secondary">
1075 <label class="md-nav__title" for="__toc">Table of contents</label>
1076 <ul class="md-nav__list" data-md-scrollfix>
1078 <li class="md-nav__item">
1079 <a href="#synopsis" title="Synopsis" class="md-nav__link">
1085 <li class="md-nav__item">
1086 <a href="#ft_face_getcharvariantindex" title="FT_Face_GetCharVariantIndex" class="md-nav__link">
1087 FT_Face_GetCharVariantIndex
1092 <li class="md-nav__item">
1093 <a href="#ft_face_getcharvariantisdefault" title="FT_Face_GetCharVariantIsDefault" class="md-nav__link">
1094 FT_Face_GetCharVariantIsDefault
1099 <li class="md-nav__item">
1100 <a href="#ft_face_getvariantselectors" title="FT_Face_GetVariantSelectors" class="md-nav__link">
1101 FT_Face_GetVariantSelectors
1106 <li class="md-nav__item">
1107 <a href="#ft_face_getvariantsofchar" title="FT_Face_GetVariantsOfChar" class="md-nav__link">
1108 FT_Face_GetVariantsOfChar
1113 <li class="md-nav__item">
1114 <a href="#ft_face_getcharsofvariant" title="FT_Face_GetCharsOfVariant" class="md-nav__link">
1115 FT_Face_GetCharsOfVariant
1132 <div class="md-content">
1133 <article class="md-content__inner md-typeset">
1137 <p><a href="https://www.freetype.org">FreeType</a> » <a href="../">Docs</a> » <a href="index.html#core-api">Core API</a> » Unicode Variation Sequences</p>
1139 <h1 id="unicode-variation-sequences">Unicode Variation Sequences<a class="headerlink" href="#unicode-variation-sequences" title="Permanent link">¶</a></h1>
1140 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">¶</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 ‘Standardized Variation Sequences’ and registered ‘Ideographic Variation Sequences’ (IVS), collected in the ‘Ideographic Variation Database’ (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 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 ‘default’ or ‘non-default’ 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">¶</a></h2>
1150 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1151 <div class = "codehilite">
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 );
1160 <p>Return the glyph index of a given character code as modified by the variation selector.</p>
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>
1167 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1168 <p>The character code point in Unicode.</p>
1170 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1171 <p>The Unicode code point of the variation selector.</p>
1177 <p>The glyph index. 0 means either ‘undefined character code’, or ‘undefined selector code’, or ‘no variation selector cmap subtable’, or ‘current CharMap is not Unicode’.</p>
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 0 always corresponds to the ‘missing glyph’.</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>
1187 <h2 id="ft_face_getcharvariantisdefault">FT_Face_GetCharVariantIsDefault<a class="headerlink" href="#ft_face_getcharvariantisdefault" title="Permanent link">¶</a></h2>
1188 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1189 <div class = "codehilite">
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 );
1198 <p>Check whether this variation of this Unicode character is the one to be found in the charmap.</p>
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>
1205 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1206 <p>The character codepoint in Unicode.</p>
1208 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1209 <p>The Unicode codepoint of the variation selector.</p>
1215 <p>1 if found in the standard (Unicode) cmap, 0 if found in the variation selector cmap, or -1 if it is not a variation.</p>
1218 <p>This function is only meaningful if the font has a variation selector cmap subtable.</p>
1224 <h2 id="ft_face_getvariantselectors">FT_Face_GetVariantSelectors<a class="headerlink" href="#ft_face_getvariantselectors" title="Permanent link">¶</a></h2>
1225 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1226 <div class = "codehilite">
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 );
1233 <p>Return a zero-terminated list of Unicode variation selectors found in the font.</p>
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>
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>
1247 <p>The last item in the array is 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>
1253 <h2 id="ft_face_getvariantsofchar">FT_Face_GetVariantsOfChar<a class="headerlink" href="#ft_face_getvariantsofchar" title="Permanent link">¶</a></h2>
1254 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1255 <div class = "codehilite">
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 );
1263 <p>Return a zero-terminated list of Unicode variation selectors found for the specified character code.</p>
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>
1270 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1271 <p>The character codepoint in Unicode.</p>
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>
1280 <p>The last item in the array is 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>
1286 <h2 id="ft_face_getcharsofvariant">FT_Face_GetCharsOfVariant<a class="headerlink" href="#ft_face_getcharsofvariant" title="Permanent link">¶</a></h2>
1287 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1288 <div class = "codehilite">
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 );
1296 <p>Return a zero-terminated list of Unicode character codes found for the specified variation selector.</p>
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>
1303 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1304 <p>The variation selector code point in Unicode.</p>
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>
1313 <p>The last item in the array is 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>
1333 <footer class="md-footer">
1335 <div class="md-footer-nav">
1336 <nav class="md-footer-nav__inner md-grid">
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>
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">
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">
1359 Glyph Color Management
1362 <div class="md-flex__cell md-flex__cell--shrink">
1363 <i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
1370 <div class="md-footer-meta md-typeset">
1371 <div class="md-footer-meta__inner md-grid">
1372 <div class="md-footer-copyright">
1374 <div class="md-footer-copyright__highlight">
1375 Copyright 2019 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
1379 <a href="https://www.mkdocs.org">MkDocs</a>
1381 <a href="https://squidfunk.github.io/mkdocs-material/">
1382 Material for MkDocs</a>
1391 <script src="assets/javascripts/application.d9aa80ab.js"></script>
1393 <script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
1395 <script src="javascripts/extra.js"></script>