topfunky / gruff

Gruff graphing library for Ruby
http://gruff.rubyforge.org
MIT License
1.37k stars 239 forks source link

Support Fallback fonts #182

Open MilanCancarevic opened 6 years ago

MilanCancarevic commented 6 years ago

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?

noraj commented 3 years ago

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?

Watson1978 commented 3 years ago

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