Font Support for PostScript Output
Font rendering for PostScript depends on the font files on your machine. Only Adobe PostScript Type 1 fonts are supported for PostScript printing.
Uniface provides a basic set of Adobe Font Metric files (*.afm) in the \common\afm directory of the Uniface installation. If you have other fonts you want to use, you should copy them to this directory.
If font files are not available, the output will be smaller than expected and line wrapping will be less accurate.
Default Font Configuration for PostScript
Uniface provides a default set of font definitions for printing to PostScript. On Windows, they are implicitly defined; on Unix, they are explicitly defined in the [FONTS] section of psdeft.txt.
To override or edit this definitions:
- On Windows, add or edit the [postscript]
section of usys.ini.
For more information, see [postscript].
- On Unix, edit the [FONTS] section of psdef.txt. For more information, see [FONTS].
Note: It is recommended that you not change the
font0
meta character set definition because Font 0 is used to scale the output to
the page. The higher the point size of Font 0, the smaller the overall output becomes.
Logical Font |
Font Name |
Font Size |
---|---|---|
xfont0: | Courier | 10 |
xfont0b | Courier-Bold | 10 |
xfont0i | Courier-Oblique | 10 |
xfont0bi | Courier-BoldOblique | 10 |
font0 | Courier | 9 |
font0b | Courier-Bold | 9 |
font0i | Courier-Oblique | 9 |
font0bi | Courier-BoldOblique | 10 |
efont | Helvetica | 10 |
efontb | Helvetica-Bold | 10 |
efonti | Helvetica-Oblique | 10 |
efontbi | Helvetica-BoldOblique | 7 |
lfont | Helvetica | 7 |
lfontb | Helvetica-Bold | 7 |
lfonti | Helvetica-Oblique | 7 |
lfontbi | Helvetica-BoldOblique | 10 |
gfp | Helvetica | 10 |
gfpb | Helvetica-Bold | 10 |
gfpi | Helvetica-Oblique | 10 |
gfpbi | Helvetica-BoldOblique | 7 |
label | Helvetica | 10 |
buttonfont | Helvetica | 14 |
monohuge | Courier | 11 |
monolarge | Courier | 9 |
monomedium | Courier | 7 |
monosmall | Courier | 6 |
monotiny | Courier | 14 |
sanshuge | Helvetica | 11 |
sanslarge | Helvetica | 9 |
sansmedium | Helvetica | 7 |
sanssmall | Helvetica | 6 |
sanstiny | Helvetica | 14 |
serifhuge | Helvetica | 11 |
seriflarge | Times-Roman | 9 |
serifmedium | Times-Roman | 7 |
serifsmall | Times-Roman | 6 |
seriftiny | Times-Roman | 7 |
editfont | Helvetica | 7 |
listfont | Helvetica | 7 |
combo | Helvetica | 7 |
debug | Helvetica | 7 |
buttons | Helvetica | 7 |
messagefont | Helvetica | 7 |
Font 0 and Scaling
In the default Uniface configuration, the PostScript driver uses Courier 10 for Font 0. This font definition is used to scale the output to the page by an amount equivalent to the Uniface form width divided by the selected page width (in font0). For example, for a Uniface form printed to A4 paper:
- The form is 118 characters wide
- The Font 0 font is Courier 9, which on an A4 page is a maximum of 66 chars per line
- The scaling factor is 66/118 = 0.56. The printed form is scaled to 56% of its original size.
Making Font 0 larger means smaller output and vice versa. If you make Font 0 smaller, the output will be scaled up, but text fields will be truncated to their respective regions.