this post was submitted on 20 Jan 2024
32 points (94.4% liked)

Firefox

17857 readers
1 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 11 comments
sorted by: hot top controversial new old
[–] ULS@lemmy.ml 53 points 2 years ago (3 children)

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

[–] original_reader@lemm.ee 7 points 2 years ago* (last edited 2 years ago) (2 children)
[–] FireTower@lemmy.world 11 points 2 years ago

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.

[–] ULS@lemmy.ml 5 points 2 years ago

You're not my dad! 🥹

[–] fhqwgads@possumpat.io 37 points 2 years ago (1 children)

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

[–] grandel@lemmy.ml 1 points 1 year ago* (last edited 1 year 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!

[–] wesker@lemmy.sdf.org 23 points 2 years ago

have you tried

font-family: "Comic Sans MS", "Comic Sans"
[–] infinitevalence@discuss.online 4 points 2 years ago (1 children)

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