Dear Wiki user,

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

The "AFPOutput" page has been changed by JeremiasMaerki.
The comment on this change is: new things learned about AFP fonts.
http://wiki.apache.org/xmlgraphics-fop/AFPOutput?action=diff&rev1=5&rev2=6

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

  
  == Fonts ==
  
- At the moment, only AFP bitmap and outline fonts (single-byte) are supported. 
That limits the set of printable characters to what the specified codepage file 
provides. Many fonts, however, have more than 256 glyphs. There are two 
different directions we could take for better Unicode coverage:
+ At the moment, only AFP bitmap and outline fonts (single-byte) are supported. 
That limits the set of printable characters to what the specified codepage file 
provides. Many fonts, however, have more than 256 glyphs. There are three 
different directions we could take for better Unicode coverage:
  
   1. Add support for double-byte fonts. This is similar to what we do with 
single-byte fonts in PDF and PostScript where multiple single-byte encodings 
are generated. AFP provides double-byte fonts by allowing to span out a matrix 
of codepages. Basically, you select the codepage with the first byte and the 
glyph with the second.
+  1. CID Keyed Fonts (Type 0) which use GCUIDs (Graphic Character UCS 
Identifier) for glyph names (also called "Unicode Fonts" in AFP jargon).
   1. Add support for TrueType fonts. That's available in newer environments 
and would allow to embed Unicode characters as glyph selectors.
  
- One difficulty will be mapping Unicode scalar values to GCGIDs (Graphic 
Character Global Identifier from IBM's CDRA). GCGIDs are character names with a 
length of 4 to 8 characters. A large collection of Unicode characters can be 
mapped to GCGIDs but there's no 1:1 relationship. However, for most use cases, 
using this subset would probably be sufficient. So far, no machine-readable map 
for Unicode to GCGID could be found. A human-readable map can be found here: 
http://www-01.ibm.com/software/globalization/gcgid/gcgid.jsp. If you have an 
AFP fonts with GCUIDs (Graphic Character UCS Identifier) instead of GCGIDs, 
that might also work because GCUIDs just especially prefixed Unicode values 
expressed as 8 byte string. At the moment, the mapping from Unicode to code 
points (8bit inside the codepage) happens through the "encoding" setting on the 
font configuration element. However, that codepage file/object might also be 
generated by FOP.
+ One difficulty will be mapping Unicode scalar values to GCGIDs (Graphic 
Character Global Identifier from IBM's CDRA). GCGIDs are character names with a 
length of 4 to 8 characters. A large collection of Unicode characters can be 
mapped to GCGIDs but there's no 1:1 relationship. However, for most use cases, 
using this subset would probably be sufficient. So far, no machine-readable map 
for Unicode to GCGID could be found. A human-readable map can be found here: 
http://www-01.ibm.com/software/globalization/gcgid/gcgid.jsp. If you have an 
AFP fonts with GCUIDs (Graphic Character UCS Identifier) instead of GCGIDs, 
i.e. a "Unicode fonts", that might also work because GCUIDs are just Unicode 
values expressed as 8 byte string and with the prefix "U000". At the moment, 
the mapping from Unicode to code points (8bit inside the codepage) happens 
through the "encoding" setting on the font configuration element. However, that 
codepage file/object might also be generated by FOP in the future.
+ 
+ More details on AFP fonts on the [[AFPFonts]] page.
  
  == Glyph positioning ==
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to