Just wondering if there is not something wrong there
label.setText("Doppler", juce::dontSendNotification);
label.setBounds(100, 100, 74, 22);
label.setJustificationType(juce::Justification::centred);
label.setColour(juce::Label::outlineColourId, juce::Colours::red);
juce::File file("/Users/otristan/Desktop/BugJuce/bugFont/DIN_COND_BOLD.ttf");
auto pStream(file.createInputStream());
if (pStream)
{
juce::MemoryBlock data;
pStream->readIntoMemoryBlock(data);
juce::Font font(juce::Typeface::createSystemTypefaceFor(data.getData(), data.getSize()));
label.setFont(font);
}
addAndMakeVisible(&label);
On OSX the following code renders like that
Doesn’t look very centred vertically.
Using juce6 branch FWIW
Here is the font
DIN_COND_BOLD.ttf (84.5 KB)
in our production code we still use the old FreeTypeAmalgam custom font loading and display from TheVinn (Vinnie Falco) which displays the content centredLeft
Here is an example of the difference between the two
FreeType
Juce with createSystemTypefaceFor
Any ideas ?
Thanks !