?? pango-opentype-font-handling.html
字號:
>gulong</a> <em class="structfield"><code>property_bit</code></em>;</span></td><td>the property bit to use for this feature. See <a href="pango-OpenType-Font-Handling.html#pango-ot-ruleset-add-feature"><code class="function">pango_ot_ruleset_add_feature()</code></a> for details.</td></tr></tbody></table></div><p class="since">Since 1.18</p></div><hr><div class="refsect2" lang="en"><a name="id3262358"></a><h3><a name="PANGO-OT-TAG-MAKE:CAPS"></a>PANGO_OT_TAG_MAKE()</h3><a class="indexterm" name="id3262371"></a><pre class="programlisting">#define PANGO_OT_TAG_MAKE(c1,c2,c3,c4) ((PangoOTTag) FT_MAKE_TAG (c1, c2, c3, c4))</pre><p>Creates a <a href="pango-OpenType-Font-Handling.html#PangoOTTag"><span class="type">PangoOTTag</span></a> from four characters. This is similar andcompatible with the <code class="function"><code class="function">FT_MAKE_TAG()</code></code> macro fromFreeType.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>c1</code></em> :</span></td><td>First character.</td></tr><tr><td><span class="term"><em class="parameter"><code>c2</code></em> :</span></td><td>Second character.</td></tr><tr><td><span class="term"><em class="parameter"><code>c3</code></em> :</span></td><td>Third character.</td></tr><tr><td><span class="term"><em class="parameter"><code>c4</code></em> :</span></td><td>Fourth character.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3262471"></a><h3><a name="PANGO-OT-TAG-MAKE-FROM-STRING:CAPS"></a>PANGO_OT_TAG_MAKE_FROM_STRING()</h3><a class="indexterm" name="id3262485"></a><pre class="programlisting">#define PANGO_OT_TAG_MAKE_FROM_STRING(s)</pre><p>Creates a <a href="pango-OpenType-Font-Handling.html#PangoOTTag"><span class="type">PangoOTTag</span></a> from a string. The string should be at leastfour characters long (pad with space characters if needed), and neednot be nul-terminated. This is a convenience wrapper around<a href="pango-OpenType-Font-Handling.html#PANGO-OT-TAG-MAKE:CAPS"><code class="function">PANGO_OT_TAG_MAKE()</code></a>, but cannot be used in certain situations, forexample, as a switch expression, as it dereferences pointers.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>s</code></em> :</span></td><td>The string representation of the tag.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3262544"></a><h3><a name="PANGO-OT-ALL-GLYPHS:CAPS"></a>PANGO_OT_ALL_GLYPHS</h3><a class="indexterm" name="id3262559"></a><pre class="programlisting">#define PANGO_OT_ALL_GLYPHS ((guint) 0xFFFF)</pre><p>This is used as the property bit in <a href="pango-OpenType-Font-Handling.html#pango-ot-ruleset-add-feature"><code class="function">pango_ot_ruleset_add_feature()</code></a> when afeature should be applied to all glyphs.</p><p class="since">Since 1.16</p></div><hr><div class="refsect2" lang="en"><a name="id3262595"></a><h3><a name="PANGO-OT-NO-FEATURE:CAPS"></a>PANGO_OT_NO_FEATURE</h3><a class="indexterm" name="id3262610"></a><pre class="programlisting">#define PANGO_OT_NO_FEATURE ((guint) 0xFFFF)</pre><p>This is used as a feature index that represent no feature, that is, should beskipped. It may be returned as feature index by <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-feature"><code class="function">pango_ot_info_find_feature()</code></a>if the feature is not found, and <code class="function">pango_ot_rulset_add_feature()</code> functionautomatically skips this value, so no special handling is required by theuser.</p><p class="since">Since 1.18</p></div><hr><div class="refsect2" lang="en"><a name="id3262661"></a><h3><a name="PANGO-OT-NO-SCRIPT:CAPS"></a>PANGO_OT_NO_SCRIPT</h3><a class="indexterm" name="id3262676"></a><pre class="programlisting">#define PANGO_OT_NO_SCRIPT ((guint) 0xFFFF)</pre><p>This is used as a script index that represent no script, that is, when therequested script was not found, and a default ('DFLT') script was not foundeither. It may be returned as script index by <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-script"><code class="function">pango_ot_info_find_script()</code></a>if the script or a default script are not found, all other functionstaking a script index essentially return if the input script index isthis value, so no special handling is required by the user.</p><p class="since">Since 1.18</p></div><hr><div class="refsect2" lang="en"><a name="id3262716"></a><h3><a name="PANGO-OT-DEFAULT-LANGUAGE:CAPS"></a>PANGO_OT_DEFAULT_LANGUAGE</h3><a class="indexterm" name="id3262733"></a><pre class="programlisting">#define PANGO_OT_DEFAULT_LANGUAGE ((guint) 0xFFFF)</pre><p>This is used as the language index in <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-feature"><code class="function">pango_ot_info_find_feature()</code></a> whenthe default language system of the script is desired.It is also returned by <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-language"><code class="function">pango_ot_info_find_language()</code></a> if the requested languageis not found, or the requested language tag was PANGO_OT_TAG_DEFAULT_LANGUAGE.The end result is that one can always call <a href="pango-OpenType-Font-Handling.html#pango-ot-tag-from-language"><code class="function">pango_ot_tag_from_language()</code></a>followed by <a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-language"><code class="function">pango_ot_info_find_language()</code></a> and pass the result to<a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-feature"><code class="function">pango_ot_info_find_feature()</code></a> without having to worry about falling back todefault language system explicitly.</p><p class="since">Since 1.16</p></div><hr><div class="refsect2" lang="en"><a name="id3262818"></a><h3><a name="PANGO-OT-TAG-DEFAULT-LANGUAGE:CAPS"></a>PANGO_OT_TAG_DEFAULT_LANGUAGE</h3><a class="indexterm" name="id3262833"></a><pre class="programlisting">#define PANGO_OT_TAG_DEFAULT_LANGUAGE PANGO_OT_TAG_MAKE ('d', 'f', 'l', 't')</pre><p>This is a <a href="pango-OpenType-Font-Handling.html#PangoOTTag"><span class="type">PangoOTTag</span></a> representing a special language tag 'dflt'. It isreturned as language tag by <a href="pango-OpenType-Font-Handling.html#pango-ot-tag-from-language"><code class="function">pango_ot_tag_from_language()</code></a> if the requestedlanguage is not found. It is safe to pass this value to<a href="pango-OpenType-Font-Handling.html#pango-ot-info-find-language"><code class="function">pango_ot_info_find_language()</code></a> as that function falls back to returning defaultlanguage-system if the requested language tag is not found.</p><p class="since">Since 1.18</p></div><hr><div class="refsect2" lang="en"><a name="id3262892"></a><h3><a name="PANGO-OT-TAG-DEFAULT-SCRIPT:CAPS"></a>PANGO_OT_TAG_DEFAULT_SCRIPT</h3><a class="indexterm" name="id3262908"></a><pre class="programlisting">#define PANGO_OT_TAG_DEFAULT_SCRIPT PANGO_OT_TAG_MAKE ('D', 'F', 'L', 'T')</pre><p>This is a <a href="pango-OpenType-Font-Handling.html#PangoOTTag"><span class="type">PangoOTTag</span></a> representing the special script tag 'DFLT'. It isreturned as script tag by <a href="pango-OpenType-Font-Handling.html#pango-ot-tag-from-script"><code class="function">pango_ot_tag_from_script()</code></a> if the requested scriptis not found.</p><p class="since">Since 1.18</p></div><hr><div class="refsect2" lang="en"><a name="id3262952"></a><h3><a name="pango-ot-info-get"></a>pango_ot_info_get ()</h3><a class="indexterm" name="id3262968"></a><pre class="programlisting"><a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a>* pango_ot_info_get (FT_Face face);</pre><p>Returns the <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a> structure for the given FreeType font.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>face</code></em> :</span></td><td> a <span class="type">FT_Face</span>.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a> for <em class="parameter"><code>face</code></em>. This object will havethe same lifetime as <em class="parameter"><code>face</code></em>.</td></tr></tbody></table></div><p class="since">Since 1.2</p></div><hr><div class="refsect2" lang="en"><a name="id3263067"></a><h3><a name="pango-ot-info-find-script"></a>pango_ot_info_find_script ()</h3><a class="indexterm" name="id3263080"></a><pre class="programlisting"><ahref="../glib/glib-Basic-Types.html#gboolean">gboolean</a> pango_ot_info_find_script (<a href="pango-OpenType-Font-Handling.html#PangoOTInfo">PangoOTInfo</a> *info, <a href="pango-OpenType-Font-Handling.html#PangoOTTableType">PangoOTTableType</a> table_type, <a href="pango-OpenType-Font-Handling.html#PangoOTTag">PangoOTTag</a> script_tag, <ahref="../glib/glib-Basic-Types.html#guint">guint</a> *script_index);</pre><p>Finds the index of a script. If not found, tries to find the 'DFLT'and then 'dflt' scripts and return the index of that in <em class="parameter"><code>script_index</code></em>.If none of those is found either, <a href="pango-OpenType-Font-Handling.html#PANGO-OT-NO-SCRIPT:CAPS"><code class="literal">PANGO_OT_NO_SCRIPT</code></a> is placed in<em class="parameter"><code>script_index</code></em>.</p><p>All other functions taking an input script_index parameter knowhow to handle <a href="pango-OpenType-Font-Handling.html#PANGO-OT-NO-SCRIPT:CAPS"><code class="literal">PANGO_OT_NO_SCRIPT</code></a>, so one can ignore the returnvalue of this function completely and proceed, to enjoy the automaticfallback to the 'DFLT'/'dflt' script.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>info</code></em> :</span></td><td> a <a href="pango-OpenType-Font-Handling.html#PangoOTInfo"><span class="type">PangoOTInfo</span></a>.</td></tr><tr><td><span class="term"><em class="parameter"><code>table_type</code></em> :</span></td><td> the table type to obtain information about.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_tag</code></em> :</span></td><td> the tag of the script to find.</td></tr><tr><td><span class="term"><em class="parameter"><code>script_index</code></em> :</span></td><td> location to store the index of the script, or <a
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -