Hi Jeremias and any others interested:

I finally got around to cleaning up the static nature of the FOray
FontServer class. It now can be and must be instantiated, and I agree that
this is a cleaner approach.

One of the main reasons that I hung on to the static-ish stuff is that I
didn't want to tote the FontServer around everywhere that Fonts were needed.
To avoid this, the FontServer instance is encapsulated in the FontConsumer
implementation. The FontConsumer still (as before) needs to be available
anywhere that font services are needed. Within FOray, this is pretty easily
accomplished by caching it once at the top of the tree and using recursive
methods to get to it, so font-related services are pretty unobtrusive.

Victor Mote

Reply via email to