Question about font managing (NSFont).
Question about font managing (NSFont).
- Subject: Question about font managing (NSFont).
- From: Anders Lassen <email@hidden>
- Date: Mon, 29 Jun 2009 18:10:06 +0200
Hi,
I am working on a project that uses a lot of fonts.
To be more precise. I have an object tree consisting of many small
objects that draw themselves to a view. Each object can either use a
default font setup or make local variations to the default font setup.
By local variations, I mean weight and italic style.
I can now decide to have only one instance of the default fonts and
then create local variations, which are stored in each object in the
tree. I can also decide to store the local font (variations) globally
and make som kind of lookup system. This of course requires a lot more
business-logic, and hope to avoid this.
My problem is, that I do not know much a about fonts and how they are
handled by the system.
Is a font a large object that requires a lot of memory usage and CPU
time for initial loading, etc. ??? or should I just think of it, as an
small object pointer.
(my object tree will in average contain about 100-300 objects).
I hope someone can help on this.
Anders Lassen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden