diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index f980f2d2d1f..8497f53ffb6 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -5605,6 +5605,11 @@ prepare_face_for_display (f, face) | |||
| 5605 | if (face->font) | 5605 | if (face->font) |
| 5606 | { | 5606 | { |
| 5607 | #ifdef HAVE_X_WINDOWS | 5607 | #ifdef HAVE_X_WINDOWS |
| 5608 | #ifdef USE_FONT_BACKEND | ||
| 5609 | if (enable_font_backend) | ||
| 5610 | xgcv.font = FRAME_X_DISPLAY_INFO (f)->font->fid; | ||
| 5611 | else | ||
| 5612 | #endif | ||
| 5608 | xgcv.font = face->font->fid; | 5613 | xgcv.font = face->font->fid; |
| 5609 | #endif | 5614 | #endif |
| 5610 | #ifdef WINDOWSNT | 5615 | #ifdef WINDOWSNT |
| @@ -6710,7 +6715,8 @@ Value is ORDER. */) | |||
| 6710 | } | 6715 | } |
| 6711 | 6716 | ||
| 6712 | #ifdef USE_FONT_BACKEND | 6717 | #ifdef USE_FONT_BACKEND |
| 6713 | font_update_sort_order (font_sort_order); | 6718 | if (enable_font_backend) |
| 6719 | font_update_sort_order (font_sort_order); | ||
| 6714 | #endif /* USE_FONT_BACKEND */ | 6720 | #endif /* USE_FONT_BACKEND */ |
| 6715 | 6721 | ||
| 6716 | return Qnil; | 6722 | return Qnil; |
| @@ -7658,7 +7664,7 @@ realize_non_ascii_face (f, font_id, base_face) | |||
| 7658 | face->gc = 0; | 7664 | face->gc = 0; |
| 7659 | #ifdef USE_FONT_BACKEND | 7665 | #ifdef USE_FONT_BACKEND |
| 7660 | face->extra = NULL; | 7666 | face->extra = NULL; |
| 7661 | #endif | 7667 | #endif /* USE_FONT_BACKEND */ |
| 7662 | 7668 | ||
| 7663 | /* Don't try to free the colors copied bitwise from BASE_FACE. */ | 7669 | /* Don't try to free the colors copied bitwise from BASE_FACE. */ |
| 7664 | face->colors_copied_bitwise_p = 1; | 7670 | face->colors_copied_bitwise_p = 1; |
| @@ -7720,7 +7726,8 @@ realize_x_face (cache, attrs) | |||
| 7720 | face->font = default_face->font; | 7726 | face->font = default_face->font; |
| 7721 | face->font_info_id = default_face->font_info_id; | 7727 | face->font_info_id = default_face->font_info_id; |
| 7722 | #ifdef USE_FONT_BACKEND | 7728 | #ifdef USE_FONT_BACKEND |
| 7723 | face->font_info = default_face->font_info; | 7729 | if (enable_font_backend) |
| 7730 | face->font_info = default_face->font_info; | ||
| 7724 | #endif /* USE_FONT_BACKEND */ | 7731 | #endif /* USE_FONT_BACKEND */ |
| 7725 | face->font_name = default_face->font_name; | 7732 | face->font_name = default_face->font_name; |
| 7726 | face->fontset | 7733 | face->fontset |