Actually another related query.
Looking at the computed style of some fonts (supplied by the google font API)
I get this;
font-family:'Sorts Mill Goudy', serif;
font-family:'Rouge Script', cursive;
font-family:'Gloria Hallelujah', cursive;
font-family:Tangerine, cursive;
Notice the last one doesn't have single quote marks around the name.....and also doesn't work in canvas.
The first 3 work just fine.
The css for all the fonts is very similar;
font-family:'Sorts Mill Goudy', serif;
font-family:'Rouge Script', cursive;
font-family:'Gloria Hallelujah', cursive;
font-family:Tangerine, cursive;
Notice the last one doesn't have single quote marks around the name.....and also doesn't work in canvas.
The first 3 work just fine.
The css for all the fonts is very similar;
.StoryStyleThree {
font-family: 'Gloria Hallelujah', cursive;
font-weight: normal;
font-size: 15px;
}
.StoryStyleFour {
font-family: 'Tangerine', cursive;
font-weight: normal;
font-size: 33px;
}
Any ideas why "Tangerine" is behaving differently? I am assuming the lose of the quotes is whats preventing it working on the canvas element. But given they are defined the same way, I cant work out why its being treated differently.
~~~
Thomas & Bertines online review show:
http://randomreviewshow.com/index.html
Try it! You might even feel ambivalent about it :)
Thomas & Bertines online review show:
http://randomreviewshow.com/index.html
Try it! You might even feel ambivalent about it :)
On 23 November 2013 00:20, Thomas Wrobel <darkflame@gmail.com> wrote:
Bingo, that was far easier then expected. Thanks a bunch.~~~
Thomas & Bertines online review show:
http://randomreviewshow.com/index.html
Try it! You might even feel ambivalent about it :)On 22 November 2013 20:06, Jens <jens.nehlmeier@gmail.com> wrote:I think you could read the computed style of an element by using a simple JSNI method.--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/8Qja9HPsmEk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment