CanvasFontFaceGetGlyphRunBounds Method (CanvasDrawingSession, Vector2, Single, CanvasGlyph, Boolean, UInt32, CanvasTextMeasuringMode) |
Namespace: Microsoft.Graphics.Canvas.Text
public Rect GetGlyphRunBounds( CanvasDrawingSession drawingSession, Vector2 point, float fontSize, CanvasGlyph[] glyphs, bool isSideways, uint bidiLevel, CanvasTextMeasuringMode measuringMode )
An app's DrawGlyphRun callback in its custom text renderer can use this method to get the bounds of a glyph run if it were drawn to a particular drawing session.
This method returns layout bounds, not draw bounds. For more information on the difference between the two, see LayoutBounds.
The returned bounds reflect the DPI, transform and unit mode of the CanvasDrawingSession passed in.