Open
Bug 1155111
Opened 9 years ago
Updated 2 years ago
Small sized sans-serif fonts render strangely spaced in SVG
Categories
(Core :: SVG, defect)
Tracking
()
REOPENED
People
(Reporter: u536868, Unassigned)
References
Details
Attachments
(1 file)
73.62 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.18 Safari/537.36 Steps to reproduce: See: http://jsfiddle.net/hhcofcmds/xbqLs0ez/3/ I have an SVG drawing with text on it. If the scaling viewport of the SVG is so that the required font size to render is around or below 1px, some strange font spacing appears. Actual results: At some scale, sans-serif fonts are rendered with extra spacing (sans-serif font is used in the second column, this applies to all sans-serif fonts I've tried) See the attached screenshot. Expected results: It should be rendered with normal spacing, as serif fonts. (serif font is used in the first column).
An update: the situation above is on Windows 8.1. On Windodws 7, serif and monospace fonts are also affected.
Comment 2•9 years ago
|
||
At least, Arial and Courier New cause the problem since Firefox25. Pushlog:https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=5e226d928613&tochange=3a23afb038a5 Regressed by: Bug 839955
Blocks: 839955
Status: UNCONFIRMED → NEW
status-firefox37:
--- → affected
status-firefox38:
--- → affected
status-firefox39:
--- → affected
status-firefox40:
--- → affected
Component: Untriaged → SVG
Ever confirmed: true
Keywords: regression
Version: 37 Branch → 25 Branch
Comment 3•9 years ago
|
||
Yeah, must be something to do with the font size scale factor calculation. Note that if you use text-rendering="geometricPrecision" (which means we scale font sizes up to a minimum of 200px for text layout) it looks OK.
Thanks for the tip, this text-rendering attribute makes things works fine!
Comment 5•9 years ago
|
||
So, this is by design. WFM
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox37:
affected → ---
status-firefox38:
affected → ---
status-firefox39:
affected → ---
status-firefox40:
affected → ---
Keywords: regression
Resolution: --- → WORKSFORME
Comment 6•9 years ago
|
||
Not by design, I think the text should look reasonable as is, without the text-rendering property. But I have to investigate further.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 7•9 years ago
|
||
Hi, could you help me with https://github.com/swcarpentry/git-novice/issues/87 since it's looks related to this?
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•