Typeface: give access to cmap table

The otf font file has a table to lookup the glyph number for an UTF-8 code point.

Please make this information accessible, either by exposing the cmap, or preferably adding a function similar to this:

int Typeface::getGlyphNumberForCodePoint (int codePoint) const;

Additional information is in this thread.

Funny, this reminds me of this massive discussion: Complex Text Support

Some API research to help out:

Thank you @jrlanglois, that saves me some research…
But I do hope to avoid having to write platform dependent workarounds. I think the existing JUCE implementation should give that information. In fact, I believe could be already present in the platform dependent implementations, just needs to be made accessible through the JUCE API.