UMG TextBlock: Font won't scale.
Hi everyone, I've set a TextBlock widget so it automatically scales according to the size of the viewport:
...as you can see, the boundaries of the widget appear to scale correctly, but the drawing scale of the font inside the TextBox does not :
I have noticed already that when using DrawText on Canvas, Runtime fonts wouldn't scale, so in that case, I switched back to Offline fonts.
Unfortunately, UMG Textboxes only use Runtime fonts...
Am I missing something, here ?
Does anybody knows a workaround?
Is this issue fixed in 4.7 ? (I'm still using 4.6.1, here)
Thanks in advance, Have a nice day.
asked Feb 11 '15 at 06:42 PM in Everything Else
How are you scaling your widget? Text in Slate will be scaled based on the widget scale when drawing, however if you're just constricting the widget size, the text will start to clip (like what you're seeing there).
With regards to Canvas - the Canvas scaling issue is fixed in 4.7 (scaling for runtime fonts just wasn't implemented for 4.6), however Canvas just scales the rendered glyph texture rather than re-drawing the glyph at the newly scaled size (which is what Slate does). We did this as it matched the older offline (bitmap) font way of scaling fonts in Canvas, and avoids potentially spamming the font cache when drawing animating text (for which texture scaling is acceptable).
answered Feb 11 '15 at 06:55 PM
Jamie Dale STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here