mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
In particularly unfortunate cases, the fonts used for laying out and drawing an AttributedString could end up differing, meaning that incorrect glyph indices would be used during rendering. The rendered text would end up using incorrect character symbols, making it unreadable. The problem seems to be: - The AttributedString fetched a typeface during the getOrCreateFont call in createCFAttributedString. - Details of the typeface (its style and name) were stored into the CFAttributedString. - During `createLayout`, a new `Font` object was created using the stored typeface name and style. - When calling `getTypeface` on this new font, during rendering, a different typeface was returned. The fix implemented here stores the Font objects used during the creating of the CFAttributedString, so that the fonts written to the juce::AttributedString are guaranteed to match the fonts used to compute the layout. |
||
|---|---|---|
| .. | ||
| juce_analytics | ||
| juce_audio_basics | ||
| juce_audio_devices | ||
| juce_audio_formats | ||
| juce_audio_plugin_client | ||
| juce_audio_processors | ||
| juce_audio_utils | ||
| juce_box2d | ||
| juce_core | ||
| juce_cryptography | ||
| juce_data_structures | ||
| juce_dsp | ||
| juce_events | ||
| juce_graphics | ||
| juce_gui_basics | ||
| juce_gui_extra | ||
| juce_opengl | ||
| juce_osc | ||
| juce_product_unlocking | ||
| juce_video | ||
| CMakeLists.txt | ||