Imported Upstream version 2.2.7
This commit is contained in:
@ -2,69 +2,189 @@
|
||||
|
||||
|
||||
|
||||
gint32 <a href="libgimp-gimptexttool.html#gimp-text-fontname">gimp_text_fontname</a> (gint32 image_ID,
|
||||
gint32 drawable_ID,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
const gchar *text,
|
||||
gint border,
|
||||
gboolean antialias,
|
||||
gdouble size,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> <a href="libgimp-gimptexttool.html#gimp-text-fontname">gimp_text_fontname</a> (<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> image_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> drawable_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> x,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> y,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> border,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> antialias,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *fontname);
|
||||
gboolean <a href="libgimp-gimptexttool.html#gimp-text-get-extents-fontname">gimp_text_get_extents_fontname</a> (const gchar *text,
|
||||
gdouble size,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *fontname);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> <a href="libgimp-gimptexttool.html#gimp-text-get-extents-fontname">gimp_text_get_extents_fontname</a> (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *fontname,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *ascent,
|
||||
gint *descent);
|
||||
gint32 <a href="libgimp-gimptexttool.html#gimp-text">gimp_text</a> (gint32 image_ID,
|
||||
gint32 drawable_ID,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
const gchar *text,
|
||||
gint border,
|
||||
gboolean antialias,
|
||||
gdouble size,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *fontname,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *width,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *height,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *ascent,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *descent);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> <a href="libgimp-gimptexttool.html#gimp-text">gimp_text</a> (<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> image_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> drawable_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> x,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> y,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> border,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> antialias,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *foundry,
|
||||
const gchar *family,
|
||||
const gchar *weight,
|
||||
const gchar *slant,
|
||||
const gchar *set_width,
|
||||
const gchar *spacing,
|
||||
const gchar *registry,
|
||||
const gchar *encoding);
|
||||
gboolean <a href="libgimp-gimptexttool.html#gimp-text-get-extents">gimp_text_get_extents</a> (const gchar *text,
|
||||
gdouble size,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *foundry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *family,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *weight,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *slant,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *set_width,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *spacing,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *registry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *encoding);
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> <a href="libgimp-gimptexttool.html#gimp-text-get-extents">gimp_text_get_extents</a> (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *foundry,
|
||||
const gchar *family,
|
||||
const gchar *weight,
|
||||
const gchar *slant,
|
||||
const gchar *set_width,
|
||||
const gchar *spacing,
|
||||
const gchar *registry,
|
||||
const gchar *encoding,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *ascent,
|
||||
gint *descent);
|
||||
</pre></div><div class="refsect1" lang="en"><a name="id2632890"></a><h2>Description</h2><p>
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *foundry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *family,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *weight,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *slant,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *set_width,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *spacing,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *registry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *encoding,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *width,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *height,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *ascent,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *descent);
|
||||
</pre></div><div class="refsect1" lang="en"><a name="id2629382"></a><h2>Description</h2><p>
|
||||
Functions for controlling the text tool.
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><a name="id2632899"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2632905"></a><h3><a name="gimp-text-fontname"></a>gimp_text_fontname ()</h3><a class="indexterm" name="id2632913"></a><pre class="programlisting">gint32 gimp_text_fontname (gint32 image_ID,
|
||||
gint32 drawable_ID,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
const gchar *text,
|
||||
gint border,
|
||||
gboolean antialias,
|
||||
gdouble size,
|
||||
</p></div><div class="refsect1" lang="en"><a name="id2629392"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2629397"></a><h3><a name="gimp-text-fontname"></a>gimp_text_fontname ()</h3><a class="indexterm" name="id2629405"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> gimp_text_fontname (<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> image_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> drawable_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> x,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> y,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> border,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> antialias,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *fontname);</pre><p>
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *fontname);</pre><p>
|
||||
Add text at the specified location as a floating selection or a new
|
||||
layer.
|
||||
</p><p>
|
||||
@ -90,14 +210,30 @@ The border is measured in pixels.</p><p>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>size_type</tt></i><EFBFBD>:</span></td><td> The units of specified size.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>fontname</tt></i><EFBFBD>:</span></td><td> The name of the font.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new text layer or -1 if no layer was created.
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2634836"></a><h3><a name="gimp-text-get-extents-fontname"></a>gimp_text_get_extents_fontname ()</h3><a class="indexterm" name="id2634843"></a><pre class="programlisting">gboolean gimp_text_get_extents_fontname (const gchar *text,
|
||||
gdouble size,
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2629558"></a><h3><a name="gimp-text-get-extents-fontname"></a>gimp_text_get_extents_fontname ()</h3><a class="indexterm" name="id2629565"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_text_get_extents_fontname (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *fontname,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *ascent,
|
||||
gint *descent);</pre><p>
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *fontname,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *width,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *height,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *ascent,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *descent);</pre><p>
|
||||
Get extents of the bounding box for the specified text.
|
||||
</p><p>
|
||||
This tool returns the width and height of a bounding box for the
|
||||
@ -113,23 +249,57 @@ and descent for the specified font are returned as well.</p><p>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>ascent</tt></i><EFBFBD>:</span></td><td> The ascent of the specified font.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>descent</tt></i><EFBFBD>:</span></td><td> The descent of the specified font.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> TRUE on success.
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635006"></a><h3><a name="gimp-text"></a>gimp_text ()</h3><a class="indexterm" name="id2635014"></a><pre class="programlisting">gint32 gimp_text (gint32 image_ID,
|
||||
gint32 drawable_ID,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
const gchar *text,
|
||||
gint border,
|
||||
gboolean antialias,
|
||||
gdouble size,
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2627498"></a><h3><a name="gimp-text"></a>gimp_text ()</h3><a class="indexterm" name="id2627505"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> gimp_text (<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> image_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint32"
|
||||
>gint32</a> drawable_ID,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> x,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> y,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> border,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> antialias,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *foundry,
|
||||
const gchar *family,
|
||||
const gchar *weight,
|
||||
const gchar *slant,
|
||||
const gchar *set_width,
|
||||
const gchar *spacing,
|
||||
const gchar *registry,
|
||||
const gchar *encoding);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text</tt> is deprecated and should not be used in newly-written code.</p></div><p>
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *foundry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *family,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *weight,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *slant,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *set_width,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *spacing,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *registry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *encoding);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text</tt> is deprecated and should not be used in newly-written code.</p></div><p>
|
||||
This procedure is deprecated! Use <a href="libgimp-gimptexttool.html#gimp-text-fontname"><tt class="function">gimp_text_fontname()</tt></a> instead.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>image_ID</tt></i><EFBFBD>:</span></td><td> The image.
|
||||
@ -150,21 +320,51 @@ This procedure is deprecated! Use <a href="libgimp-gimptexttool.html#gimp-text-f
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>registry</tt></i><EFBFBD>:</span></td><td> The font registry.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>encoding</tt></i><EFBFBD>:</span></td><td> The font encoding.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span><EFBFBD>:</span></td><td> The new text layer or -1 if no layer was created.
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2642054"></a><h3><a name="gimp-text-get-extents"></a>gimp_text_get_extents ()</h3><a class="indexterm" name="id2642063"></a><pre class="programlisting">gboolean gimp_text_get_extents (const gchar *text,
|
||||
gdouble size,
|
||||
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2635869"></a><h3><a name="gimp-text-get-extents"></a>gimp_text_get_extents ()</h3><a class="indexterm" name="id2635877"></a><pre class="programlisting"><a
|
||||
href="../glib/glib-Basic-Types.html#gboolean"
|
||||
>gboolean</a> gimp_text_get_extents (const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *text,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gdouble"
|
||||
>gdouble</a> size,
|
||||
<a href="libgimp-gimpenums.html#GimpSizeType">GimpSizeType</a> size_type,
|
||||
const gchar *foundry,
|
||||
const gchar *family,
|
||||
const gchar *weight,
|
||||
const gchar *slant,
|
||||
const gchar *set_width,
|
||||
const gchar *spacing,
|
||||
const gchar *registry,
|
||||
const gchar *encoding,
|
||||
gint *width,
|
||||
gint *height,
|
||||
gint *ascent,
|
||||
gint *descent);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text_get_extents</tt> is deprecated and should not be used in newly-written code.</p></div><p>
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *foundry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *family,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *weight,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *slant,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *set_width,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *spacing,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *registry,
|
||||
const <a
|
||||
href="../glib/glib-Basic-Types.html#gchar"
|
||||
>gchar</a> *encoding,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *width,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *height,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *ascent,
|
||||
<a
|
||||
href="../glib/glib-Basic-Types.html#gint"
|
||||
>gint</a> *descent);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><tt class="literal">gimp_text_get_extents</tt> is deprecated and should not be used in newly-written code.</p></div><p>
|
||||
This procedure is deprecated! Use <a href="libgimp-gimptexttool.html#gimp-text-get-extents-fontname"><tt class="function">gimp_text_get_extents_fontname()</tt></a>
|
||||
instead.</p><p>
|
||||
|
||||
|
Reference in New Issue
Block a user