freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Different Values from Freetype Face


From: Werner LEMBERG
Subject: Re: [ft] Different Values from Freetype Face
Date: Sat, 16 Jan 2010 06:51:19 +0100 (CET)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]