Download Fanurio User Guide

Transcript
Templates guide: How to create
and edit templates for Fanurio
<div id="page-footer">
<p>Footer text</p>
<p>Page <span class="page-number"/> of <span class="page-count"/></p>
</div>
<div id="page-content">
<p>Page 1.</p>
<p style="page-break-after:always;"/>
<p>Page 2.</p>
</div>
</body>
</html>
4.5.2. Fonts
If you want to use specific fonts for your templates, make sure you copy the font files to the same
folder where the template is located and then change the template to use them.
Fanurio can only work with TrueType (*.ttf) and OpenType (*.otf) fonts. If you have other types of
fonts, you need to convert them to one of these types. You should copy the font files only if you use
the template to export the document to PDF. If you export your documents to HTML, it's the job of
the browser to render them correctly and you don't have to copy them anymore.
The following CSS code configures the template to use a specific font:
body {
font-family: "AG Buch Condensed BQ"; /* replace this with your font */
}
If the font doesn't render correctly, you also have to specify the character encoding. By default, Fanurio
assumes it is UTF-8 (Unicode) but this will not work every time.
The following code configures the template to use a certain character encoding:
<head>
...
<!-- Replace Cp1252 with your charset -->
<meta http-equiv="Content-Type" content="application/pdf; charset=Cp1252"/>
...
</head>
Cp1252 refers to the West European Latin character encoding. Other encodings are:
• Cp1250 - East European Latin
• Cp1251 - Cyrillic
• Cp1252 - West European Latin
• Cp1253 - Greek
• Cp1254 - Turkish
• Cp1255 - Hebrew
• Cp1256 - Arabic
• Cp1257 - Baltic
93