Closed thomaskrause closed 3 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
@mattsta Cool, if you like I can withdraw my pull request and we use your cleaned up branch instead.
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 createdfontFamily
option. Additionally thefontSize
option is now recognized when drawing labels.