hironishihara / ofxTrueTypeFontUC

An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS, and Windows.
Other
116 stars 46 forks source link

font not included in example. #6

Closed rezaali closed 9 years ago

rezaali commented 10 years ago

Hi! @hironishihara Great work on this, was wondering if you could include the font that works with the example...I just tried a random font, didn't work with the japanese characters, maybe I am doing something wrong.

I am in the process of making ofxUI's font renderer swappable and ofxTrueTypeFontUC would be insanely helpful! Thanks for the help in advanced!

vormplus commented 10 years ago

@rezaali You need a font with support for Japanese characters if you want to render them. Most fonts don't have the necessary glyphs included in the .otf file. Should work with the fonts you find over here: http://www.freejapanesefont.com/

I just tried rendering some French text with a lot of accents and special characters and it works really great. Way better than the default ofTrueTypeFont with the character encoding set to OF_ENCODING_UTF8.

rezaali commented 10 years ago

@vormplus thank you so much for the pointers! Now to re-think how to integrate this + and future text renderers into ofxUI!

hironishihara commented 9 years ago

Sorry for the delay.

As @vormplus says, most fonts have only glyphs of some particular languages. If you want to render a certain character of a particular language, you need to have loaded a font which include a glyph of that character in advance.

Since many fonts have been copyrighted, we should not include those fonts in our addons. On the other hand, there are some open-source fonts, for example https://www.google.com/get/noto/. These fonts could be properly included in our addons.

In font classes of openFrameworks, there are still several fundamental issues which we should resolve. I believe that it will take a little time to resolve them.