TTFontDescription's Decriptions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TTFontDescription's Decriptions

Dan Corneanu
Hi,
The TTFontDescription's Decriptions class variable in 3.9 is populated
only with the default description but in 3.8 it comes fully populated
with all TTFontDescription(s) installed in the image.

Is this intentionally? or is it a mistake?
This is related to bug #0003215 .

The second question is:
What is the intended way of using TTFontDescription?
Is this a factory for flyweight instances of TTFontDescription(s)?

Reply | Threaded
Open this post in threaded view
|

Re: TTFontDescription's Decriptions

Yoshiki Ohshima
  Corneanu,

> The TTFontDescription's Decriptions class variable in 3.9 is populated
> only with the default description but in 3.8 it comes fully populated
> with all TTFontDescription(s) installed in the image.
>
> Is this intentionally? or is it a mistake?
> This is related to bug #0003215 .

  Oh, I would guess that it is a mistake.

> The second question is:
> What is the intended way of using TTFontDescription?
> Is this a factory for flyweight instances of TTFontDescription(s)?

  Do you know the menu item 'class var refs...' in the class browser?
It shows the methods that refer to the class variable.  And you check
the sender of these methods, you'll get the sense what they are used.

  And why I'm doing this meta-answer?  Because I apparently forgot the
detail...

-- Yoshiki