![fontbase myfonts fontbase myfonts](https://cdn.myfonts.net/s/aw/720x360/106/0/54467.jpg)
- #Fontbase myfonts how to#
- #Fontbase myfonts pdf#
- #Fontbase myfonts install#
- #Fontbase myfonts registration#
For convenience, FOP allows bulk registering of fonts you can either tell FOP to find your operating system fonts or you can specify directories that it will search for support fonts. This is done in the configuration file and once per renderer (because each output format is a little different). If you want FOP to use custom fonts, you need to tell it where to find them.
#Fontbase myfonts registration#
Font registration via XML font metrics file is still supported and may still be necessary for some very special cases as fallback variant while we stabilize font auto-detection.īasic information about fonts can be found at:
![fontbase myfonts fontbase myfonts](https://cdnimg.fonts.net/CatalogImages/23/1810741.png)
FOP can find fonts installed in your operating system or can scan user-specified directories for fonts. This unconvenient step has been removed and in addition to that, FOP supports auto-registration of fonts, i.e. In earlier FOP versions, it was always necessary to create an XML font metrics file if you wanted to add a custom font. Details in this case can be found on the page about output formats. Other renderers (like AFP) support other font formats.
#Fontbase myfonts how to#
This section shows how to add Type 1 and TrueType fonts to the PDF, PostScript and Java2D-based renderers. Support for custom fonts is highly output format dependent (see above table).
#Fontbase myfonts pdf#
Please note that this is not true for other output formats such as PDF or PostScript.
#Fontbase myfonts install#
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".
![fontbase myfonts fontbase myfonts](https://d1ly52g9wjvbd2.cloudfront.net/img16/T/R/NMY_Trade-Gothic-Display-1-BaseA.png)
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.