Closed Bug 368879 Opened 18 years ago Closed 17 years ago

SVG text is garbled on Mac OS X -- all characters are piled on top of each other

Categories

(Core :: SVG, defect)

x86
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: gaudenz, Unassigned)

References

()

Details

(Keywords: regression)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

In Firefox (all versions) on Windows, the second text in the example is rendered without the last pixel if the offset width of the body is uneven (! flickers when the window is being resized). On Mac OS X, the second text in the example is only visible for certain document widths (unclear). Try resizing the browser window to see the effect using the URL given above.

The difference between the first and the second text is that the second text is placed within a <center> tag.

Reproducible: Always

Steps to Reproduce:
1. Point your browser to http://www.mxgraph.com/demo/markup/svgtext.html
2. Resize the window
3. On Windows, note the flickering !, on Mac, the text is not visible most of the time
Actual Results:  
Missing Pixel on Windows for uneven document widths, Missing Text on Mac for most widths (but not all)

Expected Results:  
Last pixel should always be visible on Windows, Text should always be visible on Mac

Another example where the bug appears, especially on the Mac:
http://www.mxgraph.com/demo/mxgraph/editors/diagrameditor.html

Note that when the Preview is used in the combo, the fonts are rendered correctly because the container is not relatively positioned.
Attached file Testcase
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070131 Minefield/3.0a2pre ID:2007013104

The testcase works properly for me, using the trunk build above. You can try the nightly development builds from here
  http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
They'll eventually turn into Firefox 3.
Works in the above build for Windows.

On Mac OS X, the text is now visible, but it is no longer readable (see screenshot). Also, the event handling seems to be broken in Firefox 3.0a2pre for Mac OS X (see http://www.mxgraph.com/demo/mxgraph/editors/diagrameditor.html).
Confirming that the text is garbled on OS X (intel)

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a2pre) Gecko/20070131 Minefield/3.0a2pre ID:2007013104 [cairo]
Assignee: nobody → general
Status: UNCONFIRMED → NEW
Component: General → SVG
Ever confirmed: true
OS: Windows XP → Mac OS X
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
Summary: Text cropped by 1 pixel on Windows, invisible on Mac OS X → SVG text is garbled on Mac OS X -- all characters are piled on top of each other
philor gave a regression range of 2007-01-23 23 to 2007-01-25 20.  Maybe the cairo update caused it?
Blocks: 367768
Flags: blocking1.9?
Keywords: regression
jmt tells me this is fixed in our patched version of cairo, so assuming all Brian's patches for text are committed into cairo, this should be fixed next time Mozilla's copy of cairo is updated.
Depends on: 374462
ppc seems fine in camino and minefield nightlies
Blocks: 367128
Flags: blocking1.9? → blocking1.9+
Fixed by cairo update.  Yay!
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Which was bug 374462.
excellent!

there's still some tidying up for bug 317273
some words have tops trimmed: games in http://www.peepo.co.uk
and pixels are being left when words are moved
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: