How to use font feature settings with FormattedText and DrawingContext in WPF
I have a custom control where we are rendering various things like images and text. We have a font that has some feature settings for different character sets.
I am trying to figure out how to apply Tabular Figures (tnum) and Lining Figures (lnum) for this font when drawing the text using this font.
I have found how to apply these settings using a TextBlock and the Typography.NumeralStyle and Typography.NumeralAlignment, but I am having trouble finding a way to specify these feature settings during a custom render.
0 Replies