forked from enlightenment/efl
to make up for not using xft.dpi anymore that was a fix essentially
to buffer engine rendering, allow env var for evas font dpi. SVN revision: 64970
This commit is contained in:
parent
93ff9b01fd
commit
deb93c0d4a
|
@ -16,6 +16,7 @@ EAPI void
|
|||
evas_common_font_init(void)
|
||||
{
|
||||
int error;
|
||||
const char *s;
|
||||
|
||||
initialised++;
|
||||
if (initialised != 1) return;
|
||||
|
@ -23,6 +24,13 @@ evas_common_font_init(void)
|
|||
if (error) return;
|
||||
evas_common_font_load_init();
|
||||
evas_common_font_draw_init();
|
||||
s = getenv("EVAS_FONT_DPI");
|
||||
if (s)
|
||||
{
|
||||
int dpi = atoi(s);
|
||||
|
||||
if (dpi > 0) evas_common_font_dpi_set(dpi);
|
||||
}
|
||||
LKI(lock_font_draw);
|
||||
LKI(lock_bidi);
|
||||
LKI(lock_ot);
|
||||
|
|
Loading…
Reference in New Issue