[cairo] Holiday cleanup

Behdad Esfahbod behdad at behdad.org
Fri Dec 28 18:00:31 PST 2007


On Fri, 2007-12-28 at 20:35 -0500, Owen Taylor wrote:
> 
> >   - cairo-pdf font metrics issue with bitmap fonts.  See my mail to the
> > list earlier this month.  This provokes a bigger question of what should
> > we do with bitmap fonts in vector (and possibly other) backends?
> > Ideally we should scale them.  (a side but related note, I think Pango
> > should be made to skip bitmap fonts if metrics hinting is turned off.
> > Owen, does that make sense to you?)
> 
> As far as I'm concerned, Pango should always be configured to skip
> bitmap fonts and bitmap strikes :-)

Same here, but that doesn't help fix problem at hand :).

> But, no, changing the font selection
> based on a metric hints doesn't really make sense to me; it seems like a
> side effect that could leave people scratching their heads in puzzlement
> for  along time 

What I'm trying to achieve is true scale independence.  Currently:

  - Fontconfig selects different fonts based on size, because of the
bitmap fonts.  Another solution is to not pass size to FcFontSort().

  - Bitmaps are not scaled when rendered.  How to fix this?  I assume
scaling them is ugly enough to not be called a solution?


> ....skipping bitmap strikes for fonts with both when
> outline hinting off does make a lot of sense.

Sure, this should be done in cairo.  I'll see what I can do.

> - Owen
> 
-- 
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