https://issues.apache.org/bugzilla/show_bug.cgi?id=50100

--- Comment #3 from AndrĂ©-John Mas <[email protected]> 2010-10-22 
14:17:39 EDT ---
Created an attachment (id=26206)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26206)
Test case

Setting useCSS to false, in the stream() call does workaround the css issue.

I have attached a test case that draws text in 3 different sizes: 14px, 12px
and 10px. In Firefox these are all drawn the same size, whereas in Safari they
are drawn at different sizes.

It appears that the class SVGFontDescriptor is responsible for display the text
and modifying:

attrMap.put(SVG_FONT_SIZE_ATTRIBUTE, fontSize);

to

attrMap.put(SVG_FONT_SIZE_ATTRIBUTE, fontSize + "px");

resolves the issues, but in doing so also impacts the case when useCSS=false,
though, it should be noted that in testing with Opera, Safari and Firefox that
all three browsers appear to accept the unit in the non-CSS "font-size"
attribute, and display the font in the correct sizes.

Would simply appending the unit in this location be appropriate as a fix, or
should we be looking at another approach to fixing this issue?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to