GNU bug report logs -
#10193
font problem with koi8-r encoding
Previous Next
Reported by: Werner LEMBERG <wl <at> gnu.org>
Date: Fri, 2 Dec 2011 09:15:01 UTC
Severity: normal
Tags: patch
Merged with 8046
Fixed in version 24.0.93
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
In article <20111202.194705.300027605.wl <at> gnu.org>, Werner LEMBERG <wl <at> gnu.org> writes:
>>> Starting with `emacs -Q' and loading a file encoded in koi8-r,
>>> Emacs uses an oblique style to display Russian characters on my
>>> GNU/Linux box.
> >
> > bug#8046 ?
> Indeed. Sorry for the duplicate. Apparently, this bug report slipped
> under Ken'ichi-san's radar...
Yes, I'm sorry. I've just installed the attached change.
Could you please check if it fixes the problem?
---
Kenichi Handa
handa <at> m17n.org
2011-12-05 Kenichi Handa <handa <at> m17n.org>
* ftfont.c (get_adstyle_property): If the font is not BDF nor PCF,
return Qnil (Bug#8046, Bug#10193).
=== modified file 'src/ftfont.c'
--- src/ftfont.c 2011-11-30 16:33:05 +0000
+++ src/ftfont.c 2011-12-05 07:11:55 +0000
@@ -164,6 +164,13 @@
char *str, *end;
Lisp_Object adstyle;
+#ifdef FC_FONTFORMAT
+ if ((FcPatternGetString (p, FC_FONTFORMAT, 0, &fcstr) == FcResultMatch)
+ && (xstrcasecmp ((char *) fcstr, "bdf") != 0
+ || xstrcasecmp ((char *) fcstr, "pcf") != 0))
+ /* Not a BDF nor PCF font. */
+ return Qnil;
+#endif
if (FcPatternGetString (p, FC_STYLE, 0, &fcstr) != FcResultMatch)
return Qnil;
str = (char *) fcstr;
This bug report was last modified 13 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.