blender/tests/files/sequence_editing/effects/reference/text_long_string.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:fcae8ec4a6fd4539b659342c885953f8de8c22f451066df3e99c5a95a17b7881
size 40900