📄 cairo-font-options.xml
字号:
</varlistentry><varlistentry><term><anchor id="CAIRO-SUBPIXEL-ORDER-RGB:CAPS" role="constant"/><literal>CAIRO_SUBPIXEL_ORDER_RGB</literal></term><listitem><simpara> Subpixel elements are arranged horizontally with red at the left</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-SUBPIXEL-ORDER-BGR:CAPS" role="constant"/><literal>CAIRO_SUBPIXEL_ORDER_BGR</literal></term><listitem><simpara> Subpixel elements are arranged horizontally with blue at the left</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-SUBPIXEL-ORDER-VRGB:CAPS" role="constant"/><literal>CAIRO_SUBPIXEL_ORDER_VRGB</literal></term><listitem><simpara> Subpixel elements are arranged vertically with red at the top</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-SUBPIXEL-ORDER-VBGR:CAPS" role="constant"/><literal>CAIRO_SUBPIXEL_ORDER_VBGR</literal></term><listitem><simpara> Subpixel elements are arranged vertically with blue at the top</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="cairo-font-options-set-subpixel-order" role="function"/>cairo_font_options_set_subpixel_order ()</title><indexterm><primary>cairo_font_options_set_subpixel_order</primary></indexterm><programlisting><link linkend="void">void</link> cairo_font_options_set_subpixel_order (<link linkend="cairo-font-options-t">cairo_font_options_t</link> *options, <link linkend="cairo-subpixel-order-t">cairo_subpixel_order_t</link> subpixel_order);</programlisting></refsect2><refsect2><title><anchor id="cairo-font-options-get-subpixel-order" role="function"/>cairo_font_options_get_subpixel_order ()</title><indexterm><primary>cairo_font_options_get_subpixel_order</primary></indexterm><programlisting><link linkend="cairo-subpixel-order-t">cairo_subpixel_order_t</link> cairo_font_options_get_subpixel_order (const <link linkend="cairo-font-options-t">cairo_font_options_t</link> *options);</programlisting></refsect2><refsect2><title><anchor id="cairo-hint-style-t" role="enum"/>enum cairo_hint_style_t</title><indexterm><primary>cairo_hint_style_t</primary></indexterm><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;</programlisting><para>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.</para><para></para><variablelist role="enum"><varlistentry><term><anchor id="CAIRO-HINT-STYLE-DEFAULT:CAPS" role="constant"/><literal>CAIRO_HINT_STYLE_DEFAULT</literal></term><listitem><simpara> Use the default hint style for for font backend and target device</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-STYLE-NONE:CAPS" role="constant"/><literal>CAIRO_HINT_STYLE_NONE</literal></term><listitem><simpara> Do not hint outlines</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-STYLE-SLIGHT:CAPS" role="constant"/><literal>CAIRO_HINT_STYLE_SLIGHT</literal></term><listitem><simpara> Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes.</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-STYLE-MEDIUM:CAPS" role="constant"/><literal>CAIRO_HINT_STYLE_MEDIUM</literal></term><listitem><simpara> Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-STYLE-FULL:CAPS" role="constant"/><literal>CAIRO_HINT_STYLE_FULL</literal></term><listitem><simpara> Hint outlines to maximize contrast</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="cairo-font-options-set-hint-style" role="function"/>cairo_font_options_set_hint_style ()</title><indexterm><primary>cairo_font_options_set_hint_style</primary></indexterm><programlisting><link linkend="void">void</link> cairo_font_options_set_hint_style (<link linkend="cairo-font-options-t">cairo_font_options_t</link> *options, <link linkend="cairo-hint-style-t">cairo_hint_style_t</link> hint_style);</programlisting></refsect2><refsect2><title><anchor id="cairo-font-options-get-hint-style" role="function"/>cairo_font_options_get_hint_style ()</title><indexterm><primary>cairo_font_options_get_hint_style</primary></indexterm><programlisting><link linkend="cairo-hint-style-t">cairo_hint_style_t</link> cairo_font_options_get_hint_style (const <link linkend="cairo-font-options-t">cairo_font_options_t</link> *options);</programlisting></refsect2><refsect2><title><anchor id="cairo-hint-metrics-t" role="enum"/>enum cairo_hint_metrics_t</title><indexterm><primary>cairo_hint_metrics_t</primary></indexterm><programlisting>typedef enum _cairo_hint_metrics { CAIRO_HINT_METRICS_DEFAULT, CAIRO_HINT_METRICS_OFF, CAIRO_HINT_METRICS_ON} cairo_hint_metrics_t;</programlisting><para>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.</para><para></para><variablelist role="enum"><varlistentry><term><anchor id="CAIRO-HINT-METRICS-DEFAULT:CAPS" role="constant"/><literal>CAIRO_HINT_METRICS_DEFAULT</literal></term><listitem><simpara> Hint metrics in the default manner for the font backend and target device</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-METRICS-OFF:CAPS" role="constant"/><literal>CAIRO_HINT_METRICS_OFF</literal></term><listitem><simpara> Do not hint font metrics</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-HINT-METRICS-ON:CAPS" role="constant"/><literal>CAIRO_HINT_METRICS_ON</literal></term><listitem><simpara> Hint font metrics</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="cairo-font-options-set-hint-metrics" role="function"/>cairo_font_options_set_hint_metrics ()</title><indexterm><primary>cairo_font_options_set_hint_metrics</primary></indexterm><programlisting><link linkend="void">void</link> cairo_font_options_set_hint_metrics (<link linkend="cairo-font-options-t">cairo_font_options_t</link> *options, <link linkend="cairo-hint-metrics-t">cairo_hint_metrics_t</link> hint_metrics);</programlisting></refsect2><refsect2><title><anchor id="cairo-font-options-get-hint-metrics" role="function"/>cairo_font_options_get_hint_metrics ()</title><indexterm><primary>cairo_font_options_get_hint_metrics</primary></indexterm><programlisting><link linkend="cairo-hint-metrics-t">cairo_hint_metrics_t</link> cairo_font_options_get_hint_metrics (const <link linkend="cairo-font-options-t">cairo_font_options_t</link> *options);</programlisting></refsect2></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -