News for hackers. Stuff that matters.
Re:HTML5 Deck of Cards by jasonkester on Thursday September 03, 2015 @09:39AM (#10164843)
Any idea why the suits all render as smiley faces in Chrome/Mac?

Inspecting the cards, you can see that they are using the unicode character for spade/heart/etc. But in the browser itself you get nothing but smileys.

Perhaps the font they're using doesn't have those code points?

Edit: Yes, that's the case. Font is not specified, so it comes in as "inherit" by default, using whatever the browser feels like. On Mac Chrome, that must use smileys to represent unknown characters. Switching the document font to Arial in CSS fixes the issue and makes the cards look like cards.

Re:HTML5 Deck of Cards by TazeTSchnitzel on Thursday September 03, 2015 @11:31AM (#10165483)
> On Mac Chrome, that must use smileys to represent unknown characters.

You're seeing the Last Resort fallback font, which shows a symbol representative of the codepoint range, and the range's name, so you can identify what type of font you need. Since the suits are in the smiley block, you see a smiley. If you had no Latin alphabet font, you'd see an A.

https://en.wikipedia.org/wiki/Fallback_font

Re:HTML5 Deck of Cards by pakastin on Sunday September 06, 2015 @06:52PM (#10179398)
Fixed now..
Re:HTML5 Deck of Cards by pakastin on Thursday September 03, 2015 @09:40AM (#10164850)
Font should be Open Sans.. I have Chrome/Mac and it's working :/
Re:HTML5 Deck of Cards by jasonkester on Thursday September 03, 2015 @09:59AM (#10164972)
Why spend the time and effort pulling a custom font across the wire if you're only going to use symbols that exist in the web safe fonts included with the browser?

Seems kinda wasteful.

Re:HTML5 Deck of Cards by jklein11 on Thursday September 03, 2015 @10:22AM (#10165091)
I think the reason for this is to prevent cross browser bug you seemed to be experiencing in the parent comment.
Re:HTML5 Deck of Cards by pkstn on Thursday September 03, 2015 @05:58PM (#10167772)
Open Sans is used everywhere in the page. Also the buttons on top..
Re:HTML5 Deck of Cards by pakastin on Sunday September 06, 2015 @06:51PM (#10179395)
Fixed!