Files
PyRIGS/z3c/rml/tests/input/rml-examples-005-fonts.rml
2014-12-07 17:32:25 +00:00

59 lines
2.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Andy Robinson (ReportLab Inc.) -->
<!DOCTYPE document SYSTEM "rml_1_0.dtd">
<document filename="test_005_fonts.pdf">
<docinit>
<registerType1Face afmFile="DarkGardenMK.afm" pfbFile="DarkGardenMK.pfb"/>
<registerFont name="DarkGardenMK" faceName="DarkGardenMK" encName="WinAnsiEncoding"/>
<registerTTFont faceName="Vera" fileName="Vera.ttf"/>
</docinit>
<template>
<pageTemplate id="main">
<frame id="first" x1="72" y1="72" width="451" height="698"/>
</pageTemplate>
</template>
<stylesheet>
<paraStyle name="robot" fontName="DarkGardenMK" fontSize="12" spaceBefore="0.5 cm"/>
<paraStyle name="Vera" fontName="Vera" fontSize="12" spaceBefore="0.5 cm"/>
</stylesheet>
<story>
<para>
This paragraph is an ordinary font style, but switches font.
<font face="DarkGardenMK">This is in a custom font</font>
and <font face="Vera">this is in a custom TTF font</font>.
<!-- doesn't work <font face="DarkGardenMK"> -->
<!-- Yahoo! Rooms
Asian Markets - Discuss the latest market activity.
Biotechnology - Discuss the latest research and advances in this field.
Bond Market - Come here to chat live about the bond market!
Career Corner - Find career tips and advice at http://careers.yahoo.com/
Small Business - Where professionals meet. Visit http://smallbusiness.yahoo.com/
StockWatch - Discuss the latest on Wall St. Visit http://finance.yahoo.com/ -->
<!-- </font> -->
</para>
<para style="robot">This is a whole paragraph in the 'robot' style.</para>
<para style="Vera">This is a whole paragraph in the 'Vera' style.</para>
<illustration height="100" width="1">
<setFont name="DarkGardenMK" size="25"/>
<drawString x="25" y="25">"DarkGardenMK"</drawString>
<setFont name="Vera" size="25"/>
<drawString x="25" y="50">"Vera"</drawString>
<setFont name="Helvetica" size="16"/>
<drawString x="25" y="75">This is drawn directly in an illustration</drawString>
</illustration>
<para>
<font face="Helvetica" size="9">This is Helvetica (plain).</font>
<font face="Helvetica" size="9"><i>This is Helvetica + italics.</i></font>
<font face="Helvetica-Oblique" size="9">This is Helvetica-Oblique.</font>
<font face="Helvetica-Oblique" size="9"><b>This is Helvetica-Oblique + BOLD.</b></font>
</para>
<para>
<i>This is plain text (no font face given) + italic.</i>
</para>
</story>
</document>