Javascript var canvas = document.getElementById("mycanvas") Ĭontext.font = 'normal 40px "Jolly Lodger"' Ĭontext. It can apparently use 40pt Rye, while normal Griffy just gets ignored for the default 10px Sans-Serif. Leading me to believe you need to be careful and probably be as descriptive as possible. You would think it still had enough to work with, but this gives: However, bizarrely you can end up with some strange results: context.font = '40px Griffy' Ĭontext.fillText("StackOverflow", 20, 50) Ĭontext.fillText("StackOverflow", 20, 100) It apparently doesn't matter if you omit the font-weight or font-style, although you need to make sure and match the font-weight and font-styles in your definition(s). :) Google and other vendors have a lot of good, free stuff out there. Helvetica bold is in both her fonts folder as well as the fonts folder within the Illustrator program file. I would encourage you not to use fonts that you do not have a legal license to use as web fonts. Illustrator complains that my user is a missing Helvetica Bold - However she is not. Ol' man Miedinger is haunting you because you're stealing his greatest work.Sometimes these can be bizarre, so you may need to check with a font viewer or an online service. You're not calling it by it's "actual" font family name.Do you have the proper files in the correct format for your browser/version?.Are you including the web-font (if you aren't assuming it's on your own computer)? You can double-check this by setting the font-family to another, plain HTML element and see it if works.There's a couple of different things that could be wrong:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |