[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Emboldening monospaced fonts
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Emboldening monospaced fonts |
Date: |
Sun, 26 Apr 2015 14:05:28 +0200 (CEST) |
> There are some good looking programmer fonts without bold variant
> available [1]. Makes those fonts little inconvenient for code
> editors where bold is used as highlight. I went for
> FT_GlyphSlot_Embolden, but it breaks the "monospaceness" of the
> font. Is there a way to embolden the font without breaking the
> monospaced font?
Embolden the glyph but use the original advance width. The glyph
outline should be shifted to the left to compensate for the increased
width:
new_left_side_bearing = left_side_bearing
- (new_advance_width - advance_width) / 2
(or something like that).
Werner