Font Loading and Text Measuring

Calculates width and height of a rectangle occupied by a text string with specified font settings as well as other font metrics. Includes: receiving text size and string ascender/descender, calculating “black box” of a regular string and artistic text (written on a circle), loads a font dynamically.

Download Trial

To run this sample in Visual Studio, install the Graphics Mill trial and open the Aurigma.GraphicsMill.sln solution in the Samples folder. Find the sample in this project:

D. Font and Text → D.02. Font Loading and Text Measuring

art text+4drawing+15font+8text+8

Code snippet

View on GitHub

Loading from GitHub..

Documentation