Skip to content

FontStyle.Italic seems to be ignored for a font loaded via FontCollection? #177

Discussion options

You must be logged in to vote

so now I'm leaning towards "Word and other programs are doing some hackery to force the font to be italic" being the cause.

Yep. That's exactly what they do. https://graphicdesign.stackexchange.com/a/42413

You could do something similar by passing a Matrix3x2 via the DrawingOptions to the DrawText method. Use the AffineTransformBuilder to create the skew matrix using TextMeasurer to provide the text bounds to generate the transform.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JimBobSquarePants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants