Closed
Bug 862269
Opened 12 years ago
Closed 4 years ago
Italic text dosen't display correctly on the Samsung Galaxy Tab 2
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: niko.osten, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux 2.6.2) (KHTML, like Gecko)
Steps to reproduce:
open any html page with italic styles. e.g.:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>ff android italic</title>
<style type="text/css">
body {
font-face: sans-serif;
font-size: 100%;
}
</style>
</head>
<body>
this is normal text abc123äöüß!<br>
<b><b>this is bold text abc123äöüß!</b></b><br>
<i><i>this is italic text abc123äöüß!</i></i>
</body>
</html>
Actual results:
on firefox italic text is shown in normal style, except some german umlauts (ä,ö). Styles are displayed correctly with the default browser (See attached screenshots)
device: galaxy tab 2 7.0 (P-3110)
android: 4.0.4 / 4.1.2
ff: 18 / 19 / 20.0.1
Expected results:
italic styled text should be shown in italic font.
Updated•12 years ago
|
OS: Linux → Android
Hardware: Other → ARM
Comment 1•12 years ago
|
||
This works for me on my Nexus 4 (Android 4.2.2); seems to be a device issue. I've CC'ed Jonathan to assist you with the usual debugging steps.
Summary: italic text dosen't display correctly → Italic text dosen't display correctly on the Samsung Galaxy Tab 2
Comment 2•12 years ago
|
||
This is probably a dupe of bug 822808 which appears to be fixed in Firefox 22 and up. Haven't verified myself though.
Comment 3•12 years ago
|
||
niko, can you try out Aurora or Nightly (http://nightly.mozilla.org) to check if this is fixed for you?
Flags: needinfo?(niko.osten)
Reporter | ||
Comment 4•12 years ago
|
||
aaron, I tried the nightly and the issue dosen't occur when the font-family is set to sans-serif. However it seems to simply replace the sans-serif font with opensans. If I define font-family as roboto or "droid sans", the issue is still present. bold styles work but not italic.
Probably an issue with the roboto fonts on samsung devices. System font files include: Roboto-Bold.ttf, Roboto-BoldItalic.ttf, Roboto-Italic.ttf, Roboto-Light.ttf, Roboto-LightItalic.ttf, Roboto-Regular.ttf. For Droid sans there are no italic styles present, so this is not part of the issue.
Flags: needinfo?(niko.osten)
Reporter | ||
Comment 5•12 years ago
|
||
Here's a test file with font-family set to roboto, sans-serif:
http://www.artcs.de/fftest.html
Italic and Bold Italic aren't displayed correctly in Firefox and Nightly, but they work fine in other browsers, e.g. the Android default browser.
Comment 6•12 years ago
|
||
niko, could you please attach a zip file containing the full collection of Roboto-*.ttf files from the affected Samsung device?
Reporter | ||
Comment 7•12 years ago
|
||
Reporter | ||
Comment 8•12 years ago
|
||
jonathan, I attached the roboto font files from the Samsung Galaxy Tab 2 7.0, Android 4.1.2. (unmodified system, no root).
When I view the italic fonts on my desktop, they do not show in italic. This partly explains the issue, except why does it work in the Android Browser...
Comment 9•12 years ago
|
||
Wow. That is just SO broken.
Both the "Roboto-Italic.ttf" and "Roboto-BoldItalic.ttf" files are NOT in fact italic faces; they are simply renamed copies of the Regular and Bold faces respectively.
(Not precisely: the "Roboto-Italic" face looks like it may be a copy of a slightly different version of Roboto-Regular, though most of the actual glyph outlines are identical. The "BoldItalic" face is virtually identical to the Bold face, except for minuscule scaling differences in a few composite glyphs. All the actual glyph shapes are the same.)
Aside from the names, both the "Italic" and "BoldItalic" faces are marked as being italic in both the macStyle field of the <head> table and the fsSelection field of the <OS/2> table.
As such, Firefox believes these are indeed the appropriate Italic and BoldItalic faces to use for the Roboto family. (The behavior is based on these style flags, rather than on the names.)
Interestingly, the "italic" faces of both Roboto-Light and Roboto-Condensed do appear to be correct, so on pages that use font-weight:300 or font-stretch:condensed, you'd probably find that italics -do- work. But with default font-weight and font-stretch values, it's clearly broken.
Why does it work in the Android browser? At a guess, maybe the browser is looking at the italicAngle field in the <post> table, seeing that it says 0, and applying a synthetic slant effect.
If there were no italic face in the Roboto family, that's what Firefox would do: take the Regular face, and slant it. But because there -is- a face that is explicitly marked as being italic, Firefox uses it, and does not apply any further transformation.
So I believe Firefox's behavior is correct, and the bug is in the collection of fonts shipped on the Galaxy Tab 2 device.
Having said that, maybe we should consider adding some kind of workaround to make things look better for users - although I resent having to add hacks to Gecko code because device vendors ship such junk.
At least the problem won't appear as widespread once FF21 (with bug 831354) ships, as pages that use the default font-family:sans-serif will use Open Sans (with italics that actually work!) rather than the Samsung's broken Roboto family. But pages that explicitly call for font-family:roboto will still have the problem.
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 10•4 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•