Text in SVG displayed with a wrong Arial font
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Medium
|
Unassigned |
Bug Description
While I was illustrating some figure for use with DocBook document, I ran
into an odd problem in Inkscape's font family resolution:
- My PC has several variants of Arial font installed:
- Arial
- Arial Black
- Arial Narrow
- When I loaded an SVG file with text that uses "Arial" font with regular
style (not bold, not italic), Inkscape will use "Arial Black" font to
display it; which is incorrect, and produces excessively bold output.
If the text used bold font weight and/or italic style, a correct font
will be displayed.
This affects the new Inkscape 0.91, but *not* the old Inkscape 0.48.2
installed on the same machine. The problem might be more common on
Microsoft Windows, as there're multiple Arial font variants automatically
installed with the OS and Microsoft Office suite.
Attached test files follows:
- arial.svg: A hand-crafted test SVG file displaying four lines
- arial-batik1.7.png: A reference rendering from Apache Batik 1.7.
- arial-inkscape0
- arial-inkscape0
This might be indirectly related to a long-running bug #165521.
Though this bug entry mainly concerns rendering of an existing SVG file,
rather than Inkscape's font selection combobox.
Inkscape: 0.91 portable 32-bit
Inkscape: 0.48.2 r9819 32-bit
Batik: 1.7 (binary)
System: Microsoft Windows XP Professional SP3
P.S.:
This is how Windows program (e.g. Notepad) lists Arial fonts on my system:
- Arial (Regular/
- Arial Black (Regular/
- Arial Narrow (Regular/
This is how Windows' Fonts folder lists Arial fonts on my system:
- Arial (TrueType)
- Arial Black (TrueType)
- Arial Bold (TrueType)
- Arial Bold Italic (TrueType)
- Arial Italic (TrueType)
- Arial Narrow (TrueType)
- Arial Narrow Bold (TrueType)
- Arial Narrow Bold Italic (TrueType)
- Arial Narrow Italic (TrueType)
Not reproduced on Windows XP (32-bit), Inkscape 0.48.5, 0.91 and 0.92.x rev. 15044.
The first arial text looks good with all the Inkscape versions.