Where exactly is that? Thanks.
At root level of the repository:
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 !
2 Likes
I’m hitting that kind of issue with another font in another product on OSX
This is clearly not vertically centred.
Honestly there is something fishy here.
Here is the font used
AvenirLTStd-Heavy.ttf (30.0 KB)
Finally found the issue
3 Likes