REPORTER 22.1

Font Mapping Table

Font Mapping Table

REPORTER uses a font mapping table to determine which font to offer as a suitable replacement for any given font. An extract from the font mapping table is shown below:

font-family generic replacement replacement 2
Arial Special sans-serif Arial Helvetica
Airal Unicode MS sans-serif Arial Helvetica
Bahnschrift sans-serif
Baskerville Old Face serif
Batang serif
BatangChe serif
Bauhaus 93 fantasy
Beesknees ITC fantasy
Bell MT serif Bitstream Charter
Berlin Sans FB sans-serif
Bernard MT Condensed serif
Bon Apetit MT monospace
Book Antiqua serif Palatino Linotype DejaVu Serif
Bookman serif Bookman Old Style
Bookman Old Style serif Bookman
Bookshelf Symbol symbol
Bradley Hand ITC cursive

The font mapping table supplied in the REPORTER installation was compiled from lists of common font mapping alternatives for Windows and Linux. For some fonts, one or two specifically named fonts are given as replacement and replacement 2 . Often, these are alternatives within a font family (e.g. Arial Unicode MS Arial) or typical Linux replacements for typical Windows fonts (e.g. Bell MT Bitstream Charter). All of the fonts in the mapping table have a generic replacement type. This can be one of:

  • cursive
  • fantasy
  • monospace
  • sans-serif
  • serif
  • symbol

These generic categories are the same as the widely recognised Cascading Style Sheets (CSS) font-family property generic categories, with the addition of symbol (an extra generic cateogry added in REPORTER to aid support of the legacy font Symbol).

If REPORTER encounters a missing font, it will search first for the replacement font, and then the replacement 2 font (if either is specified). If neither of those fonts are available, it will search for the generic default. These are:

generic Windows Linux
cursive Monotype Corsiva URW Chancery L
fantasy Impact Impact
monospace Courier New Courier 10 Pitch
sans-serif Arial Liberation Sans
serif Times New Roman Nimbus Roman No9 L
symbol Symbol Standard Symbols L

Failing that, it will use the generic sans-serif default (Arial on Windows, Liberation Sans on Linux). This will happen if the requested font is not featured in the font mapping table, or if one of the generic defaults is not installed.

The generic default fonts listed above can be customised via Oasys preferences (the oa_pref file).

The font mapping table is stored in CSV format at $OA_INSTALL/reporter_library/fonts/font_mapping.csv . Please contact Oasys Ltd Support if you encounter repeated font substitution issues. Alternatively, you can edit it to customise your own font mappings. You can also specify a font mapping CSV file at an alternative location to the installation location by using the preference reporter*font_mapping_table .