Comments (3)
@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.
from ofxtruetypefontuc.
@vormplus thank you so much for the pointers! Now to re-think how to integrate this + and future text renderers into ofxUI!
from ofxtruetypefontuc.
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.
from ofxtruetypefontuc.
Related Issues (17)
- getStringAsPoints HOT 1
- filename_ = linuxFontPathByName(fontname); (in .cpp , line 540) HOT 1
- Emoji Support HOT 2
- Visual Studio 2015 - OF0.9 problem HOT 5
- convert function convToUCS4 called twice. HOT 2
- getStringMesh() and getFontTexture() HOT 4
- Bad font resolution in Windows HOT 2
- Call to implicitly-deleted copy constructor of "my object"
- Just wonderful. Thanks a lot.
- Not working in OpenGL 4.0
- ofRotate doesn't have any effect to the fonts HOT 1
- Chinese cannot be drawn normally
- Including Freetype.h
- VS2012 compile problem HOT 1
- iOS - no member 'unloadTextures' 'reloadTextures' 'all_fonts' HOT 1
- VC++ compiler problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxtruetypefontuc.