Skip to content

Render font in Italic and/or bold #1367

Answered by thedmd
scpolo asked this question in Q&A
Discussion options

You must be logged in to vote

Out of the box, this is not supported.

You can try to get glyph outline via stbtt_GetGlyphShape and slant them or extrude, then render manually with stbtt_Rasterize.
Manipulating outline may not be trivial. Not to mention you will need to patch glyph metrics accordingly. Things will get hairy quickly.

FreeType does support both operations, which may be the best way to go.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by scpolo
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