You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/14 16:29:06 UTC

[Xmlgraphics-fop Wiki] Update of "AFPFonts" by JeremiasMaerki

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.

The "AFPFonts" page has been changed by JeremiasMaerki.
The comment on this change is: Writing down how to support Unicode fonts in AFP.
http://wiki.apache.org/xmlgraphics-fop/AFPFonts

--------------------------------------------------

New page:
= Unicode Fonts in AFP =

This section describes the necessary steps to support Unicode fonts in AFP. "Unicode fonts" in AFP jargon are outline fonts (CID Keyed font (Type 0)). They define their glyphs using GCUIDs (Graphic Character UCS Identifiers), for example "U0000061" for Unicode 0x0061 (LATIN SMALL LETTER A, "a").

As an example, we're going to take the font "J-Heisei Mincho Unicode". It's contained in an AFP Resource called "CZJHMNU". The font contains a large number of glyphs identified by GCUIDs and in Type 0 format.

The font comes with a code page file "T11200" which uses double-byte UCS representation. That  basically enables using UTF-16BE for character data in PTOCA.

So, how can FOP now use this?

The first thing we need is a coded font resource (BCF/ECF) called "XZJHMNU" which combines "CZJHMNU" and "T11200".

Later in the active environment group of the page, a Map Coded Font (MCF) is needed to reference "XZJHMNU" and scale the font to the requested size.

Finally, in PTOCA, the TRN data can simply be UTF-16BE encoded character data.

That's it.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org