]> git.eshelyaron.com Git - emacs.git/commitdiff
(prepare_face_for_display): Use display_info->font->fid
authorKenichi Handa <handa@m17n.org>
Sun, 17 Feb 2008 02:01:26 +0000 (02:01 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 17 Feb 2008 02:01:26 +0000 (02:01 +0000)
for GCs.
(Finternal_set_font_selection_order): Call font_update_sort_order
only when enable_font_backend is set.
(realize_x_face): Set face->font_info to that of default face only
when enable_font_backend is set.

src/xfaces.c

index f980f2d2d1fa8b7284efcc0f6b2d64be0f1f5b11..8497f53ffb6a83c56e655f36119864c9842471e7 100644 (file)
@@ -5605,6 +5605,11 @@ prepare_face_for_display (f, face)
       if (face->font)
        {
 #ifdef HAVE_X_WINDOWS
+#ifdef USE_FONT_BACKEND
+         if (enable_font_backend)
+           xgcv.font = FRAME_X_DISPLAY_INFO (f)->font->fid;
+         else
+#endif
          xgcv.font = face->font->fid;
 #endif
 #ifdef WINDOWSNT
@@ -6710,7 +6715,8 @@ Value is ORDER.  */)
     }
 
 #ifdef USE_FONT_BACKEND
-  font_update_sort_order (font_sort_order);
+  if (enable_font_backend)
+    font_update_sort_order (font_sort_order);
 #endif /* USE_FONT_BACKEND */
 
   return Qnil;
@@ -7658,7 +7664,7 @@ realize_non_ascii_face (f, font_id, base_face)
   face->gc = 0;
 #ifdef USE_FONT_BACKEND
   face->extra = NULL;
-#endif
+#endif /* USE_FONT_BACKEND */
 
   /* Don't try to free the colors copied bitwise from BASE_FACE.  */
   face->colors_copied_bitwise_p = 1;
@@ -7720,7 +7726,8 @@ realize_x_face (cache, attrs)
       face->font = default_face->font;
       face->font_info_id = default_face->font_info_id;
 #ifdef USE_FONT_BACKEND
-      face->font_info = default_face->font_info;
+      if (enable_font_backend)
+       face->font_info = default_face->font_info;
 #endif /* USE_FONT_BACKEND */
       face->font_name = default_face->font_name;
       face->fontset