1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00
JUCE/modules
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
..
juce_analytics Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_animation Animation: Add juce_animation module 2024-04-16 17:43:21 +01:00
juce_audio_basics AU Client: Suppress EnumCastOutOfRange Clang Analyzer warning 2024-04-26 12:23:05 +02:00
juce_audio_devices CoreAudio: Allow non-combined devices to restart successfully 2024-05-20 12:49:55 +01:00
juce_audio_formats ComSmartPtr: Make ownership more explicit 2024-04-16 21:07:45 +01:00
juce_audio_plugin_client Add AAX license file 2024-05-23 13:41:59 +01:00
juce_audio_processors VST3 Client: Add support for IParameterFinder interface 2024-05-08 17:53:52 +01:00
juce_audio_utils MPEKeyboardComponent: Avoid asserting when clicking on highest visible key 2024-05-08 17:53:52 +01:00
juce_box2d Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_core Add CHOC and QuickJS licensing information 2024-05-23 13:41:59 +01:00
juce_cryptography Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_data_structures Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_dsp Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_events Timer: Ensure the timer thread is deleted before any static or global destructors run 2024-05-10 11:55:28 +01:00
juce_graphics SimpleShapedText: Fix line break behaviour with text trailing whitespaces 2024-05-29 15:11:57 +02:00
juce_gui_basics Direct2D: Avoid continuous repainting when moving but not resizing windows 2024-05-28 11:28:51 +01:00
juce_gui_extra WebBrowserComponent: Fix documentation for withInitialisationData() 2024-04-29 13:19:06 +02:00
juce_midi_ci Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_opengl Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
juce_osc Bump version number to 8.0.0 2024-04-16 17:43:20 +01:00
juce_product_unlocking LookAndFeel: Allow specifying a default typeface metrics kind to use 2024-04-18 14:16:00 +01:00
juce_video CameraDevice: Simplify data shared across threads, to reduce potential for data races 2024-05-20 12:49:54 +01:00
CMakeLists.txt Animation: Add juce_animation module 2024-04-16 17:43:21 +01:00