XMLMill - convert xml to pdf with java. Generate PDF from xml/xsl.

XMLMill User Guide

Version: 3.00 Date: January 2nd, 2008
This tutorial is opened in a separate window in order to maximize the legibility of this tutorial.
To return to XMLMill, close this browser window

This page as PDFPrinter friendly pageThis guide (!) as PDF

XMLMill TrueType Fonts

XMLMill supports Unicode TrueType fonts, which can be embedded and/or subsetted in the generated PDF document.

This chapter explains the functionality XMLMill offers regarding TrueType fonts. The configuration chapter explains how to confgure XMLMill using a TrueType font.

  • OpenType fonts will be added in a next version of XMLMill.

Overview

TrueType fonts are supported with the following limitations:

  • XMLMill supports only Unicode-enabled TrueType fonts, this means fonts with an internal cmap table for mapping internal glyph IDs (selectors) to Unicode characters.

Following file types are supported:

  • Standalone TrueType fonts (*.ttf font files)
  • Collection TrueType fonts (.ttc font files)

Encoding: Unicode

When a XML document is converted to a PDF document, the xml/xsl encoding is converted to UTF-16 (ISO-10646 codepage). In a next step these encodings will be mapped to the cmap entries defined in the true type font file. As a result the user does not need to know which glyph is represented by which character in the true type font file. Moreover, switching from one font to another should not be any problem (as long as the requested character is available in the font-file).

  • If a character does not exist in the font-file, the font's .notdef character will be displayed.

Font Embedding and Subsetting

Font Embedding

A TrueType font can be embedded in a pdf document.

If a TrueType font is not embedded, Acrobat will take it from the target system if available, or construct a substitute font according to the font descriptor in the PDF.

To use a TrueType font you need:

  • the corresponding .ttf file.
  • the corresponding font-entry in a .ttc file.

Font Subsetting

In order to decrease the size of the PDF output, XMLMill can embed only those characters from a font which are actually used in the document. This process is called font subsetting.

This is done by setting the subset attribute to on in the configuration file.

Font kerning

Font kerning is the process of determining the spacing adjustments between characters depending on context.

Font kerning is optional and may or may not be present for a given font. Kerning data is supplied in two forms: track-kerning and pair-wise-kerning. Track kerning is applied to all characters uniformly, whereas pair-wise kerning is applied to specific character pairs. Track kerning and pair-wise kerning can be used independently or together (that is, it is possible to apply track kerning to a line of text and then to apply pair-wise kerning).

  • XMLMill supports currently only pair-wise-kerning. Track-kerning will be added in a next version of XMLMill.

Font Subsetting

In order to decrease the size of the PDF output, XMLMill can embed only those characters from a font which are actually used in the document. This process is called font subsetting.

Ligatures

Ligatures are currently not supported.

Composite characters

Composite characters are currently not supported.

  • TrueType fonts can be configured by modifying the <external> element in the configuration file.
Copyright © 2001 - 2012. All rights reserved. XMLMill and XMLMill logo are trademarks of Pecunia Data Systems, bvba.
Powered by Apache CocoonPowered by XMLMill