There seems to be a glitch in the display of Devanagari (Indian) symbols on Mac (on Windows, it’s anyway not developed). You can reproduce with the following code over a displayed component:
void MainComponent::paint (juce::Graphics& g)
{
// (Our component is opaque, so we must completely fill the background with a solid colour)
g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
g.setFont (juce::Font ("Poppins", 16.f, juce::Font::plain ));
g.setColour (juce::Colours::white);
int line = 1;
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 5 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 25 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 45 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 65 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 85 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
g.drawText (juce::CharPointer_UTF8 ("प्रत्येक 105 क्षण"), 10, ++line * 30, getWidth() - 10, 30, juce::Justification::centredLeft, true);
}
Only the last line (105) displays as intended. On the others, the final word is truncated.
I have tried debugging it, but have reached my limits at some point in the code…
Thanks for your help.