Method GetDeviceMetrics
GetDeviceMetrics(int)
Gets the face's metrics in whole device pixels at a size, as the Windows text engine (GDI)
reports them: the ascent and descent from the face's VDMX record for the size where it
has one, and from its Windows ascent and descent rounded otherwise.
public DeviceFontMetrics GetDeviceMetrics(int pixelsPerEm)
Parameters
pixelsPerEmintThe size in pixels per em, 1 to MaxDevicePixelsPerEm: a font of
ppoints on a device ofddots per inch isround(p * d / 72).
Returns
- DeviceFontMetrics
The metrics.
Exceptions
- ArgumentOutOfRangeException
pixelsPerEmis outside 1 to MaxDevicePixelsPerEm.