[cairo] xlib backend mis-draws fonts with partial bitmap strike

Behdad Esfahbod behdad at behdad.org
Tue Oct 30 10:59:22 PDT 2007


On Tue, 2007-10-30 at 10:46 -0700, Keith Packard wrote:
> On Tue, 2007-10-30 at 12:54 -0400, Behdad Esfahbod wrote:
> 
> > Heh, so this finally came up.  I'm fine with the second option.  It's
> > the right fix and not as hard as it sounds first.  We don't need to use
> > different glyph spaces even.  And the per-glyph glyphset can be stored
> > in scaled_glyph->surface_private that we don't really use currently.
> 
> I'm actually thinking the pure-A1 option is better at this point --
> othewise you'd mix AA and non-AA text in the same line, which can be
> disturbing.

I thought about that too.  At some point someone's going to nag about it
if we do either way.  Anyway, was hacking up second option, put it down
now.

> Figuring out whether you've got a size that aligns with a bitmap strike
> is easy enough, then it's a simple matter of setting the font format to
> A1.

Right.  Doing that should be even easier.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list