Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/include
Modified Files:
evas_common.h evas_private.h
Log Message:
werd to my homies... this had to happen sooner or later.... evas supports
FONTSETS!
so u can do
Vera,Kochi,Blah ... etc.
as the font name
it will fall back font by font until it finds a char or finally fails.
this is for internationalisation support...
WHERD!
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/include/evas_common.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- evas_common.h 17 Mar 2005 06:43:55 -0000 1.34
+++ evas_common.h 20 Mar 2005 15:57:55 -0000 1.35
@@ -171,6 +171,7 @@
typedef struct _RGBA_Gradient_Color RGBA_Gradient_Color;
typedef struct _RGBA_Polygon_Point RGBA_Polygon_Point;
typedef struct _RGBA_Font RGBA_Font;
+typedef struct _RGBA_Font_Int RGBA_Font_Int;
typedef struct _RGBA_Font_Source RGBA_Font_Source;
typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph;
@@ -339,6 +340,11 @@
struct _RGBA_Font
{
+ Evas_List *fonts;
+};
+
+struct _RGBA_Font_Int
+{
Evas_Object_List _list_data;
RGBA_Font_Source *src;
@@ -882,16 +888,19 @@
void evas_common_font_size_use (RGBA_Font *fn);
RGBA_Font *evas_common_font_memory_load (const char *name, int
size, const void *data, int data_size);
RGBA_Font *evas_common_font_load (const char *name, int
size);
-RGBA_Font *evas_common_font_load_init (RGBA_Font *fn);
+int evas_common_font_add (RGBA_Font *fn, const char
*name, int size);
+int evas_common_font_memory_add (RGBA_Font *fn, const char
*name, int size, const void *data, int data_size);
+RGBA_Font_Int *evas_common_font_int_load_init (RGBA_Font_Int *fn);
void evas_common_font_free (RGBA_Font *fn);
-void evas_common_font_modify_cache_by (RGBA_Font *fn, int dir);
+void evas_common_font_int_modify_cache_by(RGBA_Font_Int *fi, int
dir);
int evas_common_font_cache_get (void);
void evas_common_font_cache_set (int size);
void evas_common_font_flush (void);
void evas_common_font_flush_last (void);
-RGBA_Font *evas_common_font_find (const char *name, int
size);
+RGBA_Font_Int *evas_common_font_int_find (const char *name, int
size);
+int evas_common_font_glyph_search (RGBA_Font *fn,
RGBA_Font_Int **fi_ret, int gl);
void evas_common_font_draw (RGBA_Image *dst,
RGBA_Draw_Context *dc, RGBA_Font *fn, int x, int y, const char *text);
-RGBA_Font_Glyph *evas_common_font_cache_glyph_get (RGBA_Font *fn, FT_UInt
index);
+RGBA_Font_Glyph *evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi,
FT_UInt index);
int evas_common_font_ascent_get (RGBA_Font *fn);
int evas_common_font_descent_get (RGBA_Font *fn);
int evas_common_font_max_ascent_get (RGBA_Font *fn);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/include/evas_private.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- evas_private.h 23 Feb 2005 20:32:07 -0000 1.36
+++ evas_private.h 20 Mar 2005 15:57:55 -0000 1.37
@@ -593,6 +593,8 @@
void *(*font_load) (void *data, char *name, int size);
void *(*font_memory_load) (void *data, char *name, int size,
const void *fdata, int fdata_size);
+ void *(*font_add) (void *data, char *name, int size);
+ void *(*font_memory_add) (void *data, char *name, int size,
const void *fdata, int fdata_size);
void (*font_free) (void *data, void *font);
int (*font_ascent_get) (void *data, void *font);
int (*font_descent_get) (void *data, void *font);
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs