Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > ed05dc5f357c49fdded780f52b150dce > files > 43

ploticus-2.41-2mdv2010.0.i586.rpm

<html>
<head>
<!-- This file has been generated by unroff 1.0, 03/11/09 12:56:14. -->
<!-- Do not edit! -->
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: fonts, special characters, etc.</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>Fonts, special characters, etc.</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.41 Mar2009
  <td></tr></table>
</td></tr>
<td>
<br>
<br>

<title>Manual page for Fonts,_special_characters,_etc.(PL)</title>
</head>
<body>

<h2>Non-ascii, extended ascii, and other special characters</h2>
Support depends on which graphics environment you're rendering in; see below.<tt> </tt>

<br><br><br>
<h2>Embedded newlines</h2>
In all graphics environments and fonts, ploticus recognizes backslash n (<tt>\n</tt>) as
representation of a newline, in all text that is displayed.<tt> </tt>

<br><br><br>
<h2>Inline superscripts and subscripts</h2>
In all graphics environments and fonts, ploticus (2.30+) recognizes the following inline constructs
for representing superscripts and subscripts in all text that is displayed:
<ul>
<li>
<b>^</b> (carat) begins and ends superscript content
<li>
<b>`</b> (grave quote) begins and ends subscript content
</ul>
<p>
<a href="../gallery/supsub.htm">
 See this example.<tt> </tt>
</a>
<b>Limitations:</b> superscripts and subscripts render correctly only when
using a monospace font such as the default GD fonts, default X11 fonts, or /Courier.<tt> </tt>
In scripts, to ensure backward compatibility, this capability must be turned on using proc 
settings (see the example).  Prefabs have this capability turned on by default.<tt> </tt>

<br><br><br>
<h2>Inline font changes and size changes</h2>
Not supported.  However, each text attribute generally has a "details" attribute where font and size can be specified.<tt> </tt>

<br><br><br>
<h2>Math formulas</h2>
Not supported, other than superscript and subscripts.<tt> </tt>

<br><br><br>
<h2>What fonts are available?</h2>
<p>
This depends on what output format you are producing, since
Ploticus does not include its own internal fonts.<tt> </tt>

<br><br><br>

<h2>PNG, GIF, etc.</h2>
If the default built-in GD code is used, a basic ascii font is
available in 5 sizes (you can specify any point size in ploticus; the nearest
available size will be used).<tt> </tt>
You can't set the font from ploticus; <tt>-font</tt> (etc.) will have no effect.<tt> </tt>
Vertical rendering is available.<tt> </tt>
Availability of symbols and nonroman characters is limited to those in ASCII
extended range.  Note: 
some characters in the GD extended range don't agree with X11 or PostScript
(there were apparently conflicting standards defining extended ascii).<tt> </tt>
The GD character set is defined in <tt>gdfontg.c</tt>, which may be modified
to suit if necessary.<tt> </tt>

<br><br><br>

<h2>PNG, JPEG, WBMP with FreeType2 support</h2>
If your ploticus build uses GD with FreeType2 support, you can use TrueType fonts.<tt> </tt>
The basic GD ascii font is also available in 5 sizes (font name is <tt>ascii</tt>), and is the default.<tt> </tt>
You can set the font from ploticus using <tt>-font</tt>, 
<a href="page.html">
 proc page
</a>
<tt>font</tt> attribute,
or <tt>font</tt> in any 
<a href="textdetails.html">
 textdetails
</a>
attribute.<tt> </tt>
<p>
To select a TrueType font, specify its <b>file name</b>, without the <tt>.ttf</tt> extension.<tt> </tt>
Ploticus has no provision for mapping "font names" to TrueType file names.<tt> </tt>
Eg. if you have a font file called <tt>times.ttf</tt> you would select it by saying:
<dl>
<dt> <dd>
<tt>-font times </tt>
</dl>
<p>
You will need to have some TrueType .ttf font files stored in a directory somewhere.  
The environment variable <b>GDFONTPATH</b> must be set to contain the pathname of this directory.<tt> </tt>
TrueType font files may be found on win32 machines in <tt>c:/winnt/fonts</tt> or they may be downloaded on the web.  
Font file names containing embedded whitespace will likely be problematic.. if so rename (or soft-link) to
a name that doesn't have embedded whitespace.<tt> </tt>
<p>
Vertical rendering is available.  
Availability of symbols and nonroman characters:
Constructs such as <tt>&amp;#192</tt> may be used, and unicode fonts can be used (see below).<tt> </tt>
<p>
<a href="../gallery/stock.jpeg">
 Here is an example rendered using TTF sans serif font.<tt> </tt>
</a>
For more information on building ploticus to use FreeType2, see ./src/FreeType2 
and ./src/Makefile.  

<br><br><br>

<h2>PostScript, EPS</h2>
Uses PostScript fonts.  The default font is <tt>/Helvetica</tt>.<tt> </tt>
(Postscript font names must always be written with the initial slash.)
You can set the font from ploticus using <tt>-font</tt>, 
<a href="page.html">
 proc page
</a>
<tt>font</tt> attribute,
or <tt>font</tt> in any 
<a href="textdetails.html">
 textdetails
</a>
attribute, for example:
<dl>
<dt> <dd>
<tt>-font /Helvetica-Oblique</tt>
</dl>
<p>
Usually these fonts are available: <tt>/Helvetica /Helvica-Oblique /Helvetica-Bold
/Helvetica-BoldOblique /Times-Roman /Times-Bold</tt>; many others are
usually available as well.<tt> </tt>
Vertical rendering is available.<tt> </tt>
Availability of symbols and nonroman characters:
As of version 2.01, the ploticus postscript driver supports
ISO-LATIN encoding, so that European characters and symbols in ASCII extended range
may be used.<tt> </tt>
You can use the troff-like
<a href="specialchars.html">
 special characters
</a>
feature that uses the /Symbols font.<tt> </tt>

<br><br><br>
<h2>SVG</h2>
If you're using
<a href="svg.html">
 SVG
</a>
, font availablility and naming depends on the environment in
effect where the SVG file is being viewed, ie. if you're viewing on MSIE on a win32 system see the
list of fonts available in MS Word.  SVG viewing environments generally are "intelligent" about 
font selection and substituting.<tt> </tt>
<p>
Ploticus uses a <tt>Helvetica</tt> as the default font.<tt> </tt>
I've also used <tt>Courier</tt>, <tt>Times-Roman</tt>,
<tt>Bookman</tt>, <tt>Stencil</tt>, <tt>Magneto</tt>, etc.<tt> </tt>
You can set the font from ploticus using <tt>-font</tt>, 
<a href="page.html">
 proc page
</a>
<tt>font</tt> attribute,
or <tt>font</tt> in any 
<a href="textdetails.html">
 textdetails
</a>
attribute, for example:
<dl>
<dt> <dd>
<tt>-font Times-Roman</tt>
</dl>
<p>
Font file names containing embedded whitespace may be problematic.. if so rename (or soft-link) to
a name that doesn't have embedded whitespace.<tt> </tt>
<p>
Vertical rendering is available.<tt> </tt>
European characters and symbols in ASCII extended range may be used.<tt> </tt>
Constructs such as <tt>&amp;#192</tt> may be used, and unicode fonts can be used (see below)
with <tt>utf-8</tt> encoding.<tt> </tt>

<a name=swf></a>
<br><br><br>
<h2>SWF (flash)</h2>
The environment variable SWF_FONTS_DIR must be set to the full
pathname of a directory containing your <tt>.fdb</tt> font files.<tt> </tt>
The default will be <tt>Helvetica.fdb</tt>; you can select a font from the command line
like this: <tt>-font Times-Roman</tt> which would then attempt to load
<tt>Times-Roman.fdb</tt> from your SWF_FONTS_DIR directory.<tt> </tt>
<tt>Helvetica.fdb</tt> and a few other fonts are
available as accessories from
<a href="download.html#acc">
 the download page.<tt> </tt>
</a>
Font file names containing embedded whitespace are problematic with ploticus' SWF driver.. 
rename (or soft-link) to a name that doesn't have embedded whitespace.<tt> </tt>


<br><br><br>

<h2>X11</h2>
Always uses the same fixed width font.  
You can't set the font from ploticus; <tt>-font</tt> (etc.) will have no effect.<tt> </tt>
Depending on availablility, this will be
either <tt>-adobe-courier-bold-r-normal</tt>, <tt>-misc-fixed-medium-r-normal</tt>, 
or as a last resort, <tt>9x15</tt>.  Proper vertical rendering is not available.<tt> </tt>
Availability of symbols and nonroman characters is limited to those in ASCII
extended range.<tt> </tt>

<br><br><br>
<h2>UNICODE FONTS</h2>
Unicode fonts may be used for titles, labels, tags, category names, etc. in the script or
in data, if you are rendering in SVG or PNG/JPEG with FreeType2 (versions 2.05+).<tt> </tt>
Unicode is not yet supported within dates.<tt> </tt>
<p>
Your ploticus script or prefab parameters should be <b>utf-8</b> encoded.<tt> </tt>
You will need a unicode TTF font such as Bitstream Cyberbit (freely downloadable
on the internet).  Set ploticus to use this font.<tt> </tt>
For SVG, set the XML encoding to <tt>utf-8</tt>.<tt> </tt>
Font and XML encoding can be set using
<a href="settings.html">
 proc settings
</a>
, from the 
<a href="pl.1.html">
 pl command line
</a>
, or in a 
<a href="config.html">
 config file.<tt> </tt>
</a>
).<tt> </tt>
PNG/JPEG can be viewed by standard means, since the fonts have already been
rendered and do not need to be available to the viewer application.  
SVG must be viewed by an application that can work with your Unicode font(s)
(MSIE browser currently seems to do the best job).<tt> </tt>


<br><br><br>
<h2>EXAMPLES</h2>
<p>
This example shows the ascii and Western European range that is available
by default.<tt> </tt>
<p>
<center>
<a href="../gallery/ascii.htm"><img src="../gallery/ascii.gif"></a>
</center>
<br><br><br>
<p>
This example demonstrates rendering of Chinese using a unicode font.<tt> </tt>
<p>
<center>
<a href="../gallery/unicode.htm"><img src="../gallery/unicode.png"></a>
</center>
<br><br><br>
<p>
This example demonstrates superscripts and subscripts.<tt> </tt>
<p>
<center>
<a href="../gallery/supsub.htm"><img src="../gallery/supsub.gif"></a>
</center>



<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
<table><tr><td>
Ploticus is hosted at http://ploticus.sourceforge.net</td><td> &nbsp; </td><td>
<a href="http://sourceforge.net/projects/ploticus"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=38453&type=12" 
width="120" height="30" border="0" 
alt="Get ploticus data display engine at SourceForge.net. Fast, secure and Free Open Source software downloads" /></a>
</td></tr></table>


</center>
<p><hr>
Markup created by <em>unroff</em> 1.0,&#160;<tt> </tt>&#160;<tt> </tt>March 11, 2009.
</body>
</html>