RE: [ft-devel] Export services?

2005-10-17 Thread Turner, David
Hi Werner, > May I suggest that we postpone this discussion and work on fixing the > list of exported functions first? This seems to be a more urgent task > to me which probably identifies other problems/benefits of services. > It basically means the following: > > . Write a script which collec

Re: [ft-devel] Export services?

2005-10-14 Thread Werner LEMBERG
> > > To make finding a service faster, we can use integers as service > > > id, instead of strings. > > > > Do you really think that this is of great importance? Strings are > > more user-friendly IMHO. > > We now call "FT_FACE_FIND_SERVICE( GLYPH_DICT )" to find a service. > After the change, w

Re: [ft-devel] Export services?

2005-10-14 Thread Werner LEMBERG
> On Fri, Oct 14, 2005 at 10:11:21PM +0200, David Turner wrote: David, I've added your address to the freetype-devel list (without receiving mails). > An exported service is like an exported function call, once get > exported, it allows no change. May I suggest that we postpone this discussion a

Re: [ft-devel] Export services?

2005-10-14 Thread David Turner
Hi everyone, "services" are an _implementation_ detail of FreeType 2. They're not strictly necessary since you could provide the same thing with a lot of #ifdef in a monolithic engine. I just find them more convenient to structure the engine. the "wrapper" functions are here to protect the users

Re: [ft-devel] Export services?

2005-10-14 Thread Chia-I Wu
On Fri, Oct 14, 2005 at 10:11:21PM +0200, David Turner wrote: > the "wrapper" functions are here to protect the users of the service's > implementation details. They have various advantages: > > - they expose a "clean" API that doesn't depend on internals of > the font engine. Allowing us to rede

Re: [ft-devel] Export services?

2005-10-14 Thread Chia-I Wu
On Fri, Oct 14, 2005 at 08:39:13PM +0200, Werner LEMBERG wrote: > > There are some functions which are wrappers to services. Then why > > not simply export the services to clients? > Please give an example how you would like to rearrange services. For example, we can export WINFNT. Then instead o

Re: [ft-devel] Export services?

2005-10-14 Thread Werner LEMBERG
> There are some functions which are wrappers to services. Then why > not simply export the services to clients? Please give an example how you would like to rearrange services. > To make finding a service faster, we can use integers as service id, > instead of strings. Do you really think tha

[ft-devel] Export services?

2005-10-14 Thread Chia-I Wu
Hi, There are some functions which are wrappers to services. Then why not simply export the services to clients? The idea is, we let modules decide which services, among those they provide, to export. For a exported service, it should provide headers, not depending on internal headers, to descr