Install more fonts (especially for Unicode) (tracking)
Closed, ResolvedPublic

Description

At the moment the SVG rasterizer uses Arial or a font that looks like it. It
lacks many characters needed by many languages.

The rasterizer should use fonts that have a better Unicode coverage like DejaVu
fonts for Latin, Greek and Cyrillic based scripts, etc.

Many of these fonts are free and/or Open Source.

Example http://commons.wikimedia.org/wiki/Image:Digestive_system_diagram_ln.svg
should have words like Monɔkɔ, Nsɔ́ngɛ, etc, but the characters missing in Arial
are just not displayed.


Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz8898.
Moyogo created this task.Via LegacyFeb 6 2007, 10:58 AM
Moyogo added a comment.Via ConduitFeb 6 2007, 12:19 PM

See also
Bug 3769 Fonts are off in rasterized SVG images on wikimedia sites
Bug 8666 SVG with CJK fonts doesn't render CJK text
Bug 5694 Greek character in .svg wrong rendered for replacement- .png

Moyogo added a comment.Via ConduitFeb 6 2007, 12:19 PM

and Bug 8797 Some greek characters don't render in SVG

daniel added a comment.Via ConduitFeb 6 2007, 12:25 PM

Bug 8895 may also be related (stretched font's don't work right)

Note that most of the problems do not exist with my local install of rsvg 2.16.0
(on unbuntu edgy)

Perhaps a tracking bug for rsvg font issues would be handy

Moyogo added a comment.Via ConduitFeb 6 2007, 12:36 PM

