You are not logged in.

#1 2023-12-12 03:33:30

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Firefox not using font properly

I'm trying to use the Calibri font but it doesn't render in Firefox for some reason.

Chrome vs. Firefox: https://i.imgur.com/vU5mCOv.png

Mod edit: replaced oversized image with URL. Please read the rules on posting images here and avoid embedding large images in your posts. -- WorMzy

Last edited by WorMzy (2023-12-13 18:58:52)

Offline

#2 2023-12-12 07:37:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

Webfont issue?

fc-match Calibri

There're a couple of MS font packages in the AUR.

Offline

#3 2023-12-12 14:57:40

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Re: Firefox not using font properly

calibri.ttf: "Calibri" "Regular"

I'm using ttf-ms-win11-auto.

Last edited by Xenfo (2023-12-12 14:58:03)

Offline

#4 2023-12-12 15:01:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

If you check the webinspector in FF, what font(s) does the CSS actually resolve there (where it's supposed to be calibri)?

Offline

#5 2023-12-12 15:04:37

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Re: Firefox not using font properly

Google Docs renders to a canvas element so I can't check.

Offline

#6 2023-12-12 15:46:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

Assuming that's actually calibri in the shot and assuming you're running a wayland session, https://wiki.archlinux.org/title/Firefox#Wayland
Do you have https://archlinux.org/packages/extra/an … iberation/ installed or https://archlinux.org/packages/extra/any/gsfonts/ ?

Offline

#7 2023-12-12 16:13:31

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Re: Firefox not using font properly

Firefox is running under Wayland and I have ttf-liberation installed.

Offline

#8 2023-12-12 20:56:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

You mean as native wayland client? Do you get the same render issues on xwayland?
Calibri is one of few fonts w/ a straight long bar on the "y", so it's rather likely that this actually is calibri, but the hinting/antialiasing behavior is broken.
Do (all) other fonts render fine in FF/GG docs?

Offline

#9 2023-12-13 17:25:34

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Re: Firefox not using font properly

Yeah I meant as a native wayland client and the same issue is present on xwayland. As far as I've seen it's only Microsoft fonts that pose an issue, Calibri and Cambria.

Offline

#10 2023-12-13 19:52:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

As far as I've seen it's only Microsoft fonts that pose an issue, Calibri and Cambria.

So, wild guess: what if you remove the ttf-ms-win11-auto package?

Offline

#11 2023-12-13 21:33:56

Xenfo
Member
From: Montreal, QC
Registered: 2021-11-06
Posts: 39
Website

Re: Firefox not using font properly

That somehow seems to work, now Calibri matches Noto Sans, I guess Microsoft fonts are somehow broken on my system.

Offline

#12 2023-12-13 22:10:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,651

Re: Firefox not using font properly

Noto Sans looks different from Calibri - do you have an udpated screenshot?
If you re-install the MS fonts, what does this file look like in FF and Chromium?

<html><head></head><body>
<p style="font-family:Calibri">Minions ipsum aute velit hahaha voluptate me want bananaaa! Qui wiiiii pepete duis underweaaar. Daa tempor consequat bee do bee do bee do pepete nostrud incididunt belloo! Ut bananaaaa jeje. Hana dul sae po kass tulaliloo daa magna bappleees. Belloo! exercitation qui reprehenderit wiiiii. Bee do bee do bee do duis butt veniam ex aaaaaah po kass magna incididunt poulet tikka masala. Chasy nostrud pepete duis ut et laboris la bodaaa duis para tú.</p>

<p style="font-family:Calibri; font-weight:bold">Sed sit amet bee do bee do bee do chasy poulet tikka masala bananaaaa labore exercitation duis. Para tú elit aliquip jiji. Daa belloo! Esse tank yuuu! Commodo potatoooo minim tatata bala tu. Esse exercitation ad eiusmod laboris aute gelatooo laboris belloo! Sit amet. Aute dolore aute baboiii labore. Po kass belloo! Laboris aaaaaah qui bananaaaa po kass tatata bala tu. Qui dolor consequat butt aute poulet tikka masala butt gelatooo consectetur tempor. Belloo! ad wiiiii para tú. Enim ut underweaaar nisi hana dul sae poopayee poopayee butt tulaliloo gelatooo.</p>

<p style="font-family:Calibri; font-weight:100">Nisi hahaha daa tempor jeje. Exercitation magna aute underweaaar para tú po kass daa nisi veniam duis ut. Occaecat aliquip exercitation ad bappleees para tú tempor ex voluptate. Consectetur officia ut po kass hana dul sae officia. Belloo! dolore labore hahaha bananaaaa hana dul sae uuuhhh hana dul sae dolor elit. Esse commodo me want bananaaa! Laboris hahaha la bodaaa quis. Para tú baboiii hana dul sae jiji labore baboiii la bodaaa esse duis officia. Bee do bee do bee do poulet tikka masala hana dul sae ullamco pepete occaecat elit. Bappleees po kass irure tatata bala tu potatoooo minim me want bananaaa! Incididunt commodo bananaaaa.</p>
</body>

Offline

Board footer

Powered by FluxBB