Closed
Bug 1121448
Opened 9 years ago
Closed 9 years ago
Text is wrapping too early on some pages with "Siyam Rupali" as default font
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: Swarnava, Assigned: jfkthame)
References
()
Details
(Whiteboard: [gfx-noted])
Attachments
(2 files)
6.05 KB,
text/plain
|
Details | |
1.80 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
Open http://www.secnetix.de/olli/Python/block_indentation.hawk Firefox Nightly screenshot: http://i.gyazo.com/9f5f47a5aca9b2fdee3937d8a5b3b00d.png Chrome Stable screenshot: http://i.gyazo.com/8ff8998d856216f5082c94df39e32900.png
Comment 1•9 years ago
|
||
Can't reproduce on Windows with either yesterday's or today's nightly. Which nightly are you using, and can you reproduce in a clean profile? What about in safe mode?
Flags: needinfo?(swarnavasengupta)
Product: Firefox → Core
Reporter | ||
Comment 2•9 years ago
|
||
Reproducible in Safe Mode. Not reproducible in a clean profile.
Flags: needinfo?(swarnavasengupta)
Comment 3•9 years ago
|
||
(In reply to Swarnava Sengupta (:Swarnava) from comment #2) > Reproducible in Safe Mode. > > Not reproducible in a clean profile. Can you copy/paste your about:support raw data from the broken profile into an attachment: https://bugzilla.mozilla.org/attachment.cgi?bugid=1121448&action=enter ?
Flags: needinfo?(swarnavasengupta)
Reporter | ||
Comment 4•9 years ago
|
||
Flags: needinfo?(swarnavasengupta)
Comment 5•9 years ago
|
||
(In reply to Swarnava Sengupta (:Swarnava) from comment #4) > Created attachment 8550237 [details] > about:support data On a new profile, if you change your font settings to also include "Siyam Rupali" for western script, and ensure that "font.language.group" is set to "x-western" afterwards (in about:config), and then restart, does that let you reproduce on the new profile? What about if you start that profile in safe mode?
Flags: needinfo?(swarnavasengupta)
Reporter | ||
Comment 6•9 years ago
|
||
In a new profile, reproducible both on normal and safe mode profile if default font is siyam rupali
Flags: needinfo?(swarnavasengupta)
Comment 7•9 years ago
|
||
I can reproduce this on OS X (after downloading the font somewhere and installing it). It looks like it decides that the text, which is text-align: justify, can only deal with one word per line - except that removing that CSS line in the inspector doesn't make any difference. Reverting the font preference to something like Times fixes the issue. Jonathan, do you have ideas? (Not sure if this is Layout instead of graphics: text, but you would know better than me...)
Component: Untriaged → Graphics: Text
Flags: needinfo?(jfkthame)
Updated•9 years ago
|
Summary: Page is not showing properly on latest Nightly → Text is wrapping too early on some pages with "Siyam Rupali" as default font
Assignee | ||
Comment 8•9 years ago
|
||
The problem happens because that page specifies CSS width properties in terms of the "ex" unit, and the SiyamRupali font specifies its ex-height as -1 (in font units, at 2048 per em). So a couple of points can be made here. First, the font is broken; this is a clearly inappropriate value (probably generated automatically by some tool that tried to look at the height of the "x" glyph, found it missing, and left an "uninitialized" value in its place). Second, the page is poorly authored: it's not appropriate to be expressing column widths in terms of the font's ex-height. Using ch or em units would be more sensible. (In this case, replacing the use of 75ex throughout the document with 75ch should give the result that I think the author intended.) Having said that, perhaps we should apply some sort of minimum percentage of em-size to the ex-height value we read from the font, so that things don't behave quite so badly in the presence of poorly-constructed fonts.
Flags: needinfo?(jfkthame)
Assignee | ||
Comment 9•9 years ago
|
||
I suggest we do this, to avoid such issues; if there's one such broken font around, there are probably others...
Attachment #8550742 -
Flags: review?(jdaggett)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Updated•9 years ago
|
Whiteboard: [gfx-noted]
Comment 10•9 years ago
|
||
Comment on attachment 8550742 [details] [diff] [review] Ignore negative values in the OS/2 table sxHeight field Review of attachment 8550742 [details] [diff] [review]: ----------------------------------------------------------------- mmm, I do love fonts with crappy metrics...
Attachment #8550742 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 11•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/37ec2038576e
Target Milestone: --- → mozilla38
Comment 12•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/37ec2038576e
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•