Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Firefox rendering bug? #294

Closed
moggers87 opened this issue Jan 15, 2018 · 6 comments
Closed

Firefox rendering bug? #294

moggers87 opened this issue Jan 15, 2018 · 6 comments
Labels

Comments

@moggers87
Copy link
Member

moggers87 commented Jan 15, 2018

Firefox on Fedora 27:

firefox

Compare with Chromium on the same machine:

chromium

Text appears to be "floating" higher than it should for bootstrap labels and checkbox/radio labels.

@moggers87
Copy link
Member Author

Doesn't happen with Firefox Android:

firefox-android-1

@moggers87
Copy link
Member Author

Issue does happen in Epiphany (which I'm fairly sure uses WebKit), so I'm wondering if this is a Fedora problem.

Will see if I can get hold of something not running Fedora to test out Firefox for Desktop on.

@moggers87
Copy link
Member Author

Firefox Windows:

firefox-windows

So I guess it's either Fedora specific or Linux specific.

@moggers87 moggers87 changed the title Firefox rendering bug Firefox rendering bug? Jan 15, 2018
@tsyesika
Copy link
Member

It does not seem to be happening on firefox on debian stable for what it's worth. It's also not happening on Safari, Chrome or Firefox on MacOS 10.13.2. Seems to be a Fedora issue.

@moggers87
Copy link
Member Author

Yeah, it's a Fedora font issue: https://bugzilla.redhat.com/show_bug.cgi?id=1535051

While investigating the above bug, I noticed that Bootstrap 4 no longer specifies Helvetica in its font list and so Firefox chooses the default sans serif font "DejaVu Sans" rather than "Nimbus Sans" (which is the free-as-in-freedom replacement for Helvetica). It looks a lot nicer IMO. I also noticed that Chromium will use Ariel/Liberation Sans over Helvetica/Nimbus Sans.

Given these two facts, perhaps we should specify sans-serif on its own (and monospace for plaintext blocks) in our SASS files? This would avoid issues where it appears to be us but isn't in future - if your sans-serif font is bugged then it's going to look broken all over your OS.

moggers87 added a commit that referenced this issue Jan 16, 2018
Fixes #294 in case Fedora can't fix their font issues (as this might hit
other Linux distros in future)
@tsyesika
Copy link
Member

FWIW. I agree with your suggested solution of switching to using sans-serif and monospace if we have no specific font requirements. That also allows the user to choose the font if they so desire in their operating system. I definitely think this is the way to go.

moggers87 added a commit that referenced this issue Jan 16, 2018
Replace Bootstrap font choices with system defaults

Fixes #294
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants