HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

introduce "fontFamily" option [enhancement] #274

Closed thomaskrause closed 3 years ago

thomaskrause commented 10 years ago

This is an implementation for the feature as requested in issue #102 (drawText's font option).

It allows to use a different font than "sans-serif" in the drawText(...) function for the canvas using a newly created fontFamily option. Additionally the fontSize option is now recognized when drawing labels.

mattsta commented 10 years ago

Great changes! I needed a way to change the x-axis font size and this works perfectly.

I cleaned up your commits a little (reworded and merged the common fontFamily commits, kept the fontSize change separate, removed rebuild commit, removed merge commit) at https://github.com/mattsta/Flotr2/commits/font-improvements

thomaskrause commented 10 years ago

@mattsta Cool, if you like I can withdraw my pull request and we use your cleaned up branch instead.