This is my code that register the font its a function to make the text more beautiful in the canvas card, and returns the font to put in the ctx.font