CanvasLineMetricsBaseline Field |
Namespace: Microsoft.Graphics.Canvas.Text
The baseline of a line in a text layout can be retrieved straightforwardly through this field; it can also be equivalently calculated using the Ascent, and LineGap retrieved from the CanvasFontFace passed to an app's custom text renderer's implementation of DrawGlyphRun. The baseline amount is the maximum, for all glyph runs in the line, of:
float defaultBaseline = (ascent + lineGap) * fontSize;