aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 023d0194c59..1d39801a72d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10349,6 +10349,11 @@ x_check_font (f, font)
10349 10349
10350 xassert (font != NULL); 10350 xassert (font != NULL);
10351 10351
10352#ifdef USE_FONT_BACKEND
10353 if (enable_font_backend)
10354 /* Fixme: Perhaps we should check all cached fonts. */
10355 return;
10356#endif
10352 for (i = 0; i < dpyinfo->n_fonts; i++) 10357 for (i = 0; i < dpyinfo->n_fonts; i++)
10353 if (dpyinfo->font_table[i].name 10358 if (dpyinfo->font_table[i].name
10354 && font == dpyinfo->font_table[i].font) 10359 && font == dpyinfo->font_table[i].font)
@@ -11592,6 +11597,10 @@ x_delete_display (dpyinfo)
11592 xim_close_dpy (dpyinfo); 11597 xim_close_dpy (dpyinfo);
11593#endif 11598#endif
11594 11599
11600#ifdef USE_FONT_BACKEND
11601 if (! enable_font_backend)
11602 {
11603#endif
11595 /* Free the font names in the font table. */ 11604 /* Free the font names in the font table. */
11596 for (i = 0; i < dpyinfo->n_fonts; i++) 11605 for (i = 0; i < dpyinfo->n_fonts; i++)
11597 if (dpyinfo->font_table[i].name) 11606 if (dpyinfo->font_table[i].name)
@@ -11607,6 +11616,10 @@ x_delete_display (dpyinfo)
11607 xfree (dpyinfo->font_table->font_encoder); 11616 xfree (dpyinfo->font_table->font_encoder);
11608 xfree (dpyinfo->font_table); 11617 xfree (dpyinfo->font_table);
11609 } 11618 }
11619#ifdef USE_FONT_BACKEND
11620 }
11621#endif
11622
11610 if (dpyinfo->x_id_name) 11623 if (dpyinfo->x_id_name)
11611 xfree (dpyinfo->x_id_name); 11624 xfree (dpyinfo->x_id_name);
11612 if (dpyinfo->color_cells) 11625 if (dpyinfo->color_cells)
@@ -11716,6 +11729,9 @@ x_delete_terminal (struct terminal *terminal)
11716 return; 11729 return;
11717 11730
11718 BLOCK_INPUT; 11731 BLOCK_INPUT;
11732#ifdef USE_FONT_BACKEND
11733 if (! enable_font_backend)
11734#endif
11719 /* Free the fonts in the font table. */ 11735 /* Free the fonts in the font table. */
11720 for (i = 0; i < dpyinfo->n_fonts; i++) 11736 for (i = 0; i < dpyinfo->n_fonts; i++)
11721 if (dpyinfo->font_table[i].name) 11737 if (dpyinfo->font_table[i].name)