blender/tests/files/sequence_editing/effects/reference/text_options.png
Richard Antalik fb464af3da Fix #144975, #144741: Text effects are cut off
Root cause is, that boundbox was not covering whole text as rendered. Both
issues have different cause but similar fix.

With italic fonts, the advance_x value is smaller and characters have
significant overlap. This caused last zero-width character (\0 or \n) to be
often inside of actual character. Fix here is to set line width to be based
on width of last visible characer instead of position of zero width character.

There are some fonts, where glyph position overlaps with line above. This is
fixed by using `BLF_bounds_max()` to calculate height of 1 line, while rest
is calculated using height of line spacing.

Pull Request: https://projects.blender.org/blender/blender/pulls/145692
2025-11-10 22:26:08 +01:00

3 lines
130 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:074c04d7ecc239361ea7eb345cb6e54f7d7952149bbec543bbcc9a6af3a673c2
size 19554