[webkit-dev] Design change request for Font
mike.emmel at gmail.com
Sat Mar 18 16:05:04 PST 2006
On 3/18/06, David Hyatt <hyatt at apple.com> wrote:
> You are not intended to initialize the native binding in the Font
> constructor. The "native" side is created lazily when the properties
> of the font are queried. Font is still in flux though (there are
> more changes coming to the Mac side that will make the design a bit
> more clear).
Okay but I'm not sure why not .. in any case that decision should be
left to the implementor I'd think. Moving the constructor out of the
shared code would allow each implementation to decide how they want to
solve the binding problem. I'm happy to wait for the changes your
speaking of but this is a good example were a bit of design
documentation would be useful IMHO.
> On Mar 18, 2006, at 9:33 AM, Mike Emmel wrote:
> > I was working with the current Font implementation and realized that
> > there was no way to initialize the native binding since the
> > constructor was defined in the platform independent file.
> > In fact stack allocation seems to be used to bind the native font at
> > each drawText request in the Mac impl. Can we move the constructor to
> > the platform dependent implementations like you have done for most of
> > the plaf objects ?
> > Mike
> > _______________________________________________
> > webkit-dev mailing list
> > webkit-dev at opendarwin.org
> > http://www.opendarwin.org/mailman/listinfo/webkit-dev
More information about the webkit-dev