Launchpad monospace font is too thin and hard to read

Bug #2023163 reported by Daniel van Vugt
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Peter Makowski

Bug Description

Launchpad monospace font is too thin and hard to read on a white background. This seems to be a relatively recent change. Perhaps related to the fix for bug 2021576?

If the default weight isn't going to be changed then can you suggest a way for users to work around it? Launchpad seems to ignore both the browser and shell's monospace font preferences.

Tags: a11y
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm using 4K at scale 200%, BTW. The problem doesn't seem to be so bad at 2K 100% when that should look practically the same. I'm starting to think our font rendering doesn't scale the weight proportionally to the display scale. But still, this is a recent regression in Launchpad itself.

Revision history for this message
Colin Watson (cjwatson) wrote :

Subscribed @petermakowski - could you weigh in on this?

Revision history for this message
Peter Makowski (petermakowski) wrote :

Launchpad is now using the same Ubuntu Mono variable font that's used on the Vanilla Framework website: https://vanillaframework.io/

It is indeed slightly thinner, but the main issue seems to be due to us using a very small font size on launchpad.

This should no longer be an issue as soon as the following is released:
https://code.launchpad.net/~petermakowski/launchpad/+git/launchpad/+merge/444157

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

It's not the font size that's the problem, I can change that myself. It's the thin font weight on a white background that is causing me eye strain. And I spend multiple hours a day reading Launchpad bugs so this is quite a problem. Can you provide a workaround so I can change the font weight I see in Launchpad?

Revision history for this message
Peter Makowski (petermakowski) wrote :

I created 2 custom styles that you could use via stylus Firefox/Chrome extension for you to choose from.

https://addons.mozilla.org/en-US/firefox/addon/styl-us

- font-weight of 500: https://userstyles.world/style/10230/launchpad-net-font-weight
- original monospace font: https://userstyles.world/style/10229/launchpad-net-monospace

I am now on leave until next week, but once I'm back I'll look into this more. We might even need to re-think the use of Ubuntu Mono font on launchpad if it's causing people significant trouble (or at least delay enabling it until we can give people an option).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Nice, thanks! I'm finding a weight of 440-450 looks best (and matches the variable-width font weight).

Guruprasad (lgp171188)
Changed in launchpad:
assignee: nobody → Peter Makowski (petermakowski)
status: New → Triaged
importance: Undecided → High
Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):

Is This Fixed ?? , the font size creates a really awful UI to work on.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

No, not fixed. Comment #6 was just about the workaround suggested in comment #5.

Revision history for this message
Peter Makowski (petermakowski) wrote (last edit ):

Would you mind sharing a screenshot demonstrating the problem, I'd like to understand it a bit better. Also - is this in Firefox or Chrome?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The bug is the same in Chrome and Firefox. Screenshot attached.

I'm using a 4K monitor at 200% and I think at 400 nits. The new font gets drowned out by the white background. Seems like the thinness of the font is changing its intended colour from black to more of a grey. Using the workaround in comment #5 fixes the issue although a little too much. I find weight 440 is nice.

Revision history for this message
Colin Watson (cjwatson) wrote :

I've just deployed Peter's previous change, which increases the base font size a bit. https://code.launchpad.net/~petermakowski/launchpad/+git/launchpad/+merge/444621 is in flight to darken the colour.

Revision history for this message
Colin Watson (cjwatson) wrote :

Though Peter, I notice one weird thing is that bug descriptions and comments have a different font size - you can see that on this bug. Is that intentional?

Revision history for this message
Peter Makowski (petermakowski) wrote :

Good spot. Not intentional, seems like some other styles overwrite the base font size here.

Revision history for this message
Colin Watson (cjwatson) wrote :

I've deployed Peter's latest changes. Daniel, does this seem better to you now? (I certainly prefer it.)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I think it's an improvement but not there yet. See the attached screenshot without and then with the workaround (forcing weight to 440). I think the workaround is still required to match the weight of the variable width font, and to be more readable.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It would potentially make everyone happy if the site didn't enforce a font family for monospace (or Sans for that matter). Then custom browser configs would be honoured.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Remember light is additive in two dimensions and black and white are not treated equally in vision. According to standard gamma curves, white pixels have roughly square of the visual influence that black pixels do.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

Agree with daniel it should be upon user to select custom font, i am myself forcing ubuntu font with firefox settings at a size of 28 ! to properly use launchpad.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

See also bug 2030840.

Revision history for this message
Peter Makowski (petermakowski) wrote :

It might be best to raise this in the Ubuntu Mono font repository instead as it's an issue with the font and not launchpad itself.

https://github.com/canonical/ubuntumono-fonts/issues

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.