iI am making a HTML5 game using javascript with canvas.
iI am implementing a custom font adding @font-face style@font-face style
tag to header in the .html file, then if iI set canvas.context2D.font = "10px FONT_NAME"
it works and until here i dont have an issuethat part seems to work fine.
butBut when iI scale context2Dcontext2D
using canvas.context2D.scale
i lostI lose the font and when iI try to set it again using canvas.context2D.font = "10px FONT_NAME"
it does not work.
itIt is important to me to set different fonts cause abecause the game can use those in different UI or levels, any idea. How can I fix this problem?