forked from enlightenment/efl
parent
84736e7845
commit
4436026ac6
|
@ -1,7 +1,5 @@
|
||||||
#include "evas_common.h"
|
#include "evas_common.h"
|
||||||
|
|
||||||
extern FT_Library evas_ft_lib;
|
|
||||||
|
|
||||||
RGBA_Font_Glyph *
|
RGBA_Font_Glyph *
|
||||||
evas_common_font_cache_glyph_get(RGBA_Font *fn, FT_UInt index)
|
evas_common_font_cache_glyph_get(RGBA_Font *fn, FT_UInt index)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "evas_common.h"
|
#include "evas_common.h"
|
||||||
|
|
||||||
FT_Library evas_ft_lib = 0;
|
extern FT_Library evas_ft_lib;
|
||||||
|
|
||||||
static int font_cache_usage = 0;
|
static int font_cache_usage = 0;
|
||||||
static int font_cache = 0;
|
static int font_cache = 0;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "evas_common.h"
|
#include "evas_common.h"
|
||||||
|
|
||||||
FT_Library ft_lib;
|
FT_Library evas_ft_lib = 0;
|
||||||
static int initialised = 0;
|
static int initialised = 0;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -10,7 +10,7 @@ evas_common_font_init(void)
|
||||||
|
|
||||||
initialised++;
|
initialised++;
|
||||||
if (initialised != 1) return;
|
if (initialised != 1) return;
|
||||||
error = FT_Init_FreeType(&ft_lib);
|
error = FT_Init_FreeType(&evas_ft_lib);
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
initialised--;
|
initialised--;
|
||||||
|
@ -25,7 +25,7 @@ evas_common_font_shutdown(void)
|
||||||
|
|
||||||
initialised--;
|
initialised--;
|
||||||
if (initialised != 0) return;
|
if (initialised != 0) return;
|
||||||
error = FT_Done_FreeType(ft_lib);
|
error = FT_Done_FreeType(evas_ft_lib);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#include "evas_common.h"
|
#include "evas_common.h"
|
||||||
|
|
||||||
extern FT_Library evas_ft_lib;
|
|
||||||
|
|
||||||
/* string extents */
|
/* string extents */
|
||||||
void
|
void
|
||||||
evas_common_font_query_size(RGBA_Font *fn, const char *text, int *w, int *h)
|
evas_common_font_query_size(RGBA_Font *fn, const char *text, int *w, int *h)
|
||||||
|
|
Loading…
Reference in New Issue