In order to convert TrueType font metrics into PCL Units of Measure, you must use the following formula:
EMsize = round(c * b * dpi)
x = round(d/e * EMsize * uom/dpi)
Where:
EMsize = size of EM in device resolution dots
c = point size of font
b = inches per point
dpi = device resolution
x = desired metric value in units of measure
d = metric value in Design Units (HorzExt)
e = number of Design Units in the design EM
uom = PCL Units of Measure
As you can see, most of the values for these variables are supplied by your application, and depend upon the font selection criteria at print time. The exceptions are 'd' and 'e'. Table 5 supplies the value for the variable 'd', while 'e' is the constant value 2048.
Here's an example usage of the TrueType metric conversion formula supplied above.
TrueType Method:
Arial
11 point at 600 dpi, 300 uom
Assume the following values:
b = 1 inch/72 points
c = 11 points
d = 1485 Design Units
e = 2048 Design Units
dpi = 600 dots per inch
uom = 300 PCL Units of Measure
EMsize = round(11 * 1/72 * 600)
= round(91.66)
= 92 dots
x = round(1485/2048 * 92 * 300/600)
= round(33.354)
= 33 PCL Units of Measure
|