Bug descriptions/comments much harder to read on Launchpad than other hosting services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Chris Johnston |
Bug Description
1. Reset your browser to the default zoom level (e.g. Ctrl 0 in Firefox or Chromium).
2. Try to read this bug report.
What happens: The description and comment text is much harder to read than the same text would be on Github, Google Project Hosting, or Gnome Bugzilla.
https:/
Text readability depends on many factors. Launchpad differs most from those other services in font choice and optical size.
Optical size can be measured by width (which, for monospace fonts, is the same for every character) and by x-height. x-height is the height of a lower-case "x", and the approximate height of many other lower-case characters.
In a default Ubuntu installation at the default zoom level, glyphs in:
- Github reports are proportional width, with an x-height of 7 pixels;
- Google reports are 7 pixels wide, with an x-height of 7 pixels;
- Bugzilla reports are 8 pixels wide, with an x-height of 8 pixels;
- Launchpad reports are only 5 pixels wide, with an x-height of only 6 pixels.
This bug has two causes.
First, for bug descriptions, Launchpad's combo.css includes div#edit-
Second, Ubuntu Mono is substantially narrower, *and* has a smaller x-height, than other monospace fonts.
https:/
The embarrassing result is that Ubuntu bug reports are easier to read on any other OS (where Ubuntu Mono is not installed) than they are on Ubuntu itself.
Changing the Ubuntu Mono design would be expensive, so this bug is easiest fixed in Launchpad.
The simplest solution is to remove Ubuntu Mono from Launchpad's style sheet, and increase the font size.
Another solution is to increase the font size with Ubuntu Mono in mind. But the difference in optical size is large enough that this might cause descriptions and comments to look *too* large on machines where Ubuntu Mono is not installed.
Ideally it would be possible to use the CSS font-size-adjust property, to request the same x-height regardless of which font the browser used. Unfortunately font-size-adjust is implemented only in Gecko.
https:/
Related branches
- Chris Johnston (community): Disapprove
- Launchpad code reviewers: Pending requested
-
Diff: 55 lines (+5/-0)4 files modifiedlib/canonical/launchpad/icing/css/modifiers.css (+1/-0)
lib/canonical/launchpad/icing/css/typography.css (+1/-0)
lib/canonical/launchpad/icing/style.css (+2/-0)
lib/lp/code/templates/sourcepackagerecipe-index.pt (+1/-0)
- William Grant (community): Approve (code)
-
Diff: 73 lines (+6/-6)5 files modifiedlib/canonical/launchpad/icing/css/modifiers.css (+1/-1)
lib/canonical/launchpad/icing/css/typography.css (+1/-1)
lib/canonical/launchpad/icing/style.css (+2/-2)
lib/lp/code/templates/sourcepackagerecipe-index.pt (+1/-1)
lib/lp/services/webapp/error.py (+1/-1)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: trivial |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
There was talk of returning to ems instead of px a few months ago, which would increase the default Lp font-size's for most users. Would this address the issue?
We set the UbuntuMono font size differently from the Ubuntu font. We can increase it by a point.