Last modified: 2007-04-18 22:08:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10666, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8666 - SVG with CJK fonts doesn't render CJK text
SVG with CJK fonts doesn't render CJK text
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Ima...
:
Depends on:
Blocks: svg
  Show dependency treegraph
 
Reported: 2007-01-17 03:56 UTC by brianna.laugher
Modified: 2007-04-18 22:08 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description brianna.laugher 2007-01-17 03:56:08 UTC
Hello,

It appears that SVGs with CJK (Chinese, Japanese, Korean) text are not being
rendered correctly. I couldn't find a single SVG that rendered correctly. These
ones, for example, don't render correctly:

http://commons.wikimedia.org/wiki/Image:Fonts_%28ja%29.svg
http://commons.wikimedia.org/wiki/Image:MechatronicsDiagram_%28ja%29.svg
http://commons.wikimedia.org/wiki/Image:Solar_eclipse_%28ja%29.svg
http://commons.wikimedia.org/wiki/Image:Ant_worker_morphology_%28ja%29.svg
http://commons.wikimedia.org/wiki/Image:Male_reproductive_system_zh-tw.svg

The few that I could find that did render correctly (
http://commons.wikimedia.org/wiki/Image:Chromosome_zh.svg ) had had the text
converted to paths, which is rather undesirable.

For Korean fonts, a user suggested one of these:
http://packages.debian.org/unstable/x11/ttf-unfonts
http://kldp.net/projects/unfonts/

Firefox 1.5.0.8 also failed to render these images correctly, but I was able to
see the CJK text by downloading the files and using EyeOfGNOME (eog) to view them.
Comment 2 Kyungjoon Lee 2007-01-17 05:38:48 UTC
Testcase using batang/gulim and Un Fonts:
http://commons.wikimedia.org/wiki/Image:Fonts_%28ko%29.svg
Comment 3 Kyungjoon Lee 2007-01-20 00:52:39 UTC
Could this be related to bug 5694?
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-01-25 03:35:27 UTC
Isn't the issue just that the WMF doesn't have a decent set of fonts installed?  I could've sworn 
there was a bug for that.
Comment 5 brianna.laugher 2007-01-25 06:29:07 UTC
(In reply to comment #4)
> Isn't the issue just that the WMF doesn't have a decent set of fonts
installed?  I could've sworn 
> there was a bug for that.

[Bugzilla:3769]]: "Fonts are off in rasterized SVG images on wikimedia sites" ?
If that's the one you mean, it needs a better name. The fonts are not off; they
don't exist.
Comment 6 Tim Starling 2007-04-18 22:06:34 UTC
I have installed the fonts-chinese, fonts-japanese and fonts-korean packages
from FC4, plus others for other languages. This closes the issue for now as far
as I'm concerned. For Japanese text the most common fallback is the Kochi Gothic
substitute from http://sourceforge.jp/projects/efont , which is now being used
for all fonts on http://commons.wikimedia.org/wiki/Image:Fonts_(ja).svg except
"serif". With a bit of effort you can get it to use the Kochi Mincho substitute
font, e.g. 

http://noc.wikimedia.org/~tstarling/svg/Fonts_ja_linux.png

which is from 

http://noc.wikimedia.org/~tstarling/svg/Fonts_ja_linux.svg

Use action=purge on the image description page, plus a hard refresh or two, to
get the SVGs to re-render.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links