(In reply to comment #3)

Note that most of the problems do not exist with my local install of rsvg 2.16.0
(on unbuntu edgy)

That's probably because you have the required fonts installed on you system.

bzimport added a comment.Via ConduitFeb 6 2007, 3:57 PM

robchur wrote:

(In reply to comment #3)

Perhaps a tracking bug for rsvg font issues would be handy

Filed as bug 8901.

bzimport added a comment.Via ConduitMar 31 2007, 9:31 PM

arunganesh03 wrote:

There should atleast be a serif font like Times new roman if not all fonts.
Its quite a nuisance when a map youve made has everything in Arial Roman,
even if its in Arial Bold or Italics.

tstarling added a comment.Via ConduitApr 18 2007, 10:07 PM

I have installed the following font packages from FC4:

bitstream-vera-fonts-1.10-5
fonts-bengali-1.10-2
fonts-chinese-2.15-2
fonts-gujarati-1.10-2
fonts-hindi-1.10-2
fonts-japanese-0.20050222-3
fonts-korean-1.0.11-4
fonts-punjabi-1.10-2
fonts-tamil-1.10-2

and a custom build of DejaVu fonts version 2.16.

bzimport added a comment.Via ConduitJul 19 2007, 8:04 AM

vyzasatya wrote:

Please install Telugu fonts too.
Fonts are off from the svg images in telugu wikipedia ex. see http://te.wikipedia.org/wiki/Image:Distancedisplacement-te.svg

bzimport added a comment.Via ConduitAug 6 2007, 4:53 AM

makineni.pradeep wrote:

You can get two telugu fonts from http://www.kavya-nandanam.com/Pothana2k.zip
And there is also Gautami font, comes with the default installation of the WinXP.

Tgr added a comment.Via ConduitFeb 1 2008, 3:06 PM

Liberation ( https://www.redhat.com/promo/fonts/ ) has been suggested on [[m:Talk:SVG fonts]] as a free package that contains fonts metrically equivalent to many common non-free fonts. Right now PNGs converted from SVGs that use standard Windows fonts look awful. This one for example uses Times New Roman: http://csomalin.csoma.elte.hu/~tgergo/bugs/commons_svg_conversion_problems.svg and the result is: http://csomalin.csoma.elte.hu/~tgergo/bugs/commons_svg_conversion_problems.png .

Moyogo added a comment.Via ConduitFeb 1 2008, 3:27 PM

Liberation Sans and Serif are great substitutions for Arial and Times New Roman as they match their metrics. It would be great to have the system configured to use them instead of Arial and Times New Roman if those aren't present or up to date with the latest version.

Gergő: there's a serious bug with the renderer used for commons_svg_conversion_problems.svg

bzimport added a comment.Via ConduitApr 12 2008, 12:24 PM

kjoonlee wrote:

Liberation fonts do not match Arial or Times New Roman very well IMHO.

Nimbus Sans L and Nimbus Roman No9 L, however, match Helvetica (and thus Arial) and Times New Roman almost perfectly. The URW Nimbus fonts are already installed.

Moyogo added a comment.Via ConduitApr 13 2008, 10:51 AM

(In reply to comment #12)

Liberation fonts do not match Arial or Times New Roman very well IMHO.

Nimbus Sans L and Nimbus Roman No9 L, however, match Helvetica (and thus Arial)
and Times New Roman almost perfectly. The URW Nimbus fonts are already
installed.

Liberation fonts might have different looks than Arial and Times New Roman but they have almost the exact same metric.
So a string in Arial will probably have the same length as Liberation Sans. Whereas Nimbus Sans has the same shapes as Helvetica but metrics, especially kerning or the space between characters, will be have more differences than with Liberation fonts.

Either way, Liberation fonts should be installed.

tstarling added a comment.Via ConduitOct 14 2008, 5:05 AM

Fonts have been updated, all the language support virtual packages in Ubuntu 8.04 have been installed, Telugu included. Liberation fonts have been installed.

bzimport added a comment.Via ConduitOct 22 2008, 11:24 AM

filippe.vasconcellos wrote:

This has seriously screwed up font rendering, probably because of a substitution issue—see [[m:Talk:SVG fonts]]. All SVGs uploaded after the installation and specifying Arial/Helvetica/Nimbus Sans L are now defaulting to Liberation, with pretty sketchy results (hinting in particular seems terrible, at least on my system). Liberation Sans may be metrically equivalent to Arial, but is in no way an adequate substitute; Nimbus Sans was much, much better from an aesthetic point of view, and there were never any appreciable kerning/metrics issues.

The new packages were a great addition, but if there is any way for the Nimbus fonts to be the renderer's default Sans and Serif families, _please_ go back to that. Pretty please. Cherry on top.

jayantanth added a comment.Via ConduitJun 6 2009, 10:31 AM

There is another bug in the SVG to PNG conversion done by the WikiCommons software. Check File:Prokaryote cell diagram-bn.svg . I just translate in bengali language with a Font SolaimanLipi.ttf(welknown good looking Bengali font) in svg, but PNG out put shown Font with vrinda.ttf. Please check.
Is it possible to add SolaimanLipi.ttf to coversion list here http://meta.wikimedia.org/wiki/SVG_fonts

bzimport added a comment.Via ConduitJun 12 2010, 7:46 PM

camjsb7j9g wrote:

I find wikimedia renders thumbnails for SVGs when they contain DejaVu Sans and Liberation Sans fonts. A set of files with problems is linked from

http://commons.wikimedia.org/wiki/File:Ikaros_solar_sail_key_liberation_sans.svg

and I posted more details here:

http://commons.wikimedia.org/wiki/Commons:Graphics_village_pump#Wikimedia_renders_Deja_and_Liberation_fonts_badly

Is it possible that wikimedia server software has out of date versions of those fonts? I recall one or both of those fonts had serious kerning or hinting problems on my PC and I recently installed newer versions to clear the problems.

bzimport added a comment.Via ConduitFeb 9 2011, 10:30 PM

ondra.hosek wrote:

I'd like to request installation of the TeX Gyre fonts [1], which are rather popular amongst TeX users and contain clones of the prescribed PDF fonts (Helvetica, Times, Futura, Bookman, Chancery, Palatino, et al.) based on the URW fonts, but with some slightly less common accented characters. They are licensed under the comparably permissive GUST font license. [2]

[1] http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole
[2] http://www.gust.org.pl/projects/e-foundry/licenses

Thanks a lot in advance.

MarkAHershberger added a comment.Via ConduitOct 27 2011, 1:36 PM

Turning this into a tracking bug so it is easier to keep track of individual font requests.

Dzahn added a comment.Via ConduitMar 21 2012, 6:53 AM

bump .. In October 2011 after a major upgrade the situation was then as follows.
Please confirm if you are still missing something specific nowadays..

ii console-setup 1.34ubuntu15 console font and keymap setup program
ii console-terminus 4.30-2 Fixed-width fonts for fast reading on the Li
ii defoma 0.11.10-4ubuntu1 Debian Font Manager -- automatic font config
ii fontconfig 2.8.0-2ubuntu1 generic font configuration library - support
ii fontconfig-config 2.8.0-2ubuntu1 generic font configuration library - configu
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4 Fonts for the Ghostscript interpreter(s)
ii gsfonts-x11 0.21 Make Ghostscript fonts available to X11
ii kbd 1.15-1ubuntu3 Linux console font and keytable utilities
ii libfont-afm-perl 1.20-1 Font::AFM - Interface to Adobe Font Metrics
ii libfontconfig1 2.8.0-2ubuntu1 generic font configuration library - runtime
ii libfontenc1 1:1.0.5-1 X11 font encoding library
ii libfreetype6 2.3.11-1ubuntu2.4 FreeType 2 font engine, shared library files
ii libt1-5 5.1.2-3build1 Type 1 font rasterizer library - runtime
ii libxfont1 1:1.4.1-1ubuntu0.1 X11 font rasterisation library
ii libxft2 2.1.14-1ubuntu1 FreeType-based font drawing library for X
ii lmodern 2.004.1-3 scalable PostScript and OpenType fonts based
ii psfontmgr 0.11.10-4ubuntu1 PostScript font manager -- part of Defoma, D
ii texlive-font-utils 2009-7ubuntu3 TeX Live: TeX and Outline font utilities
ii texlive-fonts-extra 2009-7ubuntu3 TeX Live: Extra fonts
ii texlive-fonts-extra-doc 2009-7ubuntu3 TeX Live: Documentation files for texlive-fo
ii texlive-fonts-recommended 2009-7 TeX Live: Recommended fonts
ii texlive-fonts-recommended-doc 2009-7 TeX Live: Documentation files for texlive-fo
ii ttf-dejavu-core 2.30-2 Vera font family derivate with additional ch
ii x-ttcidfont-conf 32 TrueType and CID fonts configuration for X
ii xfonts-encodings 1:1.0.3-1 Encodings for X.Org fonts
ii xfonts-utils 1:7.5+2 X Window System font utility programs

MarkAHershberger added a comment.Via ConduitMar 21 2012, 4:44 PM

Looks fixed to me.

If you find a problem, please open a *new* bug and point to an SVG with text that does not render correctly in the PNG thumb.

Verdy_p added a comment.Via ConduitJul 18 2014, 12:01 AM

Adding the excellent Noto collection? (Sponsored by Google and Adobe, but completely free fonts, under Apache Licence 2.0).

http://www.google.com/get/noto/

No more tofu, that whole collection can be a default base collection working in stead of fallback fonts showing very little information.

The collection is high quality, fully hinted, with metrics adjusted for correct display in pages using ultiple scripts ? Some scripts are available in two styles.

Almost all world scripts are supported (most modern scripts, including Burmese for which good fonts are very scarse or bugged). All Indian scripts are covered, and most scripts for Eastern Asia.

Now it also supports the full CJK repertoire (with 4 linguistic variants, with 7 weights !). Full support of OpenType required features for each scripts)

Full support of Arabic script (both major styles).

There are only 2 missing modern scripts : Tibetan, Thaana for Divehi/Maldivian (but work is in progress, with some issues in OpenType tables to discuss and fix). Many historic scripts are covered. Most new scripts created in the last 50 years (for languages that were still not written, notably in Africa) are covered, including experimental ones (like Deseret).

The goal of the collection is the full repertoire of Unicode (almost all Unicode 7.0 is covered), including musical symbols, technical symbols, weather and games symbols, emojis (soon color emojis too)...

Aklapper added a comment.Via ConduitJul 18 2014, 10:16 AM

This bug report was closed more than two years ago.
If you have specific requests for specific fonts, please file a separate report for each font/language and explain the impact/usecases.

Verdy_p added a comment.Via ConduitJul 18 2014, 12:02 PM

You're wrong, this bug is a tracking bug referenced directly by OPEN bugs (they are even listed at top of this page!!)

And it was specific to a "collection" of fonts made to be used together, and for all the documented scripts and languages.

I don't need to detail all of then, refer to the site which documents everything. I just was describing its content and licence instead of just posting a blank URL.
It is important for Wikiemdia, notably for many scripts that don't have decent free fonts (e.g. Burmese in Myanmar) in the current collection of free webfonts (that should remain open and cannot be "closed" when many scripts are still lacking the most basic support with donts that are really readable and with correct metrics).

Aklapper added a comment.Via ConduitJul 18 2014, 1:52 PM

Again: This ticket is closed as fixed. If you want some font, file a new ticket.

Add Comment