When I use embedded Fonts and TextLayout on mac it shows the wrong characters.
Here is a github I just pushed up, based on the IntroJucer Basic GUI project - https://github.com/hm1992/juceTextLayoutBugOSX
I am using an embedded Roboto ttf font (but I am not sure it is being used). The meat of the code is as follows.
// Draw Attributed String at the top string.draw(g, bounds.removeFromTop(400).toFloat()); // Draw Text Layout at the bottom layout.draw(g, bounds.toFloat());
And this is what I get:
1. I don't think that is my font (though I could be wrong)
2. The Glyphs printed by layout.draw are all off by one ("@o`" is 64 111 96, whearas "Apa" is 65 112 97)
p.s. I am using TextLayouts/AttributedStrings after profiling use of TextEditor components to display these strings. They were very slow to perform TextEditor::setText() due to a lot of time spent in OSX getStringLength.