comparison src/objects-x.c @ 3164:c9423e7289d2

[xemacs-hg @ 2005-12-23 12:00:44 by stephent] Fix crash getting truename of Xft fonts. <878xuc2fdo.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 23 Dec 2005 12:00:45 +0000
parents f94f72c6ceb0
children 8f3f6e3dfad9
comparison
equal deleted inserted replaced
3163:04a435415e1d 3164:c9423e7289d2
805 { 805 {
806 /* The font is already open, we just unparse. */ 806 /* The font is already open, we just unparse. */
807 FcChar8 *res = FcNameUnparse (FONT_INSTANCE_X_XFTFONT (f)->pattern); 807 FcChar8 *res = FcNameUnparse (FONT_INSTANCE_X_XFTFONT (f)->pattern);
808 if (res) 808 if (res)
809 { 809 {
810 FONT_INSTANCE_TRUENAME (f) = make_string (res, strlen (res)); 810 FONT_INSTANCE_TRUENAME (f) =
811 build_ext_string (res, Qxft_font_name_encoding);
811 free (res); 812 free (res);
812 return FONT_INSTANCE_TRUENAME (f); 813 return FONT_INSTANCE_TRUENAME (f);
813 } 814 }
814 else 815 else
815 { 816 {