diff options
author | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2019-12-13 13:06:32 +0200 |
---|---|---|
committer | Jere Tuliniemi <jere.tuliniemi@qt.io> | 2019-12-16 10:24:39 +0200 |
commit | 71190e5a059eba4c911abcfdd599c2a98d674ed0 (patch) | |
tree | 55e769dc50fd004d33712d88832dc3487165ca3d /res/effectlib/sampleProbe.glsllib | |
parent | 6c8b63376c9eab514bca69d92c3b4348dac9711c (diff) |
Fix distance field text alignment
Distance field bounding boxes were working wrong compared to the old
text rendering. When text alignment is set to right, the bounding box
has to be set so the right side is in the center of the object.
Previously the bounding box remained the same, giving an illusion that
the text just shifted to the left, when it really just aligned to the
right of center. This should make eliding work correctly too.
Task-number: QT3DS-4020
Change-Id: I5c946c07f49eb4ca4ce63b45f897def41053ae24
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'res/effectlib/sampleProbe.glsllib')
0 files changed, 0 insertions, 0 deletions