I want input some chinese, if the font which TextEditor use does not support chinese, It just give me some boxes!
but I also notice that if I override the TextEditor’s paint method like this :
juce::Rectangle<int> textArea(getBounds()); juce::AttributedString str(getText()); str.setColour(juce::Colours::white); str.draw(g, textArea.toFloat());
And then the chinese char can shown correctly. So AttributedString has the capability of font fallback.
So, my question is what is the best way to show chinese in textbox with font-fallback, (do not want to set font which contain chinese char, just want to use font fallback the system provide ), bcz override the TextEditor’s paint is not a proper way to do it!