2010-07-18 05:56:35 -04:00
|
|
|
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
|
|
|
|
2010-07-18 06:20:44 -04:00
|
|
|
<chapter id="text"
|
|
|
|
xmlns:xi="http://www.w3.org/2003/XInclude">
|
2010-07-18 05:56:35 -04:00
|
|
|
<title>Text</title>
|
|
|
|
|
|
|
|
<epigraph>
|
|
|
|
<attribution>Antoine de Saint-Exupery</attribution>
|
|
|
|
<para>A rock pile ceases to be a rock pile the moment a single man
|
|
|
|
contemplates it, bearing within him the image of a cathedral.</para>
|
|
|
|
</epigraph>
|
|
|
|
|
|
|
|
<section id="text-introduction">
|
|
|
|
<title>Introduction</title>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="text-shadow">
|
|
|
|
<title>Drawing a shadow under the text</title>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Problem</title>
|
|
|
|
|
|
|
|
<para>You want to draw a shadow under the text displayed by a
|
|
|
|
ClutterText actor.</para>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Solution</title>
|
|
|
|
|
2010-07-18 06:20:44 -04:00
|
|
|
<screenshot>
|
|
|
|
<mediaobject>
|
|
|
|
<imageobject>
|
|
|
|
<imagedata format="PNG"
|
|
|
|
fileref="images/text-shadow.png" />
|
|
|
|
</imageobject>
|
|
|
|
<alt>
|
|
|
|
<para>A ClutterText actor painting a shadow underneath its
|
|
|
|
contents</para>
|
|
|
|
</alt>
|
|
|
|
</mediaobject>
|
|
|
|
</screenshot>
|
2010-07-18 05:56:35 -04:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<title>Discussion</title>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
2010-07-18 06:20:44 -04:00
|
|
|
<section>
|
|
|
|
<title>Full example</title>
|
|
|
|
|
|
|
|
<example id="text-shadow-example">
|
|
|
|
<title>Creating a shadow of a text</title>
|
|
|
|
<programlisting>
|
|
|
|
<xi:include href="examples/text-shadow.c" parse="text">
|
|
|
|
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
|
|
|
|
</xi:include>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</section>
|
|
|
|
|
2010-07-18 05:56:35 -04:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</chapter>
|