this post was submitted on 20 Jan 2024
34 points (94.7% liked)

Firefox

17302 readers
127 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS
 

Hello everyone.
I'm trying to style a web page to use Comic Sans. This has worked in the past as I have the font installed on my system (Fedora 38), and I know that Firefox can see it because it can be selected as an option for the default font:

However when I try to use it in CSS, it is not recognized:

I checked and other fonts are not affected:

I can't use the Impact font either. Both work under Chrome.
Does anyone have a clue about what could be going on?
Thanks

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 64 points 7 months ago (3 children)

It's been banned world wide. Along with papyrus.

[–] [email protected] 9 points 7 months ago* (last edited 7 months ago) (2 children)
[–] [email protected] 13 points 7 months ago (1 children)

Comic sans is a perfectly valid font and exceptional at its intended role. But it is problematic when used in anything other than a very casual environment.

It's a great choice for something like a web comic. But not for a law firm.

[–] sugar_in_your_tea 1 points 7 months ago

It's also a great choice for code. 🙃

[–] [email protected] 5 points 7 months ago

You're not my dad! 🥹

[–] [email protected] 1 points 7 months ago
[–] [email protected] 41 points 7 months ago (1 children)

You need quotes around the font name. Courier works because it's one word.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

This is the right answer!

I keep reading that people hate CSS, but it's my favorite markup language.

People are probably just frustrated with it because they didn't learn it properly. But that applies to any other language too.

CSS is fucking awesome!

[–] [email protected] 26 points 7 months ago

have you tried

font-family: "Comic Sans MS", "Comic Sans"
[–] [email protected] 7 points 7 months ago

Hmmm.

What do you get in the terminal:

fc-match 'Comic Sans'
fc-match 'Comic Sans MS'

?

[–] [email protected] 5 points 7 months ago (1 children)

It's never been a very serious font anyway, so im not shocked it's not working anymore.