Hi Juce Team,
Could
AudioDeviceSelectorComponent::MidiInputSelectorComponentListBox::paintListBoxItem
use TextLayout to display MIDI device name so fallback font would be available to display non latin MIDI device name ?
Thanks !
Hi Juce Team,
Could
AudioDeviceSelectorComponent::MidiInputSelectorComponentListBox::paintListBoxItem
use TextLayout to display MIDI device name so fallback font would be available to display non latin MIDI device name ?
Thanks !
//g.setFont ((float) height * 0.6f);
//g.setColour (findColour (ListBox::textColourId, true).withMultipliedAlpha (enabled ? 1.0f : 0.6f));
//g.drawText (item.name, x + 5, 0, width - x - 5, height, Justification::centredLeft, true);
juce::Rectangle<int> textArea(x + 5, 0, width - x - 5, height);
juce::TextLayout textLayout;
juce::AttributedString str(item.name);
str.setJustification(Justification::centredLeft);
str.setWordWrap(juce::AttributedString::none);
str.setColour(findColour (ListBox::textColourId, true).withMultipliedAlpha (enabled ? 1.0f : 0.6f));
str.setFont((float) height * 0.6f);
textLayout.createLayout(str, textArea.getWidth());
textLayout.draw(g, textArea.toFloat());
bump.
The juce team doesn’t want to support non latin device out of the box ?
Thanks for raising this. The issue should be fixed by this patch:
Thanks !