![]() ![]() ![]() Support for custom fonts is highly output format dependent (see above table). ![]() Please note that this is not true for other output formats such as PDF or PostScript. When working with one of these output formats and you're missing a font, just install it in your operating system and they should be available for these renderers. Through operating system registration, the AWT subsystem knows what fonts are available on the system, and the font metrics for each one. The Java2D family of renderers (Java2D, AWT, Print, TIFF, PNG), use the Java AWT subsystem for font metric information. This glyph substitution is only a last resort. A better way is to use a font that has all the necessary glyphs. But there's no guarantee that the result will be as expected (for example, in the case of hyphens and similar glyphs). This registry can supply alternative glyphs in some cases (like using space when a no-break space is requested). Before it does that, it consults a (currently hard-coded) registry of glyph substitution groups (see Glyphs.java in Apache XML Graphics Commons). If no glyph can be found for a given character, FOP will issue a warning and use the glpyh for "#" (if available) instead. Missing GlyphsĮvery font contains a particular set of glyphs. "any" is internally mapped to the Base-14 font "Times" (see above). When FOP does not have a specific font at its disposal (because it's not installed in the operating system or set up in FOP's configuration), the font is replaced with "any". ![]() If you need to make sure that there are no such substitutions, you need to specify an explicit font and embed it in the target document. Other document viewers may do similar font substitutions. GhostScript replaces "Helvetica" with "Nimbus Sans L" and "Times" with "Nimbus Roman No9 L". Please note that recent versions of Adobe Acrobat Reader replace "Helvetica" with "Arial" and "Times" with "Times New Roman" internally. Times, Times Roman, Times-Roman, serif, any The following font family names are hard-coded into FOP for the Base-14 font set: Base-14 font The Adobe PostScript and PDF Specification specify a set of 14 fonts that must be available to every PostScript interpreter and PDF reader: Helvetica (normal, bold, italic, bold italic), Times (normal, bold, italic, bold italic), Courier (normal, bold, italic, bold italic), Symbol and ZapfDingbats. The following table summarizes the font capabilities of the various Apache™ FOP renderers: Renderer Hope to see you there! ApacheCon Europe ¶ Search Apache XML Graphics ¶ ApacheCon N. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |