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

Firefox

18050 readers
147 users here now

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

founded 5 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 14 comments
sorted by: hot top controversial new old
[–] [email protected] 64 points 11 months ago (3 children)

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

[–] [email protected] 8 points 11 months ago* (last edited 11 months ago) (2 children)
[–] FireTower 14 points 11 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.

[–] [email protected] 2 points 11 months ago

It's also a great choice for code. 🙃

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

You're not my dad! 🥹

[–] unreachable 6 points 11 months ago
[–] [email protected] 1 points 11 months ago
[–] [email protected] 40 points 11 months ago (1 children)

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

[–] [email protected] 1 points 8 months ago* (last edited 8 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] 25 points 11 months ago

have you tried

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

Hmmm.

What do you get in the terminal:

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

?

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

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

[–] unreachable 3 points 11 months ago
[–] muntedcrocodile 1 points 11 months ago

It sounds like one of those accidental bugs that really wasnt that acdidental