> Looks like I'm closing in on a font library. Here's a
> first look at the api.
Looks good. A feq questions below:
> int gelResetFontColor(ggi_visual_t vis);
What exactly does this do ? Im am wondering, because you give the visual ...
Is it an extension, so that you have metadata storage for your own stuff in
the visual, or what happens when calling this ?
> int gelPrintChar(ggi_visual_t vis, FT_Face font, FT_ULong char_code, int* x, int* y);
> int gelPrintVChar(ggi_visual_t vis, FT_Face font, FT_ULong char_code, int* x, int*
>y);
What's the difference between the normal and the "V" functions ?
> int gelPrintGlyph(ggi_visual_t vis, FT_Face font, FT_UInt index, int* x, int* y);
> int gelPrintVGlyph(ggi_visual_t vis, FT_Face font, FT_UInt index, int* x, int* y);
Char<->Glyph is accessing the font by character mapping or by font index
number mapping - right ?
> int gelPrintCharS(ggi_visual_t vis, FT_Face font, const char* string, int* x, int*
>y);
> int gelPrintVCharS(ggi_visual_t vis, FT_Face font, const char* string, int* x, int*
>y);
What is the defined behaviour when hitting the visual's edges ? I'd suggest
to just move on and ignore the remaining chars (though the positioning info
should say where it _were_, if the screen had been large enough)
drawing-wise. Automatically breaking lines makes it unnecessary hard to draw
e.g. half of a char at the edge of the screen, as needed e.g. for scrolling
areas.
> /* In progress
> int gelLiftChar(ggi_visual_t vis, FT_Face font, uint32 char_code, int* x, int* y,
>void* buf)
> int gelLiftVChar(ggi_visual_t vis, FT_Face font, uint32 char_code, int* x, int* y,
>void* buf)
> int gelLiftString(ggi_visual_t vis, FT_Face font, void* string, size_t num, int* x,
>int* y, void* buf)
> int gelLiftVString(ggi_visual_t vis, FT_Face font, void* string, size_t num, int* x,
>int* y, void* buf)
A few comments on what the functions do would be useful.
Looks good. Where are the functions to select and load/free fonts ?
I'd like, if loading fonts could be done alternatively by font name or by
an alias that is looked up through an alias database, maybe allowing to
give alternatives at open, like on web
<FONT FACE="Helvetica, Arial, Verdana") - guess you get the point.
We might as well want to define a bunch of standard aliases that are used
like kind of "user preferences".
CU, ANdy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =