⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pango-text-processing.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</p></div><hr><div class="refsect2" lang="en"><a name="id2758109"></a><h3><a name="pango-context-get-gravity"></a>pango_context_get_gravity ()</h3><a class="indexterm" name="id2758125"></a><pre class="programlisting"><a href="pango-Vertical-Text.html#PangoGravity">PangoGravity</a> pango_context_get_gravity      (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieves the gravity for the context. This is similar to<a href="pango-Text-Processing.html#pango-context-get-base-gravity"><code class="function">pango_context_get_base_gravity()</code></a>, except for when the base gravityis <a href="pango-Vertical-Text.html#PANGO-GRAVITY-AUTO:CAPS"><code class="literal">PANGO_GRAVITY_AUTO</code></a> for which <a href="pango-Vertical-Text.html#pango-gravity-get-for-matrix"><code class="function">pango_gravity_get_for_matrix()</code></a> is usedto return the gravity from the current context matrix.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the resolved gravity for the context.</td></tr></tbody></table></div><p>Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id2758237"></a><h3><a name="pango-context-get-gravity-hint"></a>pango_context_get_gravity_hint ()</h3><a class="indexterm" name="id2758252"></a><pre class="programlisting"><a href="pango-Vertical-Text.html#PangoGravityHint">PangoGravityHint</a> pango_context_get_gravity_hint                                            (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Retrieves the gravity hint for the context. See<a href="pango-Text-Processing.html#pango-context-set-gravity-hint"><code class="function">pango_context_set_gravity_hint()</code></a> for details.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the gravity hint for the context.</td></tr></tbody></table></div><p>Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id2758339"></a><h3><a name="pango-context-set-gravity-hint"></a>pango_context_set_gravity_hint ()</h3><a class="indexterm" name="id2758354"></a><pre class="programlisting">void        pango_context_set_gravity_hint  (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             <a href="pango-Vertical-Text.html#PangoGravityHint">PangoGravityHint</a> hint);</pre><p>Sets the gravity hint for the context.</p><p>The gravity hint is used in laying vertical text out, and is only relevantif gravity of the context as returned by <a href="pango-Text-Processing.html#pango-context-get-gravity"><code class="function">pango_context_get_gravity()</code></a>is set <a href="pango-Vertical-Text.html#PANGO-GRAVITY-EAST:CAPS"><code class="literal">PANGO_GRAVITY_EAST</code></a> or <a href="pango-Vertical-Text.html#PANGO-GRAVITY-WEST:CAPS"><code class="literal">PANGO_GRAVITY_WEST</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>hint</code></em>&#160;:</span></td><td> the new gravity hint</td></tr></tbody></table></div><p>Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id2758480"></a><h3><a name="pango-context-get-matrix"></a>pango_context_get_matrix ()</h3><a class="indexterm" name="id2758495"></a><pre class="programlisting">const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a>* pango_context_get_matrix (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context);</pre><p>Gets the transformation matrix that will be applied whenrendering with this context. See <a href="pango-Text-Processing.html#pango-context-set-matrix"><code class="function">pango_context_set_matrix()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the matrix, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no matrix has been set (which is the same as the identity matrix). The returned matrix is owned by Pango and must not be modified or freed.</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2758594"></a><h3><a name="pango-context-set-matrix"></a>pango_context_set_matrix ()</h3><a class="indexterm" name="id2758609"></a><pre class="programlisting">void        pango_context_set_matrix        (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix);</pre><p>Sets the transformation matrix that will be applied when renderingwith this context. Note that reported metrics are in the user spacecoordinates before the application of the matrix, not device-spacecoordinates after the application of the matrix. So, they don't scalewith the matrix, though they may change slightly for differentmatrices, depending on how the text is fit to the pixel grid.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset any existing matrix. (No matrix set is the same as setting the identity matrix.)</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2758719"></a><h3><a name="pango-context-load-font"></a>pango_context_load_font ()</h3><a class="indexterm" name="id2758732"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFont">PangoFont</a>*  pango_context_load_font         (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Loads the font in one of the fontmaps in the contextthat is the closest match for <em class="parameter"><code>desc</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>desc</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the font to load</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td>the font loaded, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2758850"></a><h3><a name="pango-context-load-fontset"></a>pango_context_load_fontset ()</h3><a class="indexterm" name="id2758863"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontset">PangoFontset</a>* pango_context_load_fontset    (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc,                                             <a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a> *language);</pre><p>Load a set of fonts in the context that can be used to rendera font matching <em class="parameter"><code>desc</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>context</code></em>&#160;:</span></td><td> a <a href="pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>desc</code></em>&#160;:</span></td><td> a <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> describing the fonts to load</td></tr><tr><td><span class="term"><em class="parameter"><code>language</code></em>&#160;:</span></td><td> a <a href="pango-Text-Attributes.html#PangoLanguage"><span class="type">PangoLanguage</span></a> the fonts will be used for</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td>the fontset, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no font matched.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2759011"></a><h3><a name="pango-context-get-metrics"></a>pango_context_get_metrics ()</h3><a class="indexterm" name="id2759024"></a><pre class="programlisting"><a href="pango-Fonts.html#PangoFontMetrics">PangoFontMetrics</a>* pango_context_get_metrics (<a href="pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                             const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc,                                             <a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a> *language);</pre><p>Get overall metric information for a particular fontdescription.  Since the metrics may be substantially different fordifferent scripts, a language tag can be provided to indicate thatthe metrics should be retrieved that correspond to the script(s)used by that language.</p><p>The <a href="pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> is interpreted in the same way asby <a href="pango-Text-Processing.html#pango-itemize"><code class="function">pango_itemize()</code></a>, and the family name may be a comma separatedlist of figures. If characters from multiple of these familieswould be used to render the string, then the returned fonts wouldbe a composite o

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -