KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/share/gtk-doc/html/pango/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Miscellaneous Utilities</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="Pango Reference Manual">
<link rel="up" href="lowlevel.html" title="Low Level Functionality">
<link rel="prev" href="pango-Modules.html" title="Modules">
<link rel="next" href="tools.html" title="Pango Tools">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="pango.html" title="Basic Pango Interfaces">
<link rel="chapter" href="rendering.html" title="Rendering with Pango">
<link rel="chapter" href="lowlevel.html" title="Low Level Functionality">
<link rel="chapter" href="tools.html" title="Pango Tools">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 1.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 1.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 1.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 1.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 1.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 1.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 1.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="pango-Modules.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="lowlevel.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Pango Reference Manual</th>
<td><a accesskey="n" href="tools.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#desc" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="pango-Miscellaneous-Utilities"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="top_of_page"></a>Miscellaneous Utilities</span></h2>
<p>Miscellaneous Utilities &#8212; Various convenience and utility functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">



char**      <a href="pango-Miscellaneous-Utilities.html#pango-split-file-list">pango_split_file_list</a>           (const char *str);
char*       <a href="pango-Miscellaneous-Utilities.html#pango-trim-string">pango_trim_string</a>               (const char *str);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        <a href="pango-Miscellaneous-Utilities.html#pango-read-line">pango_read_line</a>                 (FILE *stream,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *str);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-skip-space">pango_skip_space</a>                (const char **pos);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-scan-word">pango_scan_word</a>                 (const char **pos,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *out);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-scan-string">pango_scan_string</a>               (const char **pos,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *out);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-scan-int">pango_scan_int</a>                  (const char **pos,
                                             int *out);
char*       <a href="pango-Miscellaneous-Utilities.html#pango-config-key-get">pango_config_key_get</a>            (const char *key);
void        <a href="pango-Miscellaneous-Utilities.html#pango-lookup-aliases">pango_lookup_aliases</a>            (const char *fontname,
                                             char ***families,
                                             int *n_families);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-parse-style">pango_parse_style</a>               (const char *str,
                                             <a href="pango-Fonts.html#PangoStyle">PangoStyle</a> *style,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-parse-variant">pango_parse_variant</a>             (const char *str,
                                             <a href="pango-Fonts.html#PangoVariant">PangoVariant</a> *variant,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-parse-weight">pango_parse_weight</a>              (const char *str,
                                             <a href="pango-Fonts.html#PangoWeight">PangoWeight</a> *weight,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-parse-stretch">pango_parse_stretch</a>             (const char *str,
                                             <a href="pango-Fonts.html#PangoStretch">PangoStretch</a> *stretch,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);
const char* <a href="pango-Miscellaneous-Utilities.html#pango-get-sysconf-subdirectory">pango_get_sysconf_subdirectory</a>  (void);
const char* <a href="pango-Miscellaneous-Utilities.html#pango-get-lib-subdirectory">pango_get_lib_subdirectory</a>      (void);
<a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>*     <a href="pango-Miscellaneous-Utilities.html#pango-log2vis-get-embedding-levels">pango_log2vis_get_embedding_levels</a>
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
                                             int length,
                                             <a href="pango-Text-Processing.html#PangoDirection">PangoDirection</a> *pbase_dir);
const char* <a href="pango-Miscellaneous-Utilities.html#pango-language-get-sample-string">pango_language_get_sample_string</a>
                                            (<a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a> *language);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="pango-Miscellaneous-Utilities.html#pango-is-zero-width">pango_is_zero_width</a>             (<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> ch);
void        <a href="pango-Miscellaneous-Utilities.html#pango-quantize-line-geometry">pango_quantize_line_geometry</a>    (int *thickness,
                                             int *position);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="desc"></a><h2>Description</h2>
