What's the default typeface used by JUCE framework GUI?
I need to create SVG with exact same font as used by JUCE GUI by default.
What's the default typeface used by JUCE framework GUI?
I need to create SVG with exact same font as used by JUCE GUI by default.
Copyright © 2021 Jogjafile Inc.
I took one of the
lookAndFeelmethods that return font for parts of UI -auto font = juce::LookAndFeel_V4::getAlertWindowFont();font.getDefaultSansSerifFontName()is an obvious candidate, but it returns only a placeholder -<Sans-Serif>.The actual typeface can be obtained by calling
font.getTypefacePtr().So
font.getTypefacePtr()->getName()gave me what I've been looking for. The default typeface, in my case, isLucida Grande.