From d5acea64b167928bb377e3f7d3fcaa19bf010d3b Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Sat, 16 Jun 2007 00:02:50 +0000 Subject: [PATCH] charcell fonts along with monospace svn: r6669 --- src/mred/wxs/wxscheme.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mred/wxs/wxscheme.cxx b/src/mred/wxs/wxscheme.cxx index 6d13fabd50..77f0b2da42 100644 --- a/src/mred/wxs/wxscheme.cxx +++ b/src/mred/wxs/wxscheme.cxx @@ -1025,10 +1025,12 @@ static int indirect_strcmp(const void *a, const void *b) static int is_x_monospace(char *s) { if (s[0] == '-') { - /* Full X font name. Check for "-m-" in name. */ + /* Full X font name. Check for "-m-" or "-c-" in name. */ int j; for (j = 0; s[j+2]; j++) { - if ((s[j] == '-') && (s[j+1] == 'm') && (s[j+2] == '-')) + if ((s[j] == '-') + && ((s[j+1] == 'm') || (s[j+1] == 'c')) + && (s[j+2] == '-')) return 1; } }