Managing fonts > Adding font entries to driver files > Adding TTF font entries to driver files > Adding TTF fonts to PCL driver files

Adding TTF fonts to PCL driver files
This section applies to PCL drivers except for the PCL 5 old version and PCL convert drivers.
Escape sequences
The PCL printer uses escape sequences to select fonts. Before you create font entries you must use the printer menu to print a list of all installed PCL fonts. This list includes the escape sequences for the fonts. The escape sequence for a proportional font can include the following:
<esc>(s1pv0s0b16602T
If you want to add the font as a readfont, you must replace <esc> with <1B> and divide the sequence into one SelectPrefix and one SelectPrefix section:
SelectPrefix "<1B>(s1p" SelectPostfix "v0s0b16602T"
Example 51
Font "Arial" ReadFont "arial.ttf" 
SelectPrefix "<1B>(s1p" SelectPostfix "v0s0b16602T"
Codepage "Ansi"
 
The escape sequence for a monospaced font can include the following:
<esc>(s0p16.67h15v0s0b3T
If you want to add the font as a width table font you must replace <esc> with <1B> and specify the size and CPI for each font size entry:
Size NN SelectPrefix "<1B>(s0p10h10v0s0b3T" CPI NN
Example 52
Font "Courier" WidthTable 8
Size 10 SelectPrefix "<1B>(s0p12h12v0s0b3T" CPI 12
Size 12 SelectPrefix "<1B>(s0p10h10v0s0b3T" CPI 10
 
To add font entries
1
2
Open the dummy *.drs file and copy the font entries.
3
Font "Arial" ReadFont "arial.ttf" 
SelectPrefix "Arial" Codepage "Ansi"
4
Replace the SelectPrefix entries with the modified escape sequences. For example:
Font "Arial" ReadFont "arial.ttf" 
SelectPrefix
"<1B>(s1p" SelectPostfix "v0s0b16602T"
Codepage "Ansi"
To add mapfont entries
1
2
mapfont "Times_New_Roman_bold_underline" "Arial_bold"
OpenText StreamServe 5.6 Updated: 2013-03-01