Re: Pango Font Scaling



On Thu, 2004-08-19 at 20:37 +0600, Haran Shivanan wrote:
> On Mon, 16 Aug 2004, Owen Taylor wrote:
> > If you want linear scaling, you need to turn off hinting -- which
> > requires using a separate font map. Unfortunately, that does require
> > using the FT2 backend, since there is only one fontmap per screen
> > for Xft.
> I tried turning of hinting. It doesn't look like the fonts scale linearly.
> I'm not sure if I'm doing anything wrong or if thats just how its supposed 
> to work.

> static void substitute_func (FcPattern *pattern, gpointer   data)
> {
> 	g_print ("Substitute func called\n");
> 	FcPatternAddBool (pattern, FC_HINTING, FALSE);
> 	FcPatternDel (pattern, FC_HINTING);
> }

Try reversing those two lines. What you are doing is adding the
FC_HINTING field to the pattern, then deleting it again. What
you want to do is delete any existing FC_HINTING field and then
add a new one.

Regards,
					Owen

(Yes, it's a bit of a slow response...)

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]