I’ve been trying to add custom fonts for the past day and whatever I do, nothing seems to work.
I’ve added both .otf and (converted) .ttf files. Added these methods to my custom LookAndFeel class:
MonosynthLookAndFeel()
{
defaultOutlineCol = Colours::darkgrey;
defaultFillCol = Colours::black;
setColour(ToggleButton::tickColourId, darkThumb);
static Typeface::Ptr customTypeface = Typeface::createSystemTypefaceFor(BinaryData::NowBlack_ttf, BinaryData::NowBlack_ttfSize);
setDefaultSansSerifTypeface(customTypeface);
}
Typeface::Ptr getTypefaceForFont(const Font& f) override
{
static Typeface::Ptr myFont = Typeface::createSystemTypefaceFor(BinaryData::NowBlack_ttf,
BinaryData::NowBlack_ttfSize);
return myFont;
}
…but to no avail. Is there something I’m overlooking? Haven’t tested it on Mac, only on Windows.
