html - Preload font HTML5, JS, Kinetic.js? -


I have a custom font ( * ttf ), that I use to write text I am using Kinetic. HTML canvas using JS

Unfortunately, on the first shipments of the page it is not using my custom font, when it is good to reload the page.

Can I pre-load CSS TopePrint-Override "> @ font-face {font-family: "barcode"; Src: url (../font / IDAutomationHC39M.ttf);}

Thank you in advance for your support! < / P>

I still had the same problem today ... I have finished it

  & lt; style & gt; @ font-face {font-family: 'archive black-regular'; Src: url ('../fonts / archivoBlack-Regular.ttf');} & lt; / Style> gt; style = "font-family: 'archivio black-regular'" & gt; & amp; nbsp; & lt; / div & gt; ;   

After that you can do normal kineticsjs stuff .. actually it is necessary to load the font before using it ..! I am not good in English, but I hope See that link also:

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -