Toshiya-san,
thanks for your efforts!
> 2-a) Add the switch only to the APIs taking optional parameters,
> like FT_Open_Face(), and the client should specify the switch
> in each font handle creation.
I like this.
> 2-b) Add the switch to FT_Library handle, to hide the default
> parameters in the font handle creation. It can change the
> behaviour of popular APIs like FT_New_Face() taking no
> optional parameters.
This is a good idea too.
> The default parameters can be changed by
> FT_SetDefaultNewFaceParam_FreeType().
Can you find a better, shorter function name? Something like
`FT_Set_Open_Args_Defaults'...
> + /* num_new_face_param :: The number of arguments in new_face_arg[] */
> + /* */
> + /* new_face_param :: Default arguments to be set for FT_New_Face() */
I'm not sure that using an FT_Parameter structure is the most
user-friendly solution, but admittedly I can't imagine something
better.
Werner
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype