Then rather than using JUCE in-memory fonts register them to the system.
G.drawRect if you want to get custom memory font working with fallback on macOS I had something working today. G.setColour (label.findColour (Label::outlineColourId)) G.setColour (label.findColour (Label::outlineColourId).withMultipliedAlpha (alpha)) TextLayout.createLayout(str, label.getWidth()) Str.setColour(label.findColour(juce::Label::textColourId).withMultipliedAlpha(alpha))
Str.setJustification(label.getJustificationType()) Juce::AttributedString str(label.getText()) Juce::Rectangle textArea (label.getBorderSize().subtractedFrom (label.getLocalBounds())) G.setColour (label.findColour (Label::textColourId).withMultipliedAlpha (alpha)) G.fillAll (label.findColour (Label::backgroundColourId)) Ĭonst float alpha = label.isEnabled() ? 1.0f : 0.5f Ĭonst juce::Font font (getLabelFont (label)) void drawLabel(juce::Graphics &g, juce::Label &label) Use a custom LnF where drawLabel use TextLayout as its implementation.