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

Firefox

17821 readers
81 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 12 comments
sorted by: hot top controversial new old
[–] ULS@lemmy.ml 63 points 9 months ago (3 children)

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

[–] original_reader@lemm.ee 8 points 9 months ago* (last edited 9 months ago) (2 children)
[–] FireTower@lemmy.world 13 points 9 months 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 4 points 9 months ago

You're not my dad! 🥹

[–] fhqwgads@possumpat.io 40 points 9 months ago (1 children)

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

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

[–] wesker@lemmy.sdf.org 25 points 9 months ago

have you tried

font-family: "Comic Sans MS", "Comic Sans"
[–] lnxtx@feddit.nl 7 points 9 months ago

Hmmm.

What do you get in the terminal:

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

?

[–] infinitevalence@discuss.online 5 points 9 months ago (1 children)

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