1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix TextEditor crash when Font resolution fails

This commit is contained in:
attila 2025-03-31 17:49:29 +02:00 committed by Attila Szarvas
parent 9c0aeb9e00
commit 9083cd9135
3 changed files with 32 additions and 13 deletions

View file

@ -301,6 +301,12 @@ public:
*/
bool isLtr (int64 glyphIndex) const;
/* This function may fail to return an out range, even if the provided textRange falls inside
the string range used for the creation of the ShapedText object.
This is because the shaping process could fail due to insufficient glyph resolution to the
point, where it will produce zero glyphs for the provided string.
*/
void getGlyphRanges (Range<int64> textRange, std::vector<Range<int64>>& outRanges) const;
/* Returns the input codepoint index that follows the glyph in a logical sense. So for LTR text