diff options
author | Jeremias Maerki <jeremias@apache.org> | 2010-01-21 17:37:07 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2010-01-21 17:37:07 +0000 |
commit | bb2844e0645707a666fcf43e7fbcb32c8daca49c (patch) | |
tree | f4f06a9011c874cac381d97942cac868e0ff15f8 /src/documentation/content | |
parent | ab6e2cc40a0c0dde6b98eec000ab94d1c7e35cb1 (diff) | |
download | xmlgraphics-fop-bb2844e0645707a666fcf43e7fbcb32c8daca49c.tar.gz xmlgraphics-fop-bb2844e0645707a666fcf43e7fbcb32c8daca49c.zip |
Bugzilla #48567:
Initial support for CID-keyed double-byte fonts (Type 0) in AFP output.
Submitted by: Peter Hancock <peter.hancock.at.gmail.com>
Patch modified by jeremias:
- as discussed: removed fallback character code
- as discussed: changed "double-byte" to "CIDKeyed" for the font type.
- some cosmetic changes
- removed some dead code and commented code.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@901793 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/documentation/content')
-rw-r--r-- | src/documentation/content/xdocs/trunk/output.xml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/documentation/content/xdocs/trunk/output.xml b/src/documentation/content/xdocs/trunk/output.xml index 01af40a56..54ed357a0 100644 --- a/src/documentation/content/xdocs/trunk/output.xml +++ b/src/documentation/content/xdocs/trunk/output.xml @@ -548,10 +548,11 @@ out = proc.getOutputStream();]]></source> <!-- AFP Renderer --> ... </renderer>]]></source> - <p>There are 3 font configuration variants supported:</p> + <p>There are 4 font configuration variants supported:</p> <ol> <li>IBM Raster fonts</li> <li>IBM Outline fonts</li> + <li>IBM CID-keyed (Type 0) fonts</li> <li>FOP built-in Base14 fonts</li> </ol> <p>A typical raster font configuration looks like:</p> @@ -600,6 +601,18 @@ out = proc.getOutputStream();]]></source> supported for the time being, but you should move to using the more flexible "base-uri" attribute so you can profit from the power of URI resolvers. </note> + <p>A CID-keyed font (Type 0, double-byte outline font) configuration is much the same as an outline font. + However, the characterset definition is now required within the afp-font element.</p> +<source><![CDATA[ <font> + <afp-font type="CIDKeyed" characterset="CZJHMNU" + codepage="T1120000" encoding="UnicodeBigUnmarked" + base-uri="file:/fonts/ibm" /> + <font-triplet name="J-Heisei Mincho" style="normal" weight="normal" /> + </font> +]]></source> + <p> +Note that the value of the encoding attribute in the example is the double-byte encoding 'UnicodeBigUnmarked' (UTF-16BE). + </p> <p>Experimentation has shown that the font metrics for the FOP built-in Base14 fonts are actually very similar to some of the IBM outline and raster fonts. In cases were the IBM font files are not available the base-uri attribute in the afp-font element can be replaced by a base14-font attribute |