• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question about font managing (NSFont).
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Question about font managing (NSFont).
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Objective C Compiler Settings
  • Next by Date: Re: Disabling buttons in NSSavePanel
  • Previous by thread: Re: Disabling buttons in NSSavePanel
  • Next by thread: Re: Question about font managing (NSFont).
  • Index(es):
    • Date
    • Thread