1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-13 00:04:19 +00:00
JUCE/modules/juce_graphics
attila d794fac44c SimpleShapedText: Fix line break behaviour with text trailing whitespaces
This fixes an issue with the text wrapping logic for text chunks ending
in a whitespace.

When trying to fit a text chunk, the logic works with two values: width
with trailing whitespace, and width without trailing whitespace.

When the trailingWhitespacesShouldFit option is false, the logic
checks if "withoutTrailingWhitespace" can still fit inside the remaining
width.

Prior to this fix, it then decremented the remaining width with
"withoutTrailingWhitespace", but it should have used
"withTrailingWhitespace" for the decrement operation, always, regardless
of the value of the withTrailingWhitespacesShouldFit option.

This mistake only caused an observable issue when multiple fonts were
used for the shaping operation, and a different font would be used
immediately after a whitespace falling at the end of a line.
2024-05-29 15:11:57 +02:00
..
colour ColourGradient: Fix assertion in ColourGradient::remove 2024-05-08 17:53:52 +01:00
contexts Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
detail Add new Range related types that help working with attributed text 2024-04-18 14:16:01 +01:00
effects D2D: Add faster two-pass blur implementation 2024-04-29 16:08:24 +01:00
fonts SimpleShapedText: Fix line break behaviour with text trailing whitespaces 2024-05-29 15:11:57 +02:00
geometry CoreGraphics: Slightly shrink excluded clip regions in order to draw transformed opaque components without border artefacts 2024-05-20 12:49:55 +01:00
image_formats Update licensing information 2024-04-16 11:39:35 +01:00
images D2D: Add faster two-pass blur implementation 2024-04-29 16:08:24 +01:00
native Direct2D: Skip invalid path elements when converting a Path to a Geometry 2024-05-28 16:08:55 +01:00
placement Update licensing information 2024-04-16 11:39:35 +01:00
unicode Unicode: Ignore punctuation when resolving implicit characters 2024-05-23 12:54:13 +01:00
juce_graphics.cpp Unicode: Perform major refactor 2024-05-23 12:54:13 +01:00
juce_graphics.h Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
juce_graphics.mm Update licensing information 2024-04-16 11:39:35 +01:00
juce_graphics_Harfbuzz.cpp Add Harfbuzz dependency 2024-04-17 14:41:00 +01:00