Tag Archives: font metrics

Get font metrics in a WPF program using C#

This example explains how to get font metrics in a WPF application. It’s actually not too hard, it’s just hard to figure out how to do it. The font metrics are tucked away inside the FormattedText object and the Typeface … Continue reading

Posted in drawing, geometry, graphics, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Get font metrics in C#

The Font and FontFamily classes provide lots of information about a font’s metrics, but that information is kind of hard to understand. The following list describes the key metrics. Internal Leading – Space above the characters that is still considered … Continue reading

Posted in algorithms, drawing, fonts, graphics, strings | Tagged , , , , , , , , , , , , , , , , , , , , , , | 2 Comments