Browser doesn't load local Ubuntu Light font

Bug #1186372 reported by Michael Hall
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
webbrowser-app
Fix Released
Medium
Olivier Tilloy
webbrowser-app (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When setting font-family: "Ubuntu Light" in local html/css, the browser does not load the proper font. When running the same html/css in Chromium on my laptop, it uses the correct font.

Revision history for this message
Michael Hall (mhall119) wrote :
Changed in webbrowser-app:
assignee: nobody → Olivier Tilloy (osomon)
Michael Hall (mhall119)
summary: - Browser doesn't load local Ubuntu font
+ Browser doesn't load local Ubuntu Light font
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reliably reproduce, both on desktop and a device, with the attached sample HTML page.

Changed in webbrowser-app:
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

I’ve run this test page in the browser with the remote inspector activated, and it appears the computed font family is "Ubuntu Light", so the CSS value is correct and correctly interpreted. This looks like a rendering bug in QtWebkit itself.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Note that as a workaround, you can apply the following style:

    font-family: "Ubuntu Light", Ubuntu;
    font-weight: 100;

Interestingly, font-weight with the Ubuntu font only doesn’t work in chromium, but adding the "Ubuntu Light" font family does the trick.

Changed in webbrowser-app:
importance: Undecided → Medium
Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Fixed with the switch to oxide.

Changed in webbrowser-app:
status: Confirmed → Fix Released
Changed in webbrowser-app (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Adnane Belmadiaf (daker) wrote :

Just Tested this since it does impact the header of the HTML5 SDK, it doesn't work with Oxide(on phone & desktop)

demo : http://fiddle.jshell.net/aHxLZ/show/

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.