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

📄 cairo-font-options.html

📁 按照官方的说法:Cairo is a vector graphics library with cross-device output support. 翻译过来
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</td></tr><tr><td><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-RGB:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_RGB</code></span></td><td> Subpixel elements are arranged horizontally  with red at the left</td></tr><tr><td><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-BGR:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_BGR</code></span></td><td>  Subpixel elements are arranged horizontally  with blue at the left</td></tr><tr><td><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-VRGB:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_VRGB</code></span></td><td> Subpixel elements are arranged vertically  with red at the top</td></tr><tr><td><span class="term"><a name="CAIRO-SUBPIXEL-ORDER-VBGR:CAPS"></a><code class="literal">CAIRO_SUBPIXEL_ORDER_VBGR</code></span></td><td> Subpixel elements are arranged vertically  with blue at the top</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2582742"></a><h3><a name="cairo-font-options-set-subpixel-order"></a>cairo_font_options_set_subpixel_order ()</h3><a class="indexterm" name="id2582754"></a><pre class="programlisting">void        cairo_font_options_set_subpixel_order                                            (<a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,                                             <a href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> subpixel_order);</pre></div><hr><div class="refsect2" lang="en"><a name="id2582783"></a><h3><a name="cairo-font-options-get-subpixel-order"></a>cairo_font_options_get_subpixel_order ()</h3><a class="indexterm" name="id2582796"></a><pre class="programlisting"><a href="cairo-Font-Options.html#cairo-subpixel-order-t">cairo_subpixel_order_t</a> cairo_font_options_get_subpixel_order                                            (const <a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre></div><hr><div class="refsect2" lang="en"><a name="id2582819"></a><h3><a name="cairo-hint-style-t"></a>enum cairo_hint_style_t</h3><a class="indexterm" name="id2582830"></a><pre class="programlisting">typedef enum _cairo_hint_style {    CAIRO_HINT_STYLE_DEFAULT,    CAIRO_HINT_STYLE_NONE,    CAIRO_HINT_STYLE_SLIGHT,    CAIRO_HINT_STYLE_MEDIUM,    CAIRO_HINT_STYLE_FULL} cairo_hint_style_t;</pre><p>Specifies the type of hinting to do on font outlines. Hintingis the process of fitting outlines to the pixel grid in orderto improve the appearance of the result. Since hinting outlinesinvolves distorting them, it also reduces the faithfulnessto the original outline shapes. Not all of the outline hintingstyles are supported by all font backends.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a name="CAIRO-HINT-STYLE-DEFAULT:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_DEFAULT</code></span></td><td> Use the default hint style for  for font backend and target device</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-STYLE-NONE:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_NONE</code></span></td><td> Do not hint outlines</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-STYLE-SLIGHT:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_SLIGHT</code></span></td><td> Hint outlines slightly to improve  contrast while retaining good fidelity to the original  shapes.</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-STYLE-MEDIUM:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_MEDIUM</code></span></td><td> Hint outlines with medium strength  giving a compromise between fidelity to the original shapes  and contrast</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-STYLE-FULL:CAPS"></a><code class="literal">CAIRO_HINT_STYLE_FULL</code></span></td><td> Hint outlines to maximize contrast</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2582972"></a><h3><a name="cairo-font-options-set-hint-style"></a>cairo_font_options_set_hint_style ()</h3><a class="indexterm" name="id2582985"></a><pre class="programlisting">void        cairo_font_options_set_hint_style                                            (<a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,                                             <a href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> hint_style);</pre></div><hr><div class="refsect2" lang="en"><a name="id2583016"></a><h3><a name="cairo-font-options-get-hint-style"></a>cairo_font_options_get_hint_style ()</h3><a class="indexterm" name="id2583030"></a><pre class="programlisting"><a href="cairo-Font-Options.html#cairo-hint-style-t">cairo_hint_style_t</a> cairo_font_options_get_hint_style                                            (const <a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre></div><hr><div class="refsect2" lang="en"><a name="id2583055"></a><h3><a name="cairo-hint-metrics-t"></a>enum cairo_hint_metrics_t</h3><a class="indexterm" name="id2583066"></a><pre class="programlisting">typedef enum _cairo_hint_metrics {    CAIRO_HINT_METRICS_DEFAULT,    CAIRO_HINT_METRICS_OFF,    CAIRO_HINT_METRICS_ON} cairo_hint_metrics_t;</pre><p>Specifies whether to hint font metrics; hinting font metricsmeans quantizing them so that they are integer values indevice space. Doing this improves the consistency ofletter and line spacing, however it also means that textwill be laid out differently at different zoom factors.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a name="CAIRO-HINT-METRICS-DEFAULT:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_DEFAULT</code></span></td><td> Hint metrics in the default manner for the font backend and target device</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-METRICS-OFF:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_OFF</code></span></td><td> Do not hint font metrics</td></tr><tr><td><span class="term"><a name="CAIRO-HINT-METRICS-ON:CAPS"></a><code class="literal">CAIRO_HINT_METRICS_ON</code></span></td><td> Hint font metrics</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2583162"></a><h3><a name="cairo-font-options-set-hint-metrics"></a>cairo_font_options_set_hint_metrics ()</h3><a class="indexterm" name="id2583175"></a><pre class="programlisting">void        cairo_font_options_set_hint_metrics                                            (<a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options,                                             <a href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> hint_metrics);</pre></div><hr><div class="refsect2" lang="en"><a name="id2583206"></a><h3><a name="cairo-font-options-get-hint-metrics"></a>cairo_font_options_get_hint_metrics ()</h3><a class="indexterm" name="id2583220"></a><pre class="programlisting"><a href="cairo-Font-Options.html#cairo-hint-metrics-t">cairo_hint_metrics_t</a> cairo_font_options_get_hint_metrics                                            (const <a href="cairo-Font-Options.html#cairo-font-options-t">cairo_font_options_t</a> *options);</pre></div></div></div></body></html>

⌨️ 快捷键说明

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