topfunky / gruff

Gruff graphing library for Ruby

Home Page:http://gruff.rubyforge.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Fallback fonts

MilanCancarevic opened this issue · comments

Can Gruff support fallback fonts?
I know about setting font like:
graph.font = Rails.root.join("app", "assets", "fonts", "SourceHanSans-Regular.ttf").to_s
and this will cover CJK for me but in this case i lose Latin Cyrillic chars so i need fallback fonts. Is this possible to cover?

It seems by default Helvetica is used but it's non-free and can't install it. So I wanted to set another font using font= but it requires the path of the font not only the name. So on "non-rails" projects how to find font path in an universal way?

Now, It can't support fallback font at least, because ImageMagick has not supported it.