1364 lines
51 KiB
HTML
1364 lines
51 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>gimptextlayer</title>
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||
<link rel="home" href="index.html" title="GIMP Library Reference Manual">
|
||
<link rel="up" href="libgimp-image.html" title="Manupulating Images and their Properties">
|
||
<link rel="prev" href="libgimp-gimpselection.html" title="gimpselection">
|
||
<link rel="next" href="libgimp-gimptexttool.html" title="gimptexttool">
|
||
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
|
||
<link rel="stylesheet" href="style.css" type="text/css">
|
||
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
|
||
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
|
||
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
|
||
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
|
||
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
|
||
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
|
||
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
|
||
<link rel="index" href="libgimp-index.html" title="Index">
|
||
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
|
||
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
|
||
<link rel="index" href="libgimp-index-new-in-2-6.html" title="Index of new symbols in GIMP 2.6">
|
||
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
|
||
</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="libgimp-gimpselection.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
||
<td><a accesskey="u" href="libgimp-image.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">GIMP Library Reference Manual</th>
|
||
<td><a accesskey="n" href="libgimp-gimptexttool.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
||
</tr>
|
||
<tr><td colspan="5" class="shortcuts">
|
||
<a href="#libgimp-gimptextlayer.synopsis" class="shortcut">Top</a>
|
||
|
|
||
<a href="#libgimp-gimptextlayer.description" class="shortcut">Description</a>
|
||
</td></tr>
|
||
</table>
|
||
<div class="refentry" title="gimptextlayer">
|
||
<a name="libgimp-gimptextlayer"></a><div class="titlepage"></div>
|
||
<div class="refnamediv"><table width="100%"><tr>
|
||
<td valign="top">
|
||
<h2><span class="refentrytitle"><a name="libgimp-gimptextlayer.top_of_page"></a>gimptextlayer</span></h2>
|
||
<p>gimptextlayer</p>
|
||
</td>
|
||
<td valign="top" align="right"></td>
|
||
</tr></table></div>
|
||
<div class="refsynopsisdiv" title="Synopsis">
|
||
<a name="libgimp-gimptextlayer.synopsis"></a><h2>Synopsis</h2>
|
||
<pre class="synopsis">
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-new" title="gimp_text_layer_new ()">gimp_text_layer_new</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> image_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *text,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *fontname,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-text" title="gimp_text_layer_get_text ()">gimp_text_layer_get_text</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-text" title="gimp_text_layer_set_text ()">gimp_text_layer_set_text</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *text);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-font" title="gimp_text_layer_get_font ()">gimp_text_layer_get_font</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-font" title="gimp_text_layer_set_font ()">gimp_text_layer_set_font</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *font);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-font-size" title="gimp_text_layer_get_font_size ()">gimp_text_layer_get_font_size</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> *unit);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-font-size" title="gimp_text_layer_set_font_size ()">gimp_text_layer_set_font_size</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> font_size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-hinting" title="gimp_text_layer_get_hinting ()">gimp_text_layer_get_hinting</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> *autohint);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-hinting" title="gimp_text_layer_set_hinting ()">gimp_text_layer_set_hinting</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> hinting,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> autohint);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-antialias" title="gimp_text_layer_get_antialias ()">gimp_text_layer_get_antialias</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-antialias" title="gimp_text_layer_set_antialias ()">gimp_text_layer_set_antialias</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> antialias);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-kerning" title="gimp_text_layer_get_kerning ()">gimp_text_layer_get_kerning</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-kerning" title="gimp_text_layer_set_kerning ()">gimp_text_layer_set_kerning</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> kerning);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-language" title="gimp_text_layer_get_language ()">gimp_text_layer_get_language</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-language" title="gimp_text_layer_set_language ()">gimp_text_layer_set_language</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *language);
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextDirection"
|
||
>GimpTextDirection</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-base-direction" title="gimp_text_layer_get_base_direction ()">gimp_text_layer_get_base_direction</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-base-direction" title="gimp_text_layer_set_base_direction ()">gimp_text_layer_set_base_direction</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextDirection"
|
||
>GimpTextDirection</a> direction);
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextJustification"
|
||
>GimpTextJustification</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-justification" title="gimp_text_layer_get_justification ()">gimp_text_layer_get_justification</a>
|
||
(<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-justification" title="gimp_text_layer_set_justification ()">gimp_text_layer_set_justification</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextJustification"
|
||
>GimpTextJustification</a> justify);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-color" title="gimp_text_layer_get_color ()">gimp_text_layer_get_color</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
||
>GimpRGB</a> *color);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-color" title="gimp_text_layer_set_color ()">gimp_text_layer_set_color</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
||
>GimpRGB</a> *color);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-indent" title="gimp_text_layer_get_indent ()">gimp_text_layer_get_indent</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-indent" title="gimp_text_layer_set_indent ()">gimp_text_layer_set_indent</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> indent);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-line-spacing" title="gimp_text_layer_get_line_spacing ()">gimp_text_layer_get_line_spacing</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-line-spacing" title="gimp_text_layer_set_line_spacing ()">gimp_text_layer_set_line_spacing</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> line_spacing);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-get-letter-spacing" title="gimp_text_layer_get_letter_spacing ()">gimp_text_layer_get_letter_spacing</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> <a class="link" href="libgimp-gimptextlayer.html#gimp-text-layer-set-letter-spacing" title="gimp_text_layer_set_letter_spacing ()">gimp_text_layer_set_letter_spacing</a> (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> letter_spacing);
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1" title="Description">
|
||
<a name="libgimp-gimptextlayer.description"></a><h2>Description</h2>
|
||
<p>
|
||
</p>
|
||
</div>
|
||
<div class="refsect1" title="Details">
|
||
<a name="libgimp-gimptextlayer.details"></a><h2>Details</h2>
|
||
<div class="refsect2" title="gimp_text_layer_new ()">
|
||
<a name="gimp-text-layer-new"></a><h3>gimp_text_layer_new ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> gimp_text_layer_new (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> image_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *text,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *fontname,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit);</pre>
|
||
<p>
|
||
Creates a new text layer.
|
||
</p>
|
||
<p>
|
||
This procedure creates a new text layer. The arguments are kept as
|
||
simple as necessary for the normal case. All text attributes,
|
||
however, can be modified with the appropriate
|
||
gimp_text_layer_set_*() procedures. The new layer still needs to be
|
||
added to the image, as this is not automatic. Add the new layer
|
||
using <a class="link" href="libgimp-gimpimage.html#gimp-image-add-layer" title="gimp_image_add_layer ()"><code class="function">gimp_image_add_layer()</code></a>.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>image_ID</code></em> :</span></p></td>
|
||
<td> The image.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
||
<td> The text to generate (in UTF-8 encoding).
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>fontname</code></em> :</span></p></td>
|
||
<td> The name of the font.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
|
||
<td> The size of text in either pixels or points.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
|
||
<td> The units of specified size.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The new text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_text ()">
|
||
<a name="gimp-text-layer-get-text"></a><h3>gimp_text_layer_get_text ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* gimp_text_layer_get_text (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the text from a text layer as string.
|
||
</p>
|
||
<p>
|
||
This procedure returns the text from a text layer as a string.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The text from the specified text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_text ()">
|
||
<a name="gimp-text-layer-set-text"></a><h3>gimp_text_layer_set_text ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_text (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *text);</pre>
|
||
<p>
|
||
Set the text of a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure changes the text of a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
|
||
<td> The new text to set.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_font ()">
|
||
<a name="gimp-text-layer-get-font"></a><h3>gimp_text_layer_get_font ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* gimp_text_layer_get_font (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the font from a text layer as string.
|
||
</p>
|
||
<p>
|
||
This procedure returns the name of the font from a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The font which is used in the specified text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_font ()">
|
||
<a name="gimp-text-layer-set-font"></a><h3>gimp_text_layer_set_font ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_font (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *font);</pre>
|
||
<p>
|
||
Set the font of a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure modifies the font used in the specified text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
|
||
<td> The new font to use.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_font_size ()">
|
||
<a name="gimp-text-layer-get-font-size"></a><h3>gimp_text_layer_get_font_size ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> gimp_text_layer_get_font_size (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> *unit);</pre>
|
||
<p>
|
||
Get the font size from a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the size of the font which is used in a text
|
||
layer. You will receive the size as a float 'font-size' in 'unit'
|
||
units.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
|
||
<td> The unit used for the font size.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The font size.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_font_size ()">
|
||
<a name="gimp-text-layer-set-font-size"></a><h3>gimp_text_layer_set_font_size ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_font_size (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> font_size,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpunit.html#GimpUnit"
|
||
>GimpUnit</a> unit);</pre>
|
||
<p>
|
||
Set the font size.
|
||
</p>
|
||
<p>
|
||
This procedure changes the font size of a text layer. The size of
|
||
your font will be a double 'font-size' of 'unit' units.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>font_size</code></em> :</span></p></td>
|
||
<td> The font size.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>unit</code></em> :</span></p></td>
|
||
<td> The unit to use for the font size.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_hinting ()">
|
||
<a name="gimp-text-layer-get-hinting"></a><h3>gimp_text_layer_get_hinting ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_get_hinting (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> *autohint);</pre>
|
||
<p>
|
||
Get information about hinting in the specified text layer.
|
||
</p>
|
||
<p>
|
||
This procedure provides information about the hinting that is being
|
||
used in a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>autohint</code></em> :</span></p></td>
|
||
<td> A flag which is true if the text layer is forced to use the autohinter from FreeType.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A flag which is true if hinting is used on the font.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_hinting ()">
|
||
<a name="gimp-text-layer-set-hinting"></a><h3>gimp_text_layer_set_hinting ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_hinting (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> hinting,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> autohint);</pre>
|
||
<p>
|
||
Enable/disable the use of hinting in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure enables or disables hinting on the text of a text
|
||
layer. If you enable 'auto-hint', FreeType\'s automatic hinter will
|
||
be used and hinting information from the font will be ignored.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>hinting</code></em> :</span></p></td>
|
||
<td> Enable/disable the use of hinting on the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>autohint</code></em> :</span></p></td>
|
||
<td> Force the use of the autohinter provided through FreeType.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_antialias ()">
|
||
<a name="gimp-text-layer-get-antialias"></a><h3>gimp_text_layer_get_antialias ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_get_antialias (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Check if antialiasing is used in the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure checks if antialiasing is enabled in the specified
|
||
text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A flag which is true if antialiasing is used for rendering the font in the text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_antialias ()">
|
||
<a name="gimp-text-layer-set-antialias"></a><h3>gimp_text_layer_set_antialias ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_antialias (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> antialias);</pre>
|
||
<p>
|
||
Enable/disable anti-aliasing in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure enables or disables anti-aliasing of the text in a
|
||
text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>antialias</code></em> :</span></p></td>
|
||
<td> Enable/disable antialiasing of the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_kerning ()">
|
||
<a name="gimp-text-layer-get-kerning"></a><h3>gimp_text_layer_get_kerning ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_get_kerning (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Check if kerning is used in the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure checks if kerning is enabled in the specified text
|
||
layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> A flag which is true if kerning is used in the text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_kerning ()">
|
||
<a name="gimp-text-layer-set-kerning"></a><h3>gimp_text_layer_set_kerning ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_kerning (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> kerning);</pre>
|
||
<p>
|
||
Enable/disable kerning in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure enables or disables kerning in a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>kerning</code></em> :</span></p></td>
|
||
<td> Enable/disable kerning in the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_language ()">
|
||
<a name="gimp-text-layer-get-language"></a><h3>gimp_text_layer_get_language ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a>* gimp_text_layer_get_language (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the language used in the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the language string which is set for the text
|
||
in the text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The language used in the text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_language ()">
|
||
<a name="gimp-text-layer-set-language"></a><h3>gimp_text_layer_set_language ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_language (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
|
||
>gchar</a> *language);</pre>
|
||
<p>
|
||
Set the language of the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the language of the text in text layer. For some
|
||
scripts the language has an influence of how the text is rendered.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>language</code></em> :</span></p></td>
|
||
<td> The new language to use for the text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_base_direction ()">
|
||
<a name="gimp-text-layer-get-base-direction"></a><h3>gimp_text_layer_get_base_direction ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextDirection"
|
||
>GimpTextDirection</a> gimp_text_layer_get_base_direction (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the base direction used for rendering the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the base direction used for rendering the
|
||
text in the text layer</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The based direction used for the text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_base_direction ()">
|
||
<a name="gimp-text-layer-set-base-direction"></a><h3>gimp_text_layer_set_base_direction ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_base_direction (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextDirection"
|
||
>GimpTextDirection</a> direction);</pre>
|
||
<p>
|
||
Set the base direction in the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the base direction used in applying the Unicode
|
||
bidirectional algorithm when rendering the text.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td>
|
||
<td> The base direction of the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_justification ()">
|
||
<a name="gimp-text-layer-get-justification"></a><h3>gimp_text_layer_get_justification ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextJustification"
|
||
>GimpTextJustification</a> gimp_text_layer_get_justification
|
||
(<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the text justification information of the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the alignment of the lines in the text layer
|
||
relative to each other.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The justification used in the text layer.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_justification ()">
|
||
<a name="gimp-text-layer-set-justification"></a><h3>gimp_text_layer_set_justification ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_justification (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpbase/libgimpbase-gimpbaseenums.html#GimpTextJustification"
|
||
>GimpTextJustification</a> justify);</pre>
|
||
<p>
|
||
Set the justification of the text in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the alignment of the lines in the text layer
|
||
relative to each other.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>justify</code></em> :</span></p></td>
|
||
<td> The justification for your text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_color ()">
|
||
<a name="gimp-text-layer-get-color"></a><h3>gimp_text_layer_get_color ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_get_color (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
||
>GimpRGB</a> *color);</pre>
|
||
<p>
|
||
Get the color of the text in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the color of the text in a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
|
||
<td> The color of the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_color ()">
|
||
<a name="gimp-text-layer-set-color"></a><h3>gimp_text_layer_set_color ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_color (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
const <a
|
||
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
|
||
>GimpRGB</a> *color);</pre>
|
||
<p>
|
||
Set the color of the text in the text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the text color in the text layer 'layer'.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
|
||
<td> The color to use for the text.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_indent ()">
|
||
<a name="gimp-text-layer-get-indent"></a><h3>gimp_text_layer_get_indent ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> gimp_text_layer_get_indent (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the line indentation of text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the indentation of the first line in a text
|
||
layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The indentation value of the first line.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_indent ()">
|
||
<a name="gimp-text-layer-set-indent"></a><h3>gimp_text_layer_set_indent ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_indent (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> indent);</pre>
|
||
<p>
|
||
Set the indentation of the first line in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the indentation of the first line in the text
|
||
layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
|
||
<td> The indentation for the first line.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_line_spacing ()">
|
||
<a name="gimp-text-layer-get-line-spacing"></a><h3>gimp_text_layer_get_line_spacing ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> gimp_text_layer_get_line_spacing (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the spacing between lines of text.
|
||
</p>
|
||
<p>
|
||
This procedure returns the line-spacing between lines of text in a
|
||
text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The line-spacing value.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_line_spacing ()">
|
||
<a name="gimp-text-layer-set-line-spacing"></a><h3>gimp_text_layer_set_line_spacing ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_line_spacing (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> line_spacing);</pre>
|
||
<p>
|
||
Adjust the line spacing in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the additional spacing used between lines a text
|
||
layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>line_spacing</code></em> :</span></p></td>
|
||
<td> The additional line spacing to use.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_get_letter_spacing ()">
|
||
<a name="gimp-text-layer-get-letter-spacing"></a><h3>gimp_text_layer_get_letter_spacing ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> gimp_text_layer_get_letter_spacing (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID);</pre>
|
||
<p>
|
||
Get the letter spacing used in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure returns the additional spacing between the single
|
||
glyps in a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> The letter-spacing value.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2" title="gimp_text_layer_set_letter_spacing ()">
|
||
<a name="gimp-text-layer-set-letter-spacing"></a><h3>gimp_text_layer_set_letter_spacing ()</h3>
|
||
<pre class="programlisting"><a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
|
||
>gboolean</a> gimp_text_layer_set_letter_spacing (<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint32"
|
||
>gint32</a> layer_ID,
|
||
<a
|
||
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"
|
||
>gdouble</a> letter_spacing);</pre>
|
||
<p>
|
||
Adjust the letter spacing in a text layer.
|
||
</p>
|
||
<p>
|
||
This procedure sets the additional spacing between the single glyphs
|
||
in a text layer.</p>
|
||
<p>
|
||
</p>
|
||
<div class="variablelist"><table border="0">
|
||
<col align="left" valign="top">
|
||
<tbody>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>layer_ID</code></em> :</span></p></td>
|
||
<td> The text layer.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><em class="parameter"><code>letter_spacing</code></em> :</span></p></td>
|
||
<td> The additional letter spacing to use.
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||
<td> TRUE on success.
|
||
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
<p class="since">Since GIMP 2.6</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<hr>
|
||
Generated by GTK-Doc V1.11</div>
|
||
</body>
|
||
</html>
|