Page MenuHomePhabricator

Correct rendering of ViewAPC for non-latin characters
Closed, DeclinedPublic


Author: fryedpeach

Extension:APC doesn't properly generate a statics image in Japanese characters (probably other non-latin characters too). See for example. It is a partial screenshot of Special:ViewAPC (a special page showing APC statics) showing the bottom table titled "Detailed memory usage and fragmentation" ("メモリ使用および断片化の詳細" in Japanese) there. It shows some broken characters after arabic numerals the in statics image. Correctly, they would be "キロバイト" or some other Japanese text. Compare the text message below the image. Please display in various language settings.

It will need a sophisticated way for drawing localized texts to images in MediaWiki.



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:25 PM
bzimport set Reference to bz17125.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Jan 23 2009, 6:51 AM
brion added a comment.Feb 14 2011, 1:17 AM

The basic problem is that the text-drawing routine used (imagestring()) only supports 8-bit fonts.

Unicode strings can be drawn with imagestringttf(), but a font file would need to be provided with sufficient coverage for whatever language(s) might be selected.

Best fix is probably to replace the server-side GD drawing with client-side drawing -- let the browser deal with the text -- or export to SVG and then run through the standard SVG transforms, letting whatever font configuration has been set up for SVG still happen there.

Krinkle updated the task description. (Show Details)Nov 16 2015, 10:50 PM
Krinkle set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 16 2015, 10:50 PM
Meno25 removed a subscriber: Meno25.Feb 22 2016, 6:01 PM
Aklapper closed this task as Declined.Aug 1 2019, 3:44 PM

According to , this extension has been archived years ago, hence also declining its open tasks.