3 <html lang="en" class="no-js">
7 <meta name="viewport" content="width=device-width,initial-scale=1">
9 <meta name="description" content="API Reference Documentation for FreeType-2.13.2">
13 <meta name="author" content="FreeType Contributors">
16 <link rel="icon" href="images/favico.ico">
17 <meta name="generator" content="mkdocs-1.4.3, mkdocs-material-7.1.9">
21 <title>Unicode Variation Sequences - FreeType-2.13.2 API Reference</title>
25 <link rel="stylesheet" href="assets/stylesheets/main.ca7ac06f.min.css">
28 <link rel="stylesheet" href="assets/stylesheets/palette.f1a3b89f.min.css">
32 <meta name="theme-color" content="#4cae4f">
40 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
41 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Serif:300,400,400i,700%7CRoboto+Mono&display=fallback">
42 <style>:root{--md-text-font-family:"Noto Serif";--md-code-font-family:"Roboto Mono"}</style>
47 <link rel="stylesheet" href="stylesheets/extra.css">
63 <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="green">
66 <script>function __prefix(e){return new URL(".",location).pathname+"."+e}function __get(e,t=localStorage){return JSON.parse(t.getItem(__prefix(e)))}</script>
68 <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
69 <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
70 <label class="md-overlay" for="__drawer"></label>
71 <div data-md-component="skip">
74 <a href="#unicode-variation-sequences" class="md-skip">
79 <div data-md-component="announce">
83 <header class="md-header" data-md-component="header">
84 <nav class="md-header__inner md-grid" aria-label="Header">
85 <a href="index.html" title="FreeType-2.13.2 API Reference" class="md-header__button md-logo" aria-label="FreeType-2.13.2 API Reference" data-md-component="logo">
87 <img src="images/favico.ico" alt="logo">
90 <label class="md-header__button md-icon" for="__drawer">
91 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
93 <div class="md-header__title" data-md-component="header-title">
94 <div class="md-header__ellipsis">
95 <div class="md-header__topic">
96 <span class="md-ellipsis">
97 FreeType-2.13.2 API Reference
100 <div class="md-header__topic" data-md-component="header-topic">
101 <span class="md-ellipsis">
103 Unicode Variation Sequences
112 <label class="md-header__button md-icon" for="__search">
113 <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.516 6.516 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 5z"/></svg>
116 <div class="md-search" data-md-component="search" role="dialog">
117 <label class="md-search__overlay" for="__search"></label>
118 <div class="md-search__inner" role="search">
119 <form class="md-search__form" name="search">
120 <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" data-md-state="active" required>
121 <label class="md-search__icon md-icon" for="__search">
122 <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.516 6.516 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 5z"/></svg>
123 <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 11h12z"/></svg>
125 <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
126 <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 12 19 6.41z"/></svg>
129 <div class="md-search__output">
130 <div class="md-search__scrollwrap" data-md-scrollfix>
131 <div class="md-search-result" data-md-component="search-result">
132 <div class="md-search-result__meta">
135 <ol class="md-search-result__list"></ol>
146 <div class="md-container" data-md-component="container">
151 <main class="md-main" data-md-component="main">
152 <div class="md-main__inner md-grid">
156 <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
157 <div class="md-sidebar__scrollwrap">
158 <div class="md-sidebar__inner">
162 <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
163 <label class="md-nav__title" for="__drawer">
164 <a href="index.html" title="FreeType-2.13.2 API Reference" class="md-nav__button md-logo" aria-label="FreeType-2.13.2 API Reference" data-md-component="logo">
166 <img src="images/favico.ico" alt="logo">
169 FreeType-2.13.2 API Reference
172 <ul class="md-nav__list" data-md-scrollfix>
181 <li class="md-nav__item">
182 <a href="index.html" class="md-nav__link">
196 <li class="md-nav__item">
197 <a href="ft2-index.html" class="md-nav__link">
212 <li class="md-nav__item md-nav__item--nested">
215 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
217 <label class="md-nav__link" for="__nav_3">
219 <span class="md-nav__icon md-icon"></span>
221 <nav class="md-nav" aria-label="General Remarks" data-md-level="1">
222 <label class="md-nav__title" for="__nav_3">
223 <span class="md-nav__icon md-icon"></span>
226 <ul class="md-nav__list" data-md-scrollfix>
232 <li class="md-nav__item">
233 <a href="ft2-preamble.html" class="md-nav__link">
244 <li class="md-nav__item">
245 <a href="ft2-header_inclusion.html" class="md-nav__link">
246 FreeType's header inclusion scheme
256 <li class="md-nav__item">
257 <a href="ft2-user_allocation.html" class="md-nav__link">
278 <li class="md-nav__item md-nav__item--nested">
281 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
283 <label class="md-nav__link" for="__nav_4">
285 <span class="md-nav__icon md-icon"></span>
287 <nav class="md-nav" aria-label="Core API" data-md-level="1">
288 <label class="md-nav__title" for="__nav_4">
289 <span class="md-nav__icon md-icon"></span>
292 <ul class="md-nav__list" data-md-scrollfix>
298 <li class="md-nav__item">
299 <a href="ft2-basic_types.html" class="md-nav__link">
310 <li class="md-nav__item">
311 <a href="ft2-library_setup.html" class="md-nav__link">
322 <li class="md-nav__item">
323 <a href="ft2-face_creation.html" class="md-nav__link">
334 <li class="md-nav__item">
335 <a href="ft2-font_testing_macros.html" class="md-nav__link">
346 <li class="md-nav__item">
347 <a href="ft2-sizing_and_scaling.html" class="md-nav__link">
358 <li class="md-nav__item">
359 <a href="ft2-glyph_retrieval.html" class="md-nav__link">
370 <li class="md-nav__item">
371 <a href="ft2-character_mapping.html" class="md-nav__link">
382 <li class="md-nav__item">
383 <a href="ft2-information_retrieval.html" class="md-nav__link">
384 Information Retrieval
394 <li class="md-nav__item">
395 <a href="ft2-other_api_data.html" class="md-nav__link">
418 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
421 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" checked>
423 <label class="md-nav__link" for="__nav_5">
425 <span class="md-nav__icon md-icon"></span>
427 <nav class="md-nav" aria-label="Extended API" data-md-level="1">
428 <label class="md-nav__title" for="__nav_5">
429 <span class="md-nav__icon md-icon"></span>
432 <ul class="md-nav__list" data-md-scrollfix>
440 <li class="md-nav__item md-nav__item--active">
442 <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
448 <label class="md-nav__link md-nav__link--active" for="__toc">
449 Unicode Variation Sequences
450 <span class="md-nav__icon md-icon"></span>
453 <a href="ft2-glyph_variants.html" class="md-nav__link md-nav__link--active">
454 Unicode Variation Sequences
458 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
465 <label class="md-nav__title" for="__toc">
466 <span class="md-nav__icon md-icon"></span>
469 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
471 <li class="md-nav__item">
472 <a href="#synopsis" class="md-nav__link">
478 <li class="md-nav__item">
479 <a href="#ft_face_getcharvariantindex" class="md-nav__link">
480 FT_Face_GetCharVariantIndex
485 <li class="md-nav__item">
486 <a href="#ft_face_getcharvariantisdefault" class="md-nav__link">
487 FT_Face_GetCharVariantIsDefault
492 <li class="md-nav__item">
493 <a href="#ft_face_getvariantselectors" class="md-nav__link">
494 FT_Face_GetVariantSelectors
499 <li class="md-nav__item">
500 <a href="#ft_face_getvariantsofchar" class="md-nav__link">
501 FT_Face_GetVariantsOfChar
506 <li class="md-nav__item">
507 <a href="#ft_face_getcharsofvariant" class="md-nav__link">
508 FT_Face_GetCharsOfVariant
525 <li class="md-nav__item">
526 <a href="ft2-color_management.html" class="md-nav__link">
527 Glyph Color Management
537 <li class="md-nav__item">
538 <a href="ft2-layer_management.html" class="md-nav__link">
539 Glyph Layer Management
549 <li class="md-nav__item">
550 <a href="ft2-glyph_management.html" class="md-nav__link">
561 <li class="md-nav__item">
562 <a href="ft2-mac_specific.html" class="md-nav__link">
563 Mac Specific Interface
573 <li class="md-nav__item">
574 <a href="ft2-sizes_management.html" class="md-nav__link">
585 <li class="md-nav__item">
586 <a href="ft2-header_file_macros.html" class="md-nav__link">
607 <li class="md-nav__item md-nav__item--nested">
610 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
612 <label class="md-nav__link" for="__nav_6">
614 <span class="md-nav__icon md-icon"></span>
616 <nav class="md-nav" aria-label="Format-Specific API" data-md-level="1">
617 <label class="md-nav__title" for="__nav_6">
618 <span class="md-nav__icon md-icon"></span>
621 <ul class="md-nav__list" data-md-scrollfix>
627 <li class="md-nav__item">
628 <a href="ft2-multiple_masters.html" class="md-nav__link">
639 <li class="md-nav__item">
640 <a href="ft2-truetype_tables.html" class="md-nav__link">
651 <li class="md-nav__item">
652 <a href="ft2-type1_tables.html" class="md-nav__link">
663 <li class="md-nav__item">
664 <a href="ft2-sfnt_names.html" class="md-nav__link">
675 <li class="md-nav__item">
676 <a href="ft2-bdf_fonts.html" class="md-nav__link">
687 <li class="md-nav__item">
688 <a href="ft2-cid_fonts.html" class="md-nav__link">
699 <li class="md-nav__item">
700 <a href="ft2-pfr_fonts.html" class="md-nav__link">
711 <li class="md-nav__item">
712 <a href="ft2-winfnt_fonts.html" class="md-nav__link">
723 <li class="md-nav__item">
724 <a href="ft2-svg_fonts.html" class="md-nav__link">
735 <li class="md-nav__item">
736 <a href="ft2-font_formats.html" class="md-nav__link">
747 <li class="md-nav__item">
748 <a href="ft2-gasp_table.html" class="md-nav__link">
769 <li class="md-nav__item md-nav__item--nested">
772 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
774 <label class="md-nav__link" for="__nav_7">
775 Controlling FreeType Modules
776 <span class="md-nav__icon md-icon"></span>
778 <nav class="md-nav" aria-label="Controlling FreeType Modules" data-md-level="1">
779 <label class="md-nav__title" for="__nav_7">
780 <span class="md-nav__icon md-icon"></span>
781 Controlling FreeType Modules
783 <ul class="md-nav__list" data-md-scrollfix>
789 <li class="md-nav__item">
790 <a href="ft2-auto_hinter.html" class="md-nav__link">
801 <li class="md-nav__item">
802 <a href="ft2-cff_driver.html" class="md-nav__link">
813 <li class="md-nav__item">
814 <a href="ft2-t1_cid_driver.html" class="md-nav__link">
815 The Type 1 and CID drivers
825 <li class="md-nav__item">
826 <a href="ft2-tt_driver.html" class="md-nav__link">
837 <li class="md-nav__item">
838 <a href="ft2-pcf_driver.html" class="md-nav__link">
849 <li class="md-nav__item">
850 <a href="ft2-ot_svg_driver.html" class="md-nav__link">
861 <li class="md-nav__item">
862 <a href="ft2-properties.html" class="md-nav__link">
873 <li class="md-nav__item">
874 <a href="ft2-parameter_tags.html" class="md-nav__link">
885 <li class="md-nav__item">
886 <a href="ft2-lcd_rendering.html" class="md-nav__link">
907 <li class="md-nav__item md-nav__item--nested">
910 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
912 <label class="md-nav__link" for="__nav_8">
914 <span class="md-nav__icon md-icon"></span>
916 <nav class="md-nav" aria-label="Cache Sub-System" data-md-level="1">
917 <label class="md-nav__title" for="__nav_8">
918 <span class="md-nav__icon md-icon"></span>
921 <ul class="md-nav__list" data-md-scrollfix>
927 <li class="md-nav__item">
928 <a href="ft2-cache_subsystem.html" class="md-nav__link">
949 <li class="md-nav__item md-nav__item--nested">
952 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
954 <label class="md-nav__link" for="__nav_9">
956 <span class="md-nav__icon md-icon"></span>
958 <nav class="md-nav" aria-label="Support API" data-md-level="1">
959 <label class="md-nav__title" for="__nav_9">
960 <span class="md-nav__icon md-icon"></span>
963 <ul class="md-nav__list" data-md-scrollfix>
969 <li class="md-nav__item">
970 <a href="ft2-computations.html" class="md-nav__link">
981 <li class="md-nav__item">
982 <a href="ft2-list_processing.html" class="md-nav__link">
993 <li class="md-nav__item">
994 <a href="ft2-outline_processing.html" class="md-nav__link">
1005 <li class="md-nav__item">
1006 <a href="ft2-quick_advance.html" class="md-nav__link">
1007 Quick retrieval of advance values
1017 <li class="md-nav__item">
1018 <a href="ft2-bitmap_handling.html" class="md-nav__link">
1029 <li class="md-nav__item">
1030 <a href="ft2-raster.html" class="md-nav__link">
1041 <li class="md-nav__item">
1042 <a href="ft2-glyph_stroker.html" class="md-nav__link">
1053 <li class="md-nav__item">
1054 <a href="ft2-system_interface.html" class="md-nav__link">
1065 <li class="md-nav__item">
1066 <a href="ft2-module_management.html" class="md-nav__link">
1077 <li class="md-nav__item">
1078 <a href="ft2-gzip.html" class="md-nav__link">
1089 <li class="md-nav__item">
1090 <a href="ft2-lzw.html" class="md-nav__link">
1101 <li class="md-nav__item">
1102 <a href="ft2-bzip2.html" class="md-nav__link">
1113 <li class="md-nav__item">
1114 <a href="ft2-debugging_apis.html" class="md-nav__link">
1115 External Debugging APIs
1135 <li class="md-nav__item md-nav__item--nested">
1138 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_10" type="checkbox" id="__nav_10" >
1140 <label class="md-nav__link" for="__nav_10">
1142 <span class="md-nav__icon md-icon"></span>
1144 <nav class="md-nav" aria-label="Error Codes" data-md-level="1">
1145 <label class="md-nav__title" for="__nav_10">
1146 <span class="md-nav__icon md-icon"></span>
1149 <ul class="md-nav__list" data-md-scrollfix>
1155 <li class="md-nav__item">
1156 <a href="ft2-error_enumerations.html" class="md-nav__link">
1167 <li class="md-nav__item">
1168 <a href="ft2-error_code_values.html" class="md-nav__link">
1189 <li class="md-nav__item md-nav__item--nested">
1192 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_11" type="checkbox" id="__nav_11" >
1194 <label class="md-nav__link" for="__nav_11">
1196 <span class="md-nav__icon md-icon"></span>
1198 <nav class="md-nav" aria-label="Miscellaneous" data-md-level="1">
1199 <label class="md-nav__title" for="__nav_11">
1200 <span class="md-nav__icon md-icon"></span>
1203 <ul class="md-nav__list" data-md-scrollfix>
1209 <li class="md-nav__item">
1210 <a href="ft2-gx_validation.html" class="md-nav__link">
1211 TrueTypeGX/AAT Validation
1221 <li class="md-nav__item">
1222 <a href="ft2-incremental.html" class="md-nav__link">
1233 <li class="md-nav__item">
1234 <a href="ft2-truetype_engine.html" class="md-nav__link">
1245 <li class="md-nav__item">
1246 <a href="ft2-ot_validation.html" class="md-nav__link">
1267 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
1268 <div class="md-sidebar__scrollwrap">
1269 <div class="md-sidebar__inner">
1271 <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
1278 <label class="md-nav__title" for="__toc">
1279 <span class="md-nav__icon md-icon"></span>
1282 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
1284 <li class="md-nav__item">
1285 <a href="#synopsis" class="md-nav__link">
1291 <li class="md-nav__item">
1292 <a href="#ft_face_getcharvariantindex" class="md-nav__link">
1293 FT_Face_GetCharVariantIndex
1298 <li class="md-nav__item">
1299 <a href="#ft_face_getcharvariantisdefault" class="md-nav__link">
1300 FT_Face_GetCharVariantIsDefault
1305 <li class="md-nav__item">
1306 <a href="#ft_face_getvariantselectors" class="md-nav__link">
1307 FT_Face_GetVariantSelectors
1312 <li class="md-nav__item">
1313 <a href="#ft_face_getvariantsofchar" class="md-nav__link">
1314 FT_Face_GetVariantsOfChar
1319 <li class="md-nav__item">
1320 <a href="#ft_face_getcharsofvariant" class="md-nav__link">
1321 FT_Face_GetCharsOfVariant
1334 <div class="md-content" data-md-component="content">
1335 <article class="md-content__inner md-typeset">
1339 <p><a href="https://www.freetype.org">FreeType</a> » <a href="../">Docs</a> » <a href="index.html#extended-api">Extended API</a> » Unicode Variation Sequences</p>
1341 <h1 id="unicode-variation-sequences">Unicode Variation Sequences<a class="headerlink" href="#unicode-variation-sequences" title="Permanent link">¶</a></h1>
1342 <h2 id="synopsis">Synopsis<a class="headerlink" href="#synopsis" title="Permanent link">¶</a></h2>
1343 <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>
1344 <p>Unicode maintains two different sets, namely ‘Standardized Variation Sequences’ and registered ‘Ideographic Variation Sequences’ (IVS), collected in the ‘Ideographic Variation Database’ (IVD).</p>
1345 <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>
1346 <p>To date (January 2017), the character with the most ideographic variations is U+9089, having 32 such IVS.</p>
1347 <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>
1348 <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>
1349 <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>
1350 <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>
1351 <h2 id="ft_face_getcharvariantindex">FT_Face_GetCharVariantIndex<a class="headerlink" href="#ft_face_getcharvariantindex" title="Permanent link">¶</a></h2>
1352 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1353 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_uint">FT_UInt</a> )
1354 <b>FT_Face_GetCharVariantIndex</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
1355 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> charcode,
1356 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> variantSelector );
1359 <p>Return the glyph index of a given character code as modified by the variation selector.</p>
1361 <table class="fields">
1362 <tr><td class="val" id="face">face</td><td class="desc">
1363 <p>A handle to the source face object.</p>
1365 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1366 <p>The character code point in Unicode.</p>
1368 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1369 <p>The Unicode code point of the variation selector.</p>
1375 <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>
1378 <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>
1379 <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>
1385 <h2 id="ft_face_getcharvariantisdefault">FT_Face_GetCharVariantIsDefault<a class="headerlink" href="#ft_face_getcharvariantisdefault" title="Permanent link">¶</a></h2>
1386 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1387 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_int">FT_Int</a> )
1388 <b>FT_Face_GetCharVariantIsDefault</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
1389 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> charcode,
1390 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> variantSelector );
1393 <p>Check whether this variation of this Unicode character is the one to be found in the charmap.</p>
1395 <table class="fields">
1396 <tr><td class="val" id="face">face</td><td class="desc">
1397 <p>A handle to the source face object.</p>
1399 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1400 <p>The character codepoint in Unicode.</p>
1402 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1403 <p>The Unicode codepoint of the variation selector.</p>
1409 <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>
1412 <p>This function is only meaningful if the font has a variation selector cmap subtable.</p>
1418 <h2 id="ft_face_getvariantselectors">FT_Face_GetVariantSelectors<a class="headerlink" href="#ft_face_getvariantselectors" title="Permanent link">¶</a></h2>
1419 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1420 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1421 <b>FT_Face_GetVariantSelectors</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face );
1424 <p>Return a zero-terminated list of Unicode variation selectors found in the font.</p>
1426 <table class="fields">
1427 <tr><td class="val" id="face">face</td><td class="desc">
1428 <p>A handle to the source face object.</p>
1434 <p>A pointer to an array of selector code points, or <code>NULL</code> if there is no valid variation selector cmap subtable.</p>
1437 <p>The last item in the array is 0; the array is owned by the <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1443 <h2 id="ft_face_getvariantsofchar">FT_Face_GetVariantsOfChar<a class="headerlink" href="#ft_face_getvariantsofchar" title="Permanent link">¶</a></h2>
1444 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1445 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1446 <b>FT_Face_GetVariantsOfChar</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
1447 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> charcode );
1450 <p>Return a zero-terminated list of Unicode variation selectors found for the specified character code.</p>
1452 <table class="fields">
1453 <tr><td class="val" id="face">face</td><td class="desc">
1454 <p>A handle to the source face object.</p>
1456 <tr><td class="val" id="charcode">charcode</td><td class="desc">
1457 <p>The character codepoint in Unicode.</p>
1463 <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>
1466 <p>The last item in the array is 0; the array is owned by the <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1472 <h2 id="ft_face_getcharsofvariant">FT_Face_GetCharsOfVariant<a class="headerlink" href="#ft_face_getcharsofvariant" title="Permanent link">¶</a></h2>
1473 <p>Defined in FT_FREETYPE_H (freetype/freetype.h).</p>
1474 <div class = "codehilite"><pre><code> FT_EXPORT( <a href="ft2-basic_types.html#ft_uint32">FT_UInt32</a>* )
1475 <b>FT_Face_GetCharsOfVariant</b>( <a href="ft2-face_creation.html#ft_face">FT_Face</a> face,
1476 <a href="ft2-basic_types.html#ft_ulong">FT_ULong</a> variantSelector );
1479 <p>Return a zero-terminated list of Unicode character codes found for the specified variation selector.</p>
1481 <table class="fields">
1482 <tr><td class="val" id="face">face</td><td class="desc">
1483 <p>A handle to the source face object.</p>
1485 <tr><td class="val" id="variantselector">variantSelector</td><td class="desc">
1486 <p>The variation selector code point in Unicode.</p>
1492 <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>
1495 <p>The last item in the array is 0; the array is owned by the <code><a href="ft2-face_creation.html#ft_face">FT_Face</a></code> object but can be overwritten or released on the next call to a FreeType function.</p>
1514 <footer class="md-footer">
1516 <nav class="md-footer__inner md-grid" aria-label="Footer">
1519 <a href="ft2-other_api_data.html" class="md-footer__link md-footer__link--prev" aria-label="Previous: Other API Data" rel="prev">
1520 <div class="md-footer__button md-icon">
1521 <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 11h12z"/></svg>
1523 <div class="md-footer__title">
1524 <div class="md-ellipsis">
1525 <span class="md-footer__direction">
1535 <a href="ft2-color_management.html" class="md-footer__link md-footer__link--next" aria-label="Next: Glyph Color Management" rel="next">
1536 <div class="md-footer__title">
1537 <div class="md-ellipsis">
1538 <span class="md-footer__direction">
1541 Glyph Color Management
1544 <div class="md-footer__button md-icon">
1545 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
1551 <div class="md-footer-meta md-typeset">
1552 <div class="md-footer-meta__inner md-grid">
1553 <div class="md-footer-copyright">
1555 <div class="md-footer-copyright__highlight">
1556 Copyright 2023 <a href = "https://www.freetype.org/license.html">The FreeType Project</a>.
1560 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
1571 <div class="md-dialog" data-md-component="dialog">
1572 <div class="md-dialog__inner md-typeset"></div>
1574 <script id="__config" type="application/json">{"base": ".", "features": [], "search": "assets/javascripts/workers/search.477d984a.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "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.title": "Select version"}, "version": null}</script>
1577 <script src="assets/javascripts/bundle.82b56eb2.min.js"></script>
1579 <script src="javascripts/extra.js"></script>