hi,
I’m trying to work small with pixel accurate fonts right now, like the ones here http://www.miniml.com/ and I’ve had some issues to get them to display correctly.
let’s take the one called uni 05_53 as example which is supposed to display correctly at 8 point.
1)the following table http://www.reeddesign.co.uk/test/points-pixels.html
suggest an equivalence of 11 pixels, but I had to use 11.01 to get it right (the same for 9pt -> 12.01px or 7.5pt ->10.01px) might be because of the point/pixel approximation or just a boundary effect.
Anyway, some pixel/points utility functions might help.
- I had to use Justification::topLeft to make sure that the first character starts on an exact pixel.
Could be useful to have a justification option that would quantize the start of the first character on pixel boundaries so that we could use centred variants without blurring the result.
- I’ve tried to serialize it in order to embed it with my application but it only serialize the Glyphs that have been painted on screen. So I have to first draw a full ASCII set before serializing it.
Is there a way to do it automatically with JUCE built without GUI.
- any hope that we can directly load TrueType fonts using freetype at some point in the future?