Open GoogleCodeExporter opened 8 years ago
Hello, you need to specify the font family name with quotes, like this :
ctx.font = "20px 'DejaVu Serif'";
or
ctx.font = '20px "DejaVu Serif"';
When you have spaces in the font face name. The spec allows spaces in font
names
without quotes, but the lib doesn't handle this yet.
The spec :
For example, after the following statement:
context.font = 'italic 400 12px/2 Unknown Font, sans-serif';
...the expression context.font would evaluate to the string "italic 12px "Unknown
Font", sans-serif"
Original comment by fabien.menager
on 20 Aug 2009 at 9:55
Original issue reported on code.google.com by
henri.th...@gmail.com
on 20 Aug 2009 at 8:56