to make up for not using xft.dpi anymore that was a fix essentially
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Nov 2011 05:58:19 +0000 (05:58 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 9 Nov 2011 05:58:19 +0000 (05:58 +0000)
to buffer engine rendering, allow env var for evas font dpi.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64970 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_main.c

index 5a5508b..070ac2d 100644 (file)
@@ -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);