Postscript-specific directives in html2ps.config
Option |
Appears at |
Description |
fonts |
Top level |
Contains information about font-family value to Postscript font name mappings.
See descrripton of nested directives. |
family |
/fonts |
Contains information about particular font-family value mapping. Attributes:
- name – value of 'font-family' property being mapped.
|
encoding-override |
/fonts, /fonts/family |
Contains information about exceptions in font-family mappings. Attributes:
- name – comma-separated list of encodings to apply this rule
for.
For example, normally 'times' family is mapped to /Times-Roman font. On
the other hand, this standard font does not contain cyrillic symbols, so
when one of the cyrillic encodings is met, 'times' will be mapped to /TimesCyr-Medium. |
alias |
/fonts |
List of font-family aliases. Attributes:
- alias – font family alias to be translated
- family – real font family name for this alias
Note that alias resolving is done once, so there's not much use of constructions
similar to
<alias alias="verdana" family="arial"/>
<alias alias="arial" family="helvetica"/>
|
metrics |
/fonts |
Reference to a font metric file for this font family. Attributes:
- typeface – typeface name (refers to the ones used in normal,
italic and oblique attributes)
- file – name of the font metric (AFM) file (searched in TYPE1_FONT_REPOSITORY directory)
|
normal |
/fonts/family, /fonts/family/encoding-override, /encoding-override |
System font names for normal font variant. Attributes:
- normal – font name for roman (non-italic) font
- italic – font name for italic font
- oblique – font name for oblique font
|
bold |
/fonts/family, /fonts/family/encoding-override, /encoding-override |
System font names for bold font variant. Attributes:
- normal – font name for bold roman (non-italic) font
- italic – font name for bold italic font
- oblique – font name for bold oblique font
|