67 lines
2.6 KiB
HTML
67 lines
2.6 KiB
HTML
<!-- Creator : groff version 1.24.1 -->
|
|
<!-- CreationDate: Mon Mar 16 21:28:01 2026 -->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta name="generator" content="groff -Thtml, see www.gnu.org">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="Content-Style" content="text/css">
|
|
<style type="text/css">
|
|
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
h1 { text-align: center }
|
|
</style>
|
|
<title>pic-7.html</title>
|
|
|
|
</head>
|
|
<hr>
|
|
[ <a href="pic-6.html">prev</a> | <a href="pic-8.html">next</a> | <a href="pic.html">top</a> ]
|
|
<hr>
|
|
|
|
|
|
<h2>7. More About Text Placement
|
|
<a name="7. More About Text Placement"></a>
|
|
</h2>
|
|
|
|
|
|
<p style="margin-top: 1em"><font color="#000000">By
|
|
default, text is centered at the geometric center of the
|
|
object it is associated with. The modifier <b>ljust</b>
|
|
causes the left end to be at the specified point (which
|
|
means that the text lies to the right of the specified
|
|
place!), the modifier <b>rjust</b> puts the right end at the
|
|
place. The modifiers <b>above</b> and <b>below</b> center
|
|
the text one half line space in the given
|
|
direction.</font></p>
|
|
|
|
<p style="margin-top: 1em"><font color="#000000">Text
|
|
attributes can be combined:</font></p>
|
|
|
|
|
|
<p align="center" style="margin-top: 1em"><font color="#000000"><img src="img/pic-26.png" alt="Image img/pic-26.png"></font></p>
|
|
|
|
|
|
<p align="center" style="margin-top: 1em"><font color="#000000">Figure
|
|
7-1: Text attributes</font></p>
|
|
|
|
<p style="margin-top: 1em"><font color="#000000">What
|
|
actually happens is that <i>n</i> text strings are centered
|
|
in a box that is <b>textwid</b> wide by <b>textht</b> high.
|
|
Both these variables are initially zero (that is
|
|
<b>pic</b>’s way of not making assumptions about
|
|
<i>[tg]roff</i>(1)’s default point size).</font></p>
|
|
|
|
<p style="margin-top: 1em"><font color="#000000">In GNU
|
|
<b>gpic</b>, objects can have an <b>aligned</b> attribute.
|
|
This only works if the postprocessor is <b>grops</b> or
|
|
<b>gropdf</b>. Any text associated with an object having the
|
|
<b>aligned</b> attribute is rotated about the center of the
|
|
object so that it is aligned in the direction from the start
|
|
point to the end point of the object. Note that this
|
|
attribute has no effect for objects whose start and end
|
|
points are coincident.</font></p>
|
|
<hr>
|
|
[ <a href="pic-6.html">prev</a> | <a href="pic-8.html">next</a> | <a href="pic.html">top</a> ]
|
|
<hr>
|