ATSUI lets you retrieve the ideal (resolution-independent) glyph metrics by calling the function ATSUGlyphGetIdealMetrics and the screen (resolution-dependent) metrics by calling the function ATSUGlyphGetScreenMetrics.
You can use the function ATSUGlyphGetIdealMetrics to obtain
the advance of the glyph—the amount by which the pen is advanced after drawing the glyph
the origin-side bearing of the glyph—the offset from the glyph origin to the beginning of the glyph image
the end-side bearing of the glyph—the offset from the end of the glyph image to the end of the glyph advance
You can use the function ATSUGlyphGetScreenMetrics to obtain
the device advance—the number of pixels of the advance for the glyph as actually drawn on the screen
the top-left point of the glyph in device coordinates
the height and width of the glyph in pixels; the glyph specified by these values may overlap with other glyphs when drawn
the origin-side bearing and trailing-side bearing in pixels
Last updated: 2007-07-10