Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        text.c 


Log Message:
Set fallback font (modified patch from Laurence J. Lane <[EMAIL PROTECTED]>).
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/text.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- text.c      5 Nov 2003 17:24:46 -0000       1.23
+++ text.c      15 Nov 2003 21:40:38 -0000      1.24
@@ -203,13 +203,22 @@
                  /* EDBUG_RETURN_; */
               }
             if (!ts->xfontset)
-               EDBUG_RETURN_;
+              {
+                 ts->xfontset =
+                    XCreateFontSet(disp, "fixed", &missing_list, &missing_cnt,
+                                   &def_str);
+                 if (missing_cnt)
+                    XFreeStringList(missing_list);
+              }
+            EDBUG_RETURN_;
 
             ts->xfontset_ascent = 0;
             font_cnt = XFontsOfFontSet(ts->xfontset, &fs, &fn);
             for (i = 0; i < font_cnt; i++)
                ts->xfontset_ascent = MAX(fs[i]->ascent, ts->xfontset_ascent);
          }
+       if (!ts->xfont)
+          ts->xfont = XLoadQueryFont(disp, "fixed");
      }
    EDBUG_RETURN_;
 }




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to