Home forums Using CanvasJS adding font to canvasjs

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  antimatter 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23386

    antimatter
    Member

    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

    #23396

    Vishwas R
    Keymaster

    @antimatter,

    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.


    Vishwas R
    Team CanvasJS

    #23409

    antimatter
    Member

    @vishwas R
    Thank you i got it

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.