[Fontconfig] Inconsolata/monospace font emboldening

Infinality infinality at infinality.net
Fri Jan 13 19:05:52 PST 2012


I can't say for sure, but I believe this isn't a fontconfig issue.  I 
know from hacking around with the freetype code that the emboldening 
function adds extra width to the artificially emboldened glyphs.  
Various programs/kits that implement this may account for that, and 
others not.  For precisely this reason I disable the extra advance width 
in the emboldening function in my freetype patches.  If you want to try 
them out, they are available at http://www.infinality.net/ .

You might also be interested in this version of Inconsolata at Google:
http://code.google.com/p/googlefontdirectory/source/browse/inconsolata/

The nice thing about this version is that it has Truetype instructions 
in it, unlike other versions floating around.  It looks *fantastic* with 
my patches.  ;)   They have a bold and italic variant too, however I 
don't recommend them because the hinting is not as good as the standard 
face.  In fact, in my fontconfig files I specifically use artificial 
emboldening on Inconsolata because it just looks better.

Here's a screenshot of gedit, using Inconsolata with my patches.  Notice 
the artificially emboldened "TRUE" and "FALSE".  Same width as the others.
http://www.infinality.net/files/gedit-inconsolata.png



On 01/13/2012 04:34 PM, Fabio Mancinelli wrote:
> Hi everybody,
>
> I am having some problems with Inconsolata emboldening (and with any
> other monospace font that doesn't have a native bold variant)
>
> The problem is that emboldening works fine in applications like
> gnome-terminal or x-chat (all characters have the same width), but not
> in others gEdit, Eclipse (bold characters have bigger widths).
>
> To show what I am talking about you can look at this screenshot:
> http://imageshack.us/photo/my-images/850/inconsolata.png/
>
> Could you tell me if there is a way to make gEdit and Eclipse render
> embolden fonts like gnome-terminal?
>
> Thanks,
> Fabio
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig


More information about the Fontconfig mailing list