[Top][All Lists]

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

Re: Fix, NSFont, XGFont (was RTFConsumer)

From: Nicola Pero
Subject: Re: Fix, NSFont, XGFont (was RTFConsumer)
Date: Fri, 11 Oct 2002 00:28:36 +0100 (BST)

Hi Georg,

thanks!  I applied your patch. :-)

> Hi Nicola,
> Well, here is the long waiting change for NSFont. It's most exactly how you  
> suggested.
> > Looks like [NSFont -initWithName:matrix:] is our own extension, and likely
> > it should return nil if the font can't be found (it now returns the
> > default font if I understand correctly).
> >
> > In that case I suppose we need to change GSFontInfo to return nil (rather
> > than a font info for a default font) if the font is not found.
> >
> > NSFont -initWithName:matrix: will then check the created font info, and if
> > it's nil, it will destroy self and return (nil) as well.
> Now, with the changes NSFontManager's -convertFont methods work as they  
> should. All seems to work fine - I got no crash :-)
> My suggested RTFConsumer changes work much better, too. I will send the  
> RTFConsumer patch in a separate mail with some additional comments.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]