/modules/freetype2/docs/reference/ft2-base_interface.html
http://github.com/zpao/v8monkey · HTML · 3598 lines · 3272 code · 326 blank · 0 comment · 0 complexity · 0c236e51864a00e5500e3f5032ef5146 MD5 · raw file
Large files are truncated click here to view the full file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>FreeType-2.4.3 API Reference</title>
- <style type="text/css">
- body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
- color: #000000;
- background: #FFFFFF; }
- p { text-align: justify; }
- h1 { text-align: center; }
- li { text-align: justify; }
- td { padding: 0 0.5em 0 0.5em; }
- td.left { padding: 0 0.5em 0 0.5em;
- text-align: left; }
- a:link { color: #0000EF; }
- a:visited { color: #51188E; }
- a:hover { color: #FF0000; }
- span.keyword { font-family: monospace;
- text-align: left;
- white-space: pre;
- color: darkblue; }
- pre.colored { color: blue; }
- ul.empty { list-style-type: none; }
- </style>
- </head>
- <body>
- <table align=center><tr><td><font size=-1>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-1>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <center><h1>FreeType-2.4.3 API Reference</h1></center>
- <center><h1>
- Base Interface
- </h1></center>
- <h2>Synopsis</h2>
- <table align=center cellspacing=5 cellpadding=0 border=0>
- <tr><td></td><td><a href="#FT_Library">FT_Library</a></td><td></td><td><a href="#FT_IS_TRICKY">FT_IS_TRICKY</a></td><td></td><td><a href="#FT_Load_Char">FT_Load_Char</a></td></tr>
- <tr><td></td><td><a href="#FT_Face">FT_Face</a></td><td></td><td><a href="#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_XXX</a></td><td></td><td><a href="#FT_LOAD_XXX">FT_LOAD_XXX</a></td></tr>
- <tr><td></td><td><a href="#FT_Size">FT_Size</a></td><td></td><td><a href="#FT_Size_Internal">FT_Size_Internal</a></td><td></td><td><a href="#FT_LOAD_TARGET_XXX">FT_LOAD_TARGET_XXX</a></td></tr>
- <tr><td></td><td><a href="#FT_GlyphSlot">FT_GlyphSlot</a></td><td></td><td><a href="#FT_Size_Metrics">FT_Size_Metrics</a></td><td></td><td><a href="#FT_LOAD_TARGET_MODE">FT_LOAD_TARGET_MODE</a></td></tr>
- <tr><td></td><td><a href="#FT_CharMap">FT_CharMap</a></td><td></td><td><a href="#FT_SizeRec">FT_SizeRec</a></td><td></td><td><a href="#FT_Set_Transform">FT_Set_Transform</a></td></tr>
- <tr><td></td><td><a href="#FT_Encoding">FT_Encoding</a></td><td></td><td><a href="#FT_SubGlyph">FT_SubGlyph</a></td><td></td><td><a href="#FT_Render_Mode">FT_Render_Mode</a></td></tr>
- <tr><td></td><td><a href="#FT_Glyph_Metrics">FT_Glyph_Metrics</a></td><td></td><td><a href="#FT_Slot_Internal">FT_Slot_Internal</a></td><td></td><td><a href="#ft_render_mode_xxx">ft_render_mode_xxx</a></td></tr>
- <tr><td></td><td><a href="#FT_Bitmap_Size">FT_Bitmap_Size</a></td><td></td><td><a href="#FT_GlyphSlotRec">FT_GlyphSlotRec</a></td><td></td><td><a href="#FT_Render_Glyph">FT_Render_Glyph</a></td></tr>
- <tr><td></td><td><a href="#FT_Module">FT_Module</a></td><td></td><td><a href="#FT_Init_FreeType">FT_Init_FreeType</a></td><td></td><td><a href="#FT_Kerning_Mode">FT_Kerning_Mode</a></td></tr>
- <tr><td></td><td><a href="#FT_Driver">FT_Driver</a></td><td></td><td><a href="#FT_Done_FreeType">FT_Done_FreeType</a></td><td></td><td><a href="#ft_kerning_default">ft_kerning_default</a></td></tr>
- <tr><td></td><td><a href="#FT_Renderer">FT_Renderer</a></td><td></td><td><a href="#FT_OPEN_XXX">FT_OPEN_XXX</a></td><td></td><td><a href="#ft_kerning_unfitted">ft_kerning_unfitted</a></td></tr>
- <tr><td></td><td><a href="#FT_ENC_TAG">FT_ENC_TAG</a></td><td></td><td><a href="#FT_Parameter">FT_Parameter</a></td><td></td><td><a href="#ft_kerning_unscaled">ft_kerning_unscaled</a></td></tr>
- <tr><td></td><td><a href="#ft_encoding_xxx">ft_encoding_xxx</a></td><td></td><td><a href="#FT_Open_Args">FT_Open_Args</a></td><td></td><td><a href="#FT_Get_Kerning">FT_Get_Kerning</a></td></tr>
- <tr><td></td><td><a href="#FT_CharMapRec">FT_CharMapRec</a></td><td></td><td><a href="#FT_New_Face">FT_New_Face</a></td><td></td><td><a href="#FT_Get_Track_Kerning">FT_Get_Track_Kerning</a></td></tr>
- <tr><td></td><td><a href="#FT_Face_Internal">FT_Face_Internal</a></td><td></td><td><a href="#FT_New_Memory_Face">FT_New_Memory_Face</a></td><td></td><td><a href="#FT_Get_Glyph_Name">FT_Get_Glyph_Name</a></td></tr>
- <tr><td></td><td><a href="#FT_FaceRec">FT_FaceRec</a></td><td></td><td><a href="#FT_Open_Face">FT_Open_Face</a></td><td></td><td><a href="#FT_Get_Postscript_Name">FT_Get_Postscript_Name</a></td></tr>
- <tr><td></td><td><a href="#FT_FACE_FLAG_XXX">FT_FACE_FLAG_XXX</a></td><td></td><td><a href="#FT_Attach_File">FT_Attach_File</a></td><td></td><td><a href="#FT_Select_Charmap">FT_Select_Charmap</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_HORIZONTAL">FT_HAS_HORIZONTAL</a></td><td></td><td><a href="#FT_Attach_Stream">FT_Attach_Stream</a></td><td></td><td><a href="#FT_Set_Charmap">FT_Set_Charmap</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_VERTICAL">FT_HAS_VERTICAL</a></td><td></td><td><a href="#FT_Reference_Face">FT_Reference_Face</a></td><td></td><td><a href="#FT_Get_Charmap_Index">FT_Get_Charmap_Index</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_KERNING">FT_HAS_KERNING</a></td><td></td><td><a href="#FT_Done_Face">FT_Done_Face</a></td><td></td><td><a href="#FT_Get_Char_Index">FT_Get_Char_Index</a></td></tr>
- <tr><td></td><td><a href="#FT_IS_SCALABLE">FT_IS_SCALABLE</a></td><td></td><td><a href="#FT_Select_Size">FT_Select_Size</a></td><td></td><td><a href="#FT_Get_First_Char">FT_Get_First_Char</a></td></tr>
- <tr><td></td><td><a href="#FT_IS_SFNT">FT_IS_SFNT</a></td><td></td><td><a href="#FT_Size_Request_Type">FT_Size_Request_Type</a></td><td></td><td><a href="#FT_Get_Next_Char">FT_Get_Next_Char</a></td></tr>
- <tr><td></td><td><a href="#FT_IS_FIXED_WIDTH">FT_IS_FIXED_WIDTH</a></td><td></td><td><a href="#FT_Size_RequestRec">FT_Size_RequestRec</a></td><td></td><td><a href="#FT_Get_Name_Index">FT_Get_Name_Index</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_FIXED_SIZES">FT_HAS_FIXED_SIZES</a></td><td></td><td><a href="#FT_Size_Request">FT_Size_Request</a></td><td></td><td><a href="#FT_SUBGLYPH_FLAG_XXX">FT_SUBGLYPH_FLAG_XXX</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_FAST_GLYPHS">FT_HAS_FAST_GLYPHS</a></td><td></td><td><a href="#FT_Request_Size">FT_Request_Size</a></td><td></td><td><a href="#FT_Get_SubGlyph_Info">FT_Get_SubGlyph_Info</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_GLYPH_NAMES">FT_HAS_GLYPH_NAMES</a></td><td></td><td><a href="#FT_Set_Char_Size">FT_Set_Char_Size</a></td><td></td><td><a href="#FT_FSTYPE_XXX">FT_FSTYPE_XXX</a></td></tr>
- <tr><td></td><td><a href="#FT_HAS_MULTIPLE_MASTERS">FT_HAS_MULTIPLE_MASTERS</a></td><td></td><td><a href="#FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a></td><td></td><td><a href="#FT_Get_FSType_Flags">FT_Get_FSType_Flags</a></td></tr>
- <tr><td></td><td><a href="#FT_IS_CID_KEYED">FT_IS_CID_KEYED</a></td><td></td><td><a href="#FT_Load_Glyph">FT_Load_Glyph</a></td><td></td><td></td></tr>
- </table><br><br>
- <table align=center width="87%"><tr><td>
- <p>This section describes the public high-level API of FreeType 2.</p>
- </td></tr></table><br>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Library">FT_Library</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_LibraryRec_ *<b>FT_Library</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a FreeType library instance. Each ‘library’ is completely independent from the others; it is the ‘root’ of a set of objects like fonts, faces, sizes, etc.</p>
- <p>It also embeds a memory manager (see <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>), as well as a scan-line converter object (see <a href="ft2-raster.html#FT_Raster">FT_Raster</a>).</p>
- <p>For multi-threading applications each thread should have its own FT_Library object.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Library objects are normally created by <a href="ft2-base_interface.html#FT_Init_FreeType">FT_Init_FreeType</a>, and destroyed with <a href="ft2-base_interface.html#FT_Done_FreeType">FT_Done_FreeType</a>.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Face">FT_Face</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_FaceRec_* <b>FT_Face</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given typographic face object. A face object models a given typeface, in a given style.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Each face object also owns a single <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a> object, as well as one or more <a href="ft2-base_interface.html#FT_Size">FT_Size</a> objects.</p>
- <p>Use <a href="ft2-base_interface.html#FT_New_Face">FT_New_Face</a> or <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a> to create a new face object from a given filepathname or a custom input stream.</p>
- <p>Use <a href="ft2-base_interface.html#FT_Done_Face">FT_Done_Face</a> to destroy it (along with its slot and sizes).</p>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
- <p>See <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a> for the publicly accessible fields of a given face object.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Size">FT_Size</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_SizeRec_* <b>FT_Size</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to an object used to model a face scaled to a given character size.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Each <a href="ft2-base_interface.html#FT_Face">FT_Face</a> has an <i>active</i> <a href="ft2-base_interface.html#FT_Size">FT_Size</a> object that is used by functions like <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> to determine the scaling transformation which is used to load and hint glyphs and metrics.</p>
- <p>You can use <a href="ft2-base_interface.html#FT_Set_Char_Size">FT_Set_Char_Size</a>, <a href="ft2-base_interface.html#FT_Set_Pixel_Sizes">FT_Set_Pixel_Sizes</a>, <a href="ft2-base_interface.html#FT_Request_Size">FT_Request_Size</a> or even <a href="ft2-base_interface.html#FT_Select_Size">FT_Select_Size</a> to change the content (i.e., the scaling values) of the active <a href="ft2-base_interface.html#FT_Size">FT_Size</a>.</p>
- <p>You can use <a href="ft2-sizes_management.html#FT_New_Size">FT_New_Size</a> to create additional size objects for a given <a href="ft2-base_interface.html#FT_Face">FT_Face</a>, but they won't be used by other functions until you activate it through <a href="ft2-sizes_management.html#FT_Activate_Size">FT_Activate_Size</a>. Only one size can be activated at any given time per face.</p>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
- <p>See <a href="ft2-base_interface.html#FT_SizeRec">FT_SizeRec</a> for the publicly accessible fields of a given size object.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_GlyphSlot">FT_GlyphSlot</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_GlyphSlotRec_* <b>FT_GlyphSlot</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given ‘glyph slot’. A slot is a container where it is possible to load any of the glyphs contained in its parent face.</p>
- <p>In other words, each time you call <a href="ft2-base_interface.html#FT_Load_Glyph">FT_Load_Glyph</a> or <a href="ft2-base_interface.html#FT_Load_Char">FT_Load_Char</a>, the slot's content is erased by the new glyph data, i.e., the glyph's metrics, its image (bitmap or outline), and other control information.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
- <p>See <a href="ft2-base_interface.html#FT_GlyphSlotRec">FT_GlyphSlotRec</a> for the publicly accessible glyph fields.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_CharMap">FT_CharMap</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_CharMapRec_* <b>FT_CharMap</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given character map. A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font.</p>
- <p>Each face object owns zero or more charmaps, but only one of them can be ‘active’ and used by <a href="ft2-base_interface.html#FT_Get_Char_Index">FT_Get_Char_Index</a> or <a href="ft2-base_interface.html#FT_Load_Char">FT_Load_Char</a>.</p>
- <p>The list of available charmaps in a face is available through the ‘face->num_charmaps’ and ‘face->charmaps’ fields of <a href="ft2-base_interface.html#FT_FaceRec">FT_FaceRec</a>.</p>
- <p>The currently active charmap is available as ‘face->charmap’. You should call <a href="ft2-base_interface.html#FT_Set_Charmap">FT_Set_Charmap</a> to change it.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>When a new face is created (either through <a href="ft2-base_interface.html#FT_New_Face">FT_New_Face</a> or <a href="ft2-base_interface.html#FT_Open_Face">FT_Open_Face</a>), the library looks for a Unicode charmap within the list and automatically activates it.</p>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>also</b></em></td></tr><tr><td>
- <p>See <a href="ft2-base_interface.html#FT_CharMapRec">FT_CharMapRec</a> for the publicly accessible fields of a given character map.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Encoding">FT_Encoding</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">enum</span> FT_Encoding_
- {
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_NONE</a>, 0, 0, 0, 0 ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SYMBOL</a>, 's', 'y', 'm', 'b' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_UNICODE</a>, 'u', 'n', 'i', 'c' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>, 's', 'j', 'i', 's' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>, 'g', 'b', ' ', ' ' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>, 'b', 'i', 'g', '5' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>, 'w', 'a', 'n', 's' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>, 'j', 'o', 'h', 'a' ),
- /* for backwards compatibility */
- <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SJIS</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>,
- <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_GB2312</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>,
- <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_BIG5</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>,
- <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_WANSUNG</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>,
- <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_JOHAB</a> = <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>,
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_STANDARD</a>, 'A', 'D', 'O', 'B' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_EXPERT</a>, 'A', 'D', 'B', 'E' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_CUSTOM</a>, 'A', 'D', 'B', 'C' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_LATIN_1</a>, 'l', 'a', 't', '1' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_OLD_LATIN_2</a>, 'l', 'a', 't', '2' ),
- <a href="ft2-base_interface.html#FT_ENC_TAG">FT_ENC_TAG</a>( <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_APPLE_ROMAN</a>, 'a', 'r', 'm', 'n' )
- } <b>FT_Encoding</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>An enumeration used to specify character sets supported by charmaps. Used in the <a href="ft2-base_interface.html#FT_Select_Charmap">FT_Select_Charmap</a> API function.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Despite the name, this enumeration lists specific character repertories (i.e., charsets), and not text encoding methods (e.g., UTF-8, UTF-16, etc.).</p>
- <p>Other encodings might be defined in the future.</p>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
- <p></p>
- <table cellpadding=3 border=0>
- <tr valign=top><td><b>FT_ENCODING_NONE</b></td><td>
- <p>The encoding value 0 is reserved.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_UNICODE</b></td><td>
- <p>Corresponds to the Unicode character set. This value covers all versions of the Unicode repertoire, including ASCII and Latin-1. Most fonts include a Unicode charmap, but not all of them.</p>
- <p>For example, if you want to access Unicode value U+1F028 (and the font contains it), use value 0x1F028 as the input value for <a href="ft2-base_interface.html#FT_Get_Char_Index">FT_Get_Char_Index</a>.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_SYMBOL</b></td><td>
- <p>Corresponds to the Microsoft Symbol encoding, used to encode mathematical symbols in the 32..255 character code range. For more information, see ‘http://www.ceviz.net/symbol.htm’.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_SJIS</b></td><td>
- <p>Corresponds to Japanese SJIS encoding. More info at at ‘http://langsupport.japanreference.com/encoding.shtml’. See note on multi-byte encodings below.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_GB2312</b></td><td>
- <p>Corresponds to an encoding system for Simplified Chinese as used used in mainland China.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_BIG5</b></td><td>
- <p>Corresponds to an encoding system for Traditional Chinese as used in Taiwan and Hong Kong.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_WANSUNG</b></td><td>
- <p>Corresponds to the Korean encoding system known as Wansung. For more information see ‘http://www.microsoft.com/typography/unicode/949.txt’.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_JOHAB</b></td><td>
- <p>The Korean standard character set (KS C 5601-1992), which corresponds to MS Windows code page 1361. This character set includes all possible Hangeul character combinations.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_LATIN_1</b></td></tr>
- <tr valign=top><td></td><td>
- <p>Corresponds to a Latin-1 encoding as defined in a Type 1 PostScript font. It is limited to 256 character codes.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_STANDARD</b></td></tr>
- <tr valign=top><td></td><td>
- <p>Corresponds to the Adobe Standard encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_EXPERT</b></td></tr>
- <tr valign=top><td></td><td>
- <p>Corresponds to the Adobe Expert encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_ADOBE_CUSTOM</b></td></tr>
- <tr valign=top><td></td><td>
- <p>Corresponds to a custom encoding, as found in Type 1, CFF, and OpenType/CFF fonts. It is limited to 256 character codes.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_APPLE_ROMAN</b></td></tr>
- <tr valign=top><td></td><td>
- <p>Corresponds to the 8-bit Apple roman encoding. Many TrueType and OpenType fonts contain a charmap for this encoding, since older versions of Mac OS are able to use it.</p>
- </td></tr>
- <tr valign=top><td colspan=0><b>FT_ENCODING_OLD_LATIN_2</b></td></tr>
- <tr valign=top><td></td><td>
- <p>This value is deprecated and was never used nor reported by FreeType. Don't use or test for it.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_SJIS</b></td><td>
- <p>Same as FT_ENCODING_SJIS. Deprecated.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_GB2312</b></td><td>
- <p>Same as FT_ENCODING_GB2312. Deprecated.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_BIG5</b></td><td>
- <p>Same as FT_ENCODING_BIG5. Deprecated.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_WANSUNG</b></td><td>
- <p>Same as FT_ENCODING_WANSUNG. Deprecated.</p>
- </td></tr>
- <tr valign=top><td><b>FT_ENCODING_MS_JOHAB</b></td><td>
- <p>Same as FT_ENCODING_JOHAB. Deprecated.</p>
- </td></tr>
- </table>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>By default, FreeType automatically synthesizes a Unicode charmap for PostScript fonts, using their glyph names dictionaries. However, it also reports the encodings defined explicitly in the font file, for the cases when they are needed, with the Adobe values as well.</p>
- <p>FT_ENCODING_NONE is set by the BDF and PCF drivers if the charmap is neither Unicode nor ISO-8859-1 (otherwise it is set to FT_ENCODING_UNICODE). Use <a href="ft2-bdf_fonts.html#FT_Get_BDF_Charset_ID">FT_Get_BDF_Charset_ID</a> to find out which encoding is really present. If, for example, the ‘cs_registry’ field is ‘KOI8’ and the ‘cs_encoding’ field is ‘R’, the font is encoded in KOI8-R.</p>
- <p>FT_ENCODING_NONE is always set (with a single exception) by the winfonts driver. Use <a href="ft2-winfnt_fonts.html#FT_Get_WinFNT_Header">FT_Get_WinFNT_Header</a> and examine the ‘charset’ field of the <a href="ft2-winfnt_fonts.html#FT_WinFNT_HeaderRec">FT_WinFNT_HeaderRec</a> structure to find out which encoding is really present. For example, <a href="ft2-winfnt_fonts.html#FT_WinFNT_ID_XXX">FT_WinFNT_ID_CP1251</a> (204) means Windows code page 1251 (for Russian).</p>
- <p>FT_ENCODING_NONE is set if ‘platform_id’ is <a href="ft2-truetype_tables.html#TT_PLATFORM_XXX">TT_PLATFORM_MACINTOSH</a> and ‘encoding_id’ is not <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ROMAN</a> (otherwise it is set to FT_ENCODING_APPLE_ROMAN).</p>
- <p>If ‘platform_id’ is <a href="ft2-truetype_tables.html#TT_PLATFORM_XXX">TT_PLATFORM_MACINTOSH</a>, use the function <a href="ft2-truetype_tables.html#FT_Get_CMap_Language_ID">FT_Get_CMap_Language_ID</a> to query the Mac language ID which may be needed to be able to distinguish Apple encoding variants. See</p>
- <p>http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT</p>
- <p>to get an idea how to do that. Basically, if the language ID is 0, don't use it, otherwise subtract 1 from the language ID. Then examine ‘encoding_id’. If, for example, ‘encoding_id’ is <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ROMAN</a> and the language ID (minus 1) is ‘TT_MAC_LANGID_GREEK’, it is the Greek encoding, not Roman. <a href="ft2-truetype_tables.html#TT_MAC_ID_XXX">TT_MAC_ID_ARABIC</a> with ‘TT_MAC_LANGID_FARSI’ means the Farsi variant the Arabic encoding.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Glyph_Metrics">FT_Glyph_Metrics</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Glyph_Metrics_
- {
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> width;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> height;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> horiBearingX;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> horiBearingY;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> horiAdvance;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> vertBearingX;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> vertBearingY;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> vertAdvance;
- } <b>FT_Glyph_Metrics</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A structure used to model the metrics of a single glyph. The values are expressed in 26.6 fractional pixel format; if the flag <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_SCALE</a> has been used while loading the glyph, values are expressed in font units instead.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
- <p></p>
- <table cellpadding=3 border=0>
- <tr valign=top><td><b>width</b></td><td>
- <p>The glyph's width.</p>
- </td></tr>
- <tr valign=top><td><b>height</b></td><td>
- <p>The glyph's height.</p>
- </td></tr>
- <tr valign=top><td><b>horiBearingX</b></td><td>
- <p>Left side bearing for horizontal layout.</p>
- </td></tr>
- <tr valign=top><td><b>horiBearingY</b></td><td>
- <p>Top side bearing for horizontal layout.</p>
- </td></tr>
- <tr valign=top><td><b>horiAdvance</b></td><td>
- <p>Advance width for horizontal layout.</p>
- </td></tr>
- <tr valign=top><td><b>vertBearingX</b></td><td>
- <p>Left side bearing for vertical layout.</p>
- </td></tr>
- <tr valign=top><td><b>vertBearingY</b></td><td>
- <p>Top side bearing for vertical layout.</p>
- </td></tr>
- <tr valign=top><td><b>vertAdvance</b></td><td>
- <p>Advance height for vertical layout.</p>
- </td></tr>
- </table>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>If not disabled with <a href="ft2-base_interface.html#FT_LOAD_XXX">FT_LOAD_NO_HINTING</a>, the values represent dimensions of the hinted glyph (in case hinting is applicable).</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Bitmap_Size">FT_Bitmap_Size</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Bitmap_Size_
- {
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> height;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> width;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> size;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> x_ppem;
- <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a> y_ppem;
- } <b>FT_Bitmap_Size</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the ‘available_sizes’ field of <a href="ft2-base_interface.html#FT_Face">FT_Face</a>.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
- <p></p>
- <table cellpadding=3 border=0>
- <tr valign=top><td><b>height</b></td><td>
- <p>The vertical distance, in pixels, between two consecutive baselines. It is always positive.</p>
- </td></tr>
- <tr valign=top><td><b>width</b></td><td>
- <p>The average width, in pixels, of all glyphs in the strike.</p>
- </td></tr>
- <tr valign=top><td><b>size</b></td><td>
- <p>The nominal size of the strike in 26.6 fractional points. This field is not very useful.</p>
- </td></tr>
- <tr valign=top><td><b>x_ppem</b></td><td>
- <p>The horizontal ppem (nominal width) in 26.6 fractional pixels.</p>
- </td></tr>
- <tr valign=top><td><b>y_ppem</b></td><td>
- <p>The vertical ppem (nominal height) in 26.6 fractional pixels.</p>
- </td></tr>
- </table>
- </td></tr></table>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Windows FNT: The nominal size given in a FNT font is not reliable. Thus when the driver finds it incorrect, it sets ‘size’ to some calculated values and sets ‘x_ppem’ and ‘y_ppem’ to the pixel width and height given in the font, respectively.</p>
- <p>TrueType embedded bitmaps: ‘size’, ‘width’, and ‘height’ values are not contained in the bitmap strike itself. They are computed from the global font parameters.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Module">FT_Module</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_ModuleRec_* <b>FT_Module</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given FreeType module object. Each module can be a font driver, a renderer, or anything else that provides services to the formers.</p>
- </td></tr></table><br>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Driver">FT_Driver</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_DriverRec_* <b>FT_Driver</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given FreeType font driver object. Each font driver is a special module capable of creating faces from font files.</p>
- </td></tr></table><br>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Renderer">FT_Renderer</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_RendererRec_* <b>FT_Renderer</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>A handle to a given FreeType renderer. A renderer is a special module in charge of converting a glyph image to a bitmap, when necessary. Each renderer supports a given glyph image format, and one or more target surface depths.</p>
- </td></tr></table><br>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_ENC_TAG">FT_ENC_TAG</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- #ifndef <b>FT_ENC_TAG</b>
- #define <b>FT_ENC_TAG</b>( value, a, b, c, d ) \
- value = ( ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(a) << 24 ) | \
- ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(b) << 16 ) | \
- ( (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(c) << 8 ) | \
- (<a href="ft2-basic_types.html#FT_UInt32">FT_UInt32</a>)(d) )
- #endif /* <b>FT_ENC_TAG</b> */
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>This macro converts four-letter tags into an unsigned long. It is used to define ‘encoding’ identifiers (see <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a>).</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
- <p>Since many 16-bit compilers don't like 32-bit enumerations, you should redefine this macro in case of problems to something like this:</p>
- <pre class="colored">
- #define FT_ENC_TAG( value, a, b, c, d ) value
- </pre>
- <p>to get a simple enumeration without assigning special numbers.</p>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="ft_encoding_xxx">ft_encoding_xxx</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- #define ft_encoding_none <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_NONE</a>
- #define ft_encoding_unicode <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_UNICODE</a>
- #define ft_encoding_symbol <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_MS_SYMBOL</a>
- #define ft_encoding_latin_1 <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_LATIN_1</a>
- #define ft_encoding_latin_2 <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_OLD_LATIN_2</a>
- #define ft_encoding_sjis <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_SJIS</a>
- #define ft_encoding_gb2312 <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_GB2312</a>
- #define ft_encoding_big5 <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_BIG5</a>
- #define ft_encoding_wansung <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_WANSUNG</a>
- #define ft_encoding_johab <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_JOHAB</a>
- #define ft_encoding_adobe_standard <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_STANDARD</a>
- #define ft_encoding_adobe_expert <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_EXPERT</a>
- #define ft_encoding_adobe_custom <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_ADOBE_CUSTOM</a>
- #define ft_encoding_apple_roman <a href="ft2-base_interface.html#FT_Encoding">FT_ENCODING_APPLE_ROMAN</a>
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>These constants are deprecated; use the corresponding <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a> values instead.</p>
- </td></tr></table><br>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_CharMapRec">FT_CharMapRec</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_CharMapRec_
- {
- <a href="ft2-base_interface.html#FT_Face">FT_Face</a> face;
- <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a> encoding;
- <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a> platform_id;
- <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a> encoding_id;
- } <b>FT_CharMapRec</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>The base charmap structure.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
- <p></p>
- <table cellpadding=3 border=0>
- <tr valign=top><td><b>face</b></td><td>
- <p>A handle to the parent face object.</p>
- </td></tr>
- <tr valign=top><td><b>encoding</b></td><td>
- <p>An <a href="ft2-base_interface.html#FT_Encoding">FT_Encoding</a> tag identifying the charmap. Use this with <a href="ft2-base_interface.html#FT_Select_Charmap">FT_Select_Charmap</a>.</p>
- </td></tr>
- <tr valign=top><td><b>platform_id</b></td><td>
- <p>An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and should be emulated for other formats.</p>
- </td></tr>
- <tr valign=top><td><b>encoding_id</b></td><td>
- <p>A platform specific encoding number. This also comes from the TrueType specification and should be emulated similarly.</p>
- </td></tr>
- </table>
- </td></tr></table>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_Face_Internal">FT_Face_Internal</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_Face_InternalRec_* <b>FT_Face_Internal</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>An opaque handle to an ‘FT_Face_InternalRec’ structure, used to model private data of a given <a href="ft2-base_interface.html#FT_Face">FT_Face</a> object.</p>
- <p>This structure might change between releases of FreeType 2 and is not generally available to client applications.</p>
- </td></tr></table><br>
- </td></tr></table>
- <hr width="75%">
- <table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
- <td width="100%"></td>
- <td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
- <table align=center width="75%"><tr><td>
- <h4><a name="FT_FaceRec">FT_FaceRec</a></h4>
- <table align=center width="87%"><tr><td>
- Defined in FT_FREETYPE_H (freetype/freetype.h).
- </td></tr></table><br>
- <table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
- <span class="keyword">typedef</span> <span class="keyword">struct</span> FT_FaceRec_
- {
- <a href="ft2-basic_types.html#FT_Long">FT_Long</a> num_faces;
- <a href="ft2-basic_types.html#FT_Long">FT_Long</a> face_index;
- <a href="ft2-basic_types.html#FT_Long">FT_Long</a> face_flags;
- <a href="ft2-basic_types.html#FT_Long">FT_Long</a> style_flags;
- <a href="ft2-basic_types.html#FT_Long">FT_Long</a> num_glyphs;
- <a href="ft2-basic_types.html#FT_String">FT_String</a>* family_name;
- <a href="ft2-basic_types.html#FT_String">FT_String</a>* style_name;
- <a href="ft2-basic_types.html#FT_Int">FT_Int</a> num_fixed_sizes;
- <a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a>* available_sizes;
- <a href="ft2-basic_types.html#FT_Int">FT_Int</a> num_charmaps;
- <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a>* charmaps;
- <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a> generic;
- /*# The following member variables (down to `underline_thickness') */
- /*# are only relevant to scalable outlines; cf. @<a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a> */
- /*# for bitmap fonts. */
- <a href="ft2-basic_types.html#FT_BBox">FT_BBox</a> bbox;
- <a href="ft2-basic_types.html#FT_UShort">FT_UShort</a> units_per_EM;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> ascender;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> descender;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> height;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> max_advance_width;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> max_advance_height;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> underline_position;
- <a href="ft2-basic_types.html#FT_Short">FT_Short</a> underline_thickness;
- <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a> glyph;
- <a href="ft2-base_interface.html#FT_Size">FT_Size</a> size;
- <a href="ft2-base_interface.html#FT_CharMap">FT_CharMap</a> charmap;
- /*@private begin */
- <a href="ft2-base_interface.html#FT_Driver">FT_Driver</a> driver;
- <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a> memory;
- <a href="ft2-system_interface.html#FT_Stream">FT_Stream</a> stream;
- <a href="ft2-list_processing.html#FT_ListRec">FT_ListRec</a> sizes_list;
- <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a> autohint;
- <span class="keyword">void</span>* extensions;
- <a href="ft2-base_interface.html#FT_Face_Internal">FT_Face_Internal</a> internal;
- /*@private end */
- } <b>FT_FaceRec</b>;
- </pre></table><br>
- <table align=center width="87%"><tr><td>
- <p>FreeType root face class structure. A face object models a typeface in a font file.</p>
- </td></tr></table><br>
- <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
- <p></p>
- <table cellpadding=3 border=0>
- <tr valign=top><td><b>num_faces</b></td><td>
- <p>The number of faces in the font file. Some font formats can have multiple faces in a font file.</p>
- </td></tr>
- <tr valign=top><td><b>face_index</b></td><td>
- <p>The index of the face in the font file. It is set to 0 if there is only one face in the font file.</p>
- </td></tr>
- <tr valign=top><td><b>face_flags</b></td><td>
- <p>A set of bit flags that give important information about the face; see <a href="ft2-base_interface.html#FT_FACE_FLAG_XXX">FT_FACE_FLAG_XXX</a> for the details.</p>
- </td></tr>
- <tr valign=top><td><b>style_flags</b></td><td>
- <p>A set of bit flags indicating the style of the face; see <a href="ft2-base_interface.html#FT_STYLE_FLAG_XXX">FT_STYLE_FLAG_XXX</a> for the details.</p>
- </td></tr>
- <tr valign=top><td><b>num_glyphs</b></td><td>
- <p>The number of glyphs in the face. If the face is scalable and has sbits (see ‘num_fixed_sizes’), it is set to the number of outline glyphs.</p>
- <p>For CID-keyed fonts, this value gives the highest CID used in the font.</p>
- </td></tr>
- <tr valign=top><td><b>family_name</b></td><td>
- <p>The face's family name. This is an ASCII string, usually in English, which describes the typeface's family (like ‘Times New Roman’, ‘Bodoni’, ‘Garamond’, etc). This is a least common denominator used to list fonts. Some formats (TrueType & OpenType) provide localized and Unicode versions of this string. Applications should use the format specific interface to access them. Can be NULL (e.g., in fonts embedded in a PDF file).</p>
- </td></tr>
- <tr valign=top><td><b>style_name</b></td><td>
- <p>The face's style name. This is an ASCII string, usually in English, which describes the typeface's style (like ‘Italic’, ‘Bold’, ‘Condensed’, etc). Not all font formats provide a style name, so this field is optional, and can be set to NULL. As for ‘family_name’, some formats provide localized and Unicode versions of this string. Applications should use the format specific interface to access them.</p>
- </td></tr>
- <tr valign=top><td><b>num_fixed_sizes</b></td><td>
- <p>The number of bitmap strikes in the face. Even if the face is scalable, there might still be bitmap strikes, which are called ‘sbits’ in that case.</p>
- </td></tr>
- <tr valign=top><td><b>available_sizes</b></td><td>
- <p>An array of <a href="ft2-base_interface.html#FT_Bitmap_Size">FT_Bitmap_Size</a> for all bitmap strikes in the face. It is set to NULL if there is no bitmap strike.</p>
- </td></tr>
- <tr valign=top><td><b>num_charmaps</b></td><td>
- <p>The number of charmaps in the face.</p>
- </td></tr>
- <tr valign=top><td><b>charmaps</b></td><td>
- <p>An array of the charmaps of the face.</p>
- </td></tr>
- <tr valign=top><td><b>generic</b></td><td>
- <p>A field reserved for client uses. See the <a href="ft2-basic_types.html#FT_Generic">FT_Generic</a> type description.</p>
- </td></tr>
- <tr valign=top><td><b>bbox</b></td><td>
- <p>The font bounding box. Coordinates are expressed in font units (see ‘units_per_EM’). The box is large enough to contain any glyph from the font. Thus, ‘bbox.yMax’ can be seen as the ‘maximal ascender’, and ‘bbox.yMin’ as the ‘minimal descender’. Only relevant for scalable formats.</p>
- <p>Note that the bounding box might be off by (at least) one pixel for hinted fonts. See <a href="ft2-base_interface.html#FT_Size_Metrics">FT_Size_Metrics</a> for further discussion.</p>
- </td></tr>
- <tr valign=top><td><b>units_per_EM</b></td><td>
- <p>The number of font units per EM square for this face. This is typically 2048 for TrueType fonts, and 1000 for Type 1 fonts. Only relevant for scalable formats.</p>
- </td></tr>
- <tr valign=top><td><b>ascender</b></td><td>
- <p>The typographic ascender of the face, expressed in font units. For font formats not having this information, it is set to ‘bbox.yMax’. Only relevant for scalable formats.</p>
- </td></tr>
- <tr valign=top><td><b>descender</b></td><td>
- <p>The typographic descender of the face, expressed in font units. For font formats not having t…