diff --git a/modules/juce_graphics/fonts/juce_SimpleShapedText.cpp b/modules/juce_graphics/fonts/juce_SimpleShapedText.cpp index a6ea8e1f23..e7278c9f17 100644 --- a/modules/juce_graphics/fonts/juce_SimpleShapedText.cpp +++ b/modules/juce_graphics/fonts/juce_SimpleShapedText.cpp @@ -1022,6 +1022,12 @@ void SimpleShapedText::shape (const String& data, yes }; + struct ConsumedGlyphs + { + std::vector glyphs; + Range textRange; + }; + const auto append = [&] (const BidiParagraph& bidiParagraph, Range range, const ShapingParams& shapingParams) { jassert (! range.isEmpty()); @@ -1113,12 +1119,6 @@ void SimpleShapedText::shape (const String& data, jassert (bestMatch.has_value()); - struct ConsumedGlyphs - { - std::vector glyphs; - Range textRange; - }; - const auto consumeGlyphs = [&]() -> ConsumedGlyphs { auto glyphs = [&]