<p>
The functions and utilities in this section are mostly used from Pango
backends and modules, but may be useful for other purposes too.
</p>
</div>
<div class="refsect1" lang="en">
<a name="details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id2914894"></a><h3>
<a name="pango-split-file-list"></a>pango_split_file_list ()</h3>
<a class="indexterm" name="id2914906"></a><pre class="programlisting">char**      pango_split_file_list           (const char *str);</pre>
<p>
Splits a G_SEARCHPATH_SEPARATOR-separated list of files, stripping
white space and subsituting ~/ with $HOME/.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a G_SEARCHPATH_SEPARATOR separated list of filenames
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a list of strings to be freed with <a
href="../glib/glib-String-Utility-Functions.html#g-strfreev"
><code class="function">g_strfreev()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2914980"></a><h3>
<a name="pango-trim-string"></a>pango_trim_string ()</h3>
<a class="indexterm" name="id2914994"></a><pre class="programlisting">char*       pango_trim_string               (const char *str);</pre>
<p>
Trims leading and trailing whitespace from a string.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> A newly-allocated string that must be freed with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915065"></a><h3>
<a name="pango-read-line"></a>pango_read_line ()</h3>
<a class="indexterm" name="id2915078"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        pango_read_line                 (FILE *stream,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *str);</pre>
<p>
Reads an entire line from a file into a buffer. Lines may
be delimited with '\n', '\r', '\n\r', or '\r\n'. The delimiter
is not written into the buffer. Text after a '#' character is treated as
a comment and skipped. '\' can be used to escape a # character.
'\' proceeding a line delimiter combines adjacent lines. A '\' proceeding
any other character is ignored and written into the output buffer
unmodified.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>stream</code></em>&#160;:</span></td>
<td> a stdio stream
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Strings.html#GString"
><span class="type">GString</span></a> buffer into which to write the result
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> 0 if the stream was already at an <code class="literal">EOF</code> character, otherwise
              the number of lines read (this is useful for maintaining
              a line number counter which doesn't combine lines with '\') 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915195"></a><h3>
<a name="pango-skip-space"></a>pango_skip_space ()</h3>
<a class="indexterm" name="id2915208"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_skip_space                (const char **pos);</pre>
<p>
Skips 0 or more characters of white space.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pos</code></em>&#160;:</span></td>
<td> in/out string position
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if skipping the white space leaves
the position at a '\0' character.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915280"></a><h3>
<a name="pango-scan-word"></a>pango_scan_word ()</h3>
<a class="indexterm" name="id2915293"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_scan_word                 (const char **pos,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *out);</pre>
<p>
Scans a word into a <a
href="../glib/glib-Strings.html#GString"
><span class="type">GString</span></a> buffer. A word consists
of [A-Za-z_] followed by zero or more [A-Za-z_0-9]
Leading white space is skipped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pos</code></em>&#160;:</span></td>
<td> in/out string position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>out</code></em>&#160;:</span></td>
<td> a <a
href="../glib/glib-Strings.html#GString"
><span class="type">GString</span></a> into which to write the result
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if a parse error occured. 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915403"></a><h3>
<a name="pango-scan-string"></a>pango_scan_string ()</h3>
<a class="indexterm" name="id2915416"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_scan_string               (const char **pos,
                                             <a
href="../glib/glib-Strings.html#GString"
>GString</a> *out);</pre>
<p>
Scans a string into a <a
href="../glib/glib-Strings.html#GString"
><span class="type">GString</span></a> buffer. The string may either
be a sequence of non-white-space characters, or a quoted
string with '"'. Instead a quoted string, '\"' represents
a literal quote. Leading white space outside of quotes is skipped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pos</code></em>&#160;:</span></td>
<td> in/out string position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>out</code></em>&#160;:</span></td>
<td> a <a
href="../glib/glib-Strings.html#GString"
><span class="type">GString</span></a> into which to write the result
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if a parse error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915527"></a><h3>
<a name="pango-scan-int"></a>pango_scan_int ()</h3>
<a class="indexterm" name="id2915540"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_scan_int                  (const char **pos,
                                             int *out);</pre>
<p>
Scans an integer. 
Leading white space is skipped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>pos</code></em>&#160;:</span></td>
<td> in/out string position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>out</code></em>&#160;:</span></td>
<td> an int into which to write the result
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if a parse error occured.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915632"></a><h3>
<a name="pango-config-key-get"></a>pango_config_key_get ()</h3>
<a class="indexterm" name="id2915645"></a><pre class="programlisting">char*       pango_config_key_get            (const char *key);</pre>
<p>
Looks up a key in the Pango config database
(pseudo-win.ini style, read from $sysconfdir/pango/pangorc,
 ~/.pangorc, and getenv (PANGO_RC_FILE).)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>key</code></em>&#160;:</span></td>
<td> Key to look up, in the form "SECTION/KEY".
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the value, if found, otherwise <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>. The value is a
newly-allocated string and must be freed with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915730"></a><h3>
<a name="pango-lookup-aliases"></a>pango_lookup_aliases ()</h3>
<a class="indexterm" name="id2915743"></a><pre class="programlisting">void        pango_lookup_aliases            (const char *fontname,
                                             char ***families,
                                             int *n_families);</pre>
<p>
Look up all user defined aliases for the alias <em class="parameter"><code>fontname</code></em>.
The resulting font family names will be stored in <em class="parameter"><code>families</code></em>,
and the number of families in <em class="parameter"><code>n_families</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>fontname</code></em>&#160;:</span></td>
<td> an ascii string
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>families</code></em>&#160;:</span></td>
<td> will be set to an array of font family names.
   this array is owned by pango and should not be freed.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_families</code></em>&#160;:</span></td>
<td> will be set to the length of the <em class="parameter"><code>families</code></em> array.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2915863"></a><h3>
<a name="pango-parse-style"></a>pango_parse_style ()</h3>
<a class="indexterm" name="id2915876"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_parse_style               (const char *str,
                                             <a href="pango-Fonts.html#PangoStyle">PangoStyle</a> *style,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);</pre>
<p>
Parses a font style. The allowed values are "normal",
"italic" and "oblique", case variations being
ignored.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string to parse.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>style</code></em>&#160;:</span></td>
<td> a <a href="pango-Fonts.html#PangoStyle"><span class="type">PangoStyle</span></a> to store the result in.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>warn</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, issue a <a
href="../glib/glib-Message-Logging.html#g-warning"
><code class="function">g_warning()</code></a> on bad input.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>str</code></em> was successfully parsed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916027"></a><h3>
<a name="pango-parse-variant"></a>pango_parse_variant ()</h3>
<a class="indexterm" name="id2916040"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_parse_variant             (const char *str,
                                             <a href="pango-Fonts.html#PangoVariant">PangoVariant</a> *variant,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);</pre>
<p>
Parses a font variant. The allowed values are "normal"
and "smallcaps" or "small_caps", case variations being
ignored.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string to parse.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>variant</code></em>&#160;:</span></td>
<td> a <a href="pango-Fonts.html#PangoVariant"><span class="type">PangoVariant</span></a> to store the result in.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>warn</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, issue a <a
href="../glib/glib-Message-Logging.html#g-warning"
><code class="function">g_warning()</code></a> on bad input.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>str</code></em> was successfully parsed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916190"></a><h3>
<a name="pango-parse-weight"></a>pango_parse_weight ()</h3>
<a class="indexterm" name="id2916204"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_parse_weight              (const char *str,
                                             <a href="pango-Fonts.html#PangoWeight">PangoWeight</a> *weight,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);</pre>
<p>
Parses a font weight. The allowed values are "heavy",
"ultrabold", "bold", "normal", "light", "ultraleight" 
and integers. Case variations are ignored.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string to parse.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>weight</code></em>&#160;:</span></td>
<td> a <a href="pango-Fonts.html#PangoWeight"><span class="type">PangoWeight</span></a> to store the result in.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>warn</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, issue a <a
href="../glib/glib-Message-Logging.html#g-warning"
><code class="function">g_warning()</code></a> on bad input.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>str</code></em> was successfully parsed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916353"></a><h3>
<a name="pango-parse-stretch"></a>pango_parse_stretch ()</h3>
<a class="indexterm" name="id2916367"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_parse_stretch             (const char *str,
                                             <a href="pango-Fonts.html#PangoStretch">PangoStretch</a> *stretch,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> warn);</pre>
<p>
Parses a font stretch. The allowed values are 
"ultra_condensed", "extra_condensed", "condensed", 
"semi_condensed", "normal", "semi_expanded", "expanded", 
"extra_expanded" and "ultra_expanded". Case variations are 
ignored and the '_' characters may be omitted.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string to parse.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>stretch</code></em>&#160;:</span></td>
<td> a <a href="pango-Fonts.html#PangoStretch"><span class="type">PangoStretch</span></a> to store the result in.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>warn</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, issue a <a
href="../glib/glib-Message-Logging.html#g-warning"
><code class="function">g_warning()</code></a> on bad input.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>str</code></em> was successfully parsed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916519"></a><h3>
<a name="pango-get-sysconf-subdirectory"></a>pango_get_sysconf_subdirectory ()</h3>
<a class="indexterm" name="id2916533"></a><pre class="programlisting">const char* pango_get_sysconf_subdirectory  (void);</pre>
<p>
On Unix, returns the name of the "pango" subdirectory of SYSCONFDIR
(which is set at compile time). On Win32, returns a subdirectory of
the Pango installation directory (which is deduced at run time from
the DLL's location, or stored in the Registry).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the Pango sysconf directory. The returned string should
not be freed. 
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916579"></a><h3>
<a name="pango-get-lib-subdirectory"></a>pango_get_lib_subdirectory ()</h3>
<a class="indexterm" name="id2916593"></a><pre class="programlisting">const char* pango_get_lib_subdirectory      (void);</pre>
<p>
On Unix, returns the name of the "pango" subdirectory of LIBDIR
(which is set at compile time). On Win32, returns the Pango
installation directory (which is deduced at run time from the DLL's
location, or stored in the Registry). The returned string should
not be freed.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the Pango lib directory. The returned string should
not be freed. 
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916639"></a><h3>
<a name="pango-log2vis-get-embedding-levels"></a>pango_log2vis_get_embedding_levels ()</h3>
<a class="indexterm" name="id2916655"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>*     pango_log2vis_get_embedding_levels
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
                                             int length,
                                             <a href="pango-Text-Processing.html#PangoDirection">PangoDirection</a> *pbase_dir);</pre>
<p>
This will return the bidirectional embedding levels of the input paragraph
as defined by the Unicode Bidirectional Algorithm available at:
</p>
<p>
  http://www.unicode.org/reports/tr9/
</p>
<p>
If the input base direction is a weak direction, the direction of the
characters in the text will determine the final resolved direction.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></td>
<td>      the text to itemize.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></td>
<td>    the number of bytes (not characters) to process, or -1
            if <em class="parameter"><code>text</code></em> is nul-terminated and the legnth should be calculated.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pbase_dir</code></em>&#160;:</span></td>
<td> input base direction, and output resolved direction.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a newly allocated array of embedding levels, one item per
              character (not byte), that should be freed using g_free.

</td>
</tr>
</tbody>
</table></div>
<p>Since  1.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916786"></a><h3>
<a name="pango-language-get-sample-string"></a>pango_language_get_sample_string ()</h3>
<a class="indexterm" name="id2916800"></a><pre class="programlisting">const char* pango_language_get_sample_string
                                            (<a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a> *language);</pre>
<p>
Get a string that is representative of the characters needed to
render a particular language. This function is a bad hack for
internal use by renderers and Pango.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<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>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the sample string. This value is owned by Pango
  and must not be freed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916874"></a><h3>
<a name="pango-is-zero-width"></a>pango_is_zero_width ()</h3>
<a class="indexterm" name="id2916889"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    pango_is_zero_width             (<a
href="../glib/glib-Unicode-Manipulation.html#gunichar"
>gunichar</a> ch);</pre>
<p>
Checks <em class="parameter"><code>ch</code></em> to see if it is a zero-width character that should not be
normally rendered on the screen.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>ch</code></em>&#160;:</span></td>
<td> a Unicode character
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>ch</code></em> is a zero-width character, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise

</td>
</tr>
</tbody>
</table></div>
<p>Since  1.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id2916987"></a><h3>
<a name="pango-quantize-line-geometry"></a>pango_quantize_line_geometry ()</h3>
<a class="indexterm" name="id2917003"></a><pre class="programlisting">void        pango_quantize_line_geometry    (int *thickness,
                                             int *position);</pre>
<p>
Quantizes the thickness and position of a line, typically an
underline or strikethrough, to whole device pixels, that is integer
multiples of <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a>. The purpose of this function is to avoid
such lines looking blurry.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>thickness</code></em>&#160;:</span></td>
<td> pointer to the thickness of a line, in Pango scaled units
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>position</code></em>&#160;:</span></td>
<td> corresponding position
</td>
</tr>
</tbody>
</table></div>
<p>Since  1.12
</p>
</div>
</div>
</div>
</body>
</html>

Anon7 - 2021