Home › forums › Using CanvasJS › adding font to canvasjs
This topic contains 2 replies, has 2 voices, and was last updated by antimatter 7 months, 2 weeks ago.
how can i add my own font to canvasjs (in css i use font-face property and give it a url to be able to use my font but in canvas i dont know how to do that
You can change font-family of title, axis-title, axis-labels by setting fontFamily, titleFontFamily and labelFontFamily respectively. Please take a look at this JSFiddle, where Google Font is used for title.
Thank you i got it
You must be logged in to reply to this topic.