Poor or no font matching on common fonts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
jazzynico | ||
Inkscape Devlibs |
Fix Released
|
Medium
|
jazzynico |
Bug Description
Devlibs includes fontconfig, which I assume is being referenced by Pango (or whatever) when it decides that it cannot match a font like Times. The thing is, the fontconfig configuration files which are currently in devlibs do not seem to be be very good for a couple of _extremely_ common fonts. This is painfully evident on EMF import of Times and Helvetica, which show up with the little orange/yellow triangle in the font list indicating that they are unknown fonts. It does not need to be this way, the fontconfig configuration files could be modified to map Times to "Times New Roman" (very close) and Helvetica to Arial (exactly the same on Windows), assuming that the end user has not installed an actual Times or Helvetica font, which would match perfectly.
The first attachment is a small SVG file that has text in Times, TImes New Roman, Arial, and Helvetica. It looks OK in Firefox, but really bad in Inkscape. (Times in particular is much too wide.)
The second attachment is a little fontconfig/freetype test program. It uses the devlibs configuration and shows what fontconfig is matching to for these fontnames, then it shows the glyph widths for "Hello world". It builds in mingw like this:
gcc -Wall -DWIN32 -I/c/progs/
-o ft_example ft_example.c -lfreetype6 -lfontconfig-1 -L/c/progs/
(Use the correct path for your devlibs). Run it in mingw like:
./ft_exampe times "times new roman" arial helvetica
tags: | added: packaging |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
That command line should of course have been:
./ft_example times "times new roman" arial helvetica