Open
Bug 534064
Opened 16 years ago
Updated 3 months ago
Text becomes stairstepped / janky when rotated using moz-transform with GDI
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
REOPENED
People
(Reporter: cabel, Unassigned)
References
(
URL
)
Details
Attachments
(7 files, 1 obsolete file)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
When using "-moz-transform: rotate(3deg)" on an element containing text, the text becomes stairstepped. I.e., individual letters seem to be higher and lower than each other, and not placed along a smooth baseline. This makes things look, well, bad.
The same text renders fine and smooth when using "-webkit-transform" in Safari or Chrome.
The attached screenshots show how it looks on different platforms/browsers.
Reproducible: Always
Steps to Reproduce:
1. Apply -moz-transform: rotate(3deg); style to a div containing text
Actual Results:
The text is stair stepped and not along a smooth baseline.
Expected Results:
The text is smooth. and aligned.
(Bug #501028 at first seemed to be the same, but it's relating to text that is moving around constantly even though an element in stationary. Bug #403447 seems extremely close but is related to SVG.)
Attachment #416986 -
Attachment description: Firefox: Windows → Firefox: Windows (Really Bad)
Attachment #416985 -
Attachment description: Firefox: Mac → Firefox: Mac (Bad)
Comment 6•16 years ago
|
||
dupe of bug 492214 ?
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Sure looks like it to me. I will close this bug?
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Updated•15 years ago
|
Status: RESOLVED → REOPENED
Ever confirmed: true
OS: All → Windows XP
Resolution: DUPLICATE → ---
Summary: Text becomes stairstepped / janky when rotated using moz-transform → Text becomes stairstepped / janky when rotated using moz-transform with GDI
Comment 8•15 years ago
|
||
Fixing this will be tricky because of how GDI works. If you take a look with a recent version of Safari you should see the same problem. However the problem should go away with DirectWrite.
Comment 10•10 years ago
|
||
Still an issue in Firefox 47 (linux). Even happens with rotation values that look simpler to align, e.g. 45deg. Not an issue in Chromium.
Comment 11•9 years ago
|
||
Also still seeing this on Firefox 49 (Windows 8.1). Neither Chrome nor IE have this issue.
Comment 12•9 years ago
|
||
404 Error
URL: http://www.panic.com/~cabel/firefox-b... → data:text/html,<body style="font:bold...
Updated•3 years ago
|
Severity: normal → S3
Comment 13•3 months ago
|
||
Hm, this still happens, as reported by :bvisness for https://www.pangram.com/.
Notably, I'm seeing this on Ubuntu 24.04. So, not GDI related (Which seems Windows specific).
Pinch zooming (i.e. APZ Zooming) "fixes" the issue at the cost of making the text look blurry.
On OSX, issue still seems to exist, but less noticeable.
On Android, things seem... Ok?
Updated•3 months ago
|
Component: Layout → Layout: Text and Fonts
Comment 14•3 months ago
|
||
Comment 15•3 months ago
•
|
||
... Oddly enough, with some font sizes, it almost looks like font progress at a slightly off angle, and gets periodically "reset."
EDIT: Ok.. Using the screenshot tool hides the issue.
Comment 16•3 months ago
|
||
Updated•3 months ago
|
Attachment #9573701 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•