From affda73a1d6e291516880dfbcb74b661374524c6 Mon Sep 17 00:00:00 2001 From: Eugeniy Meshcheryakov Date: Mon, 27 Aug 2007 00:41:03 +1000 Subject: [PATCH] Xprint: fix handling of TrueType font name Debian bug #272368 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=272368 In certain locales, some characters from some TrueType fonts were not appearing in the Xprint postscript output due to the font not being identified in the postscript output. --- hw/xprint/ps/psout_ft.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/xprint/ps/psout_ft.c b/hw/xprint/ps/psout_ft.c index b10d9e592..30939f972 100644 --- a/hw/xprint/ps/psout_ft.c +++ b/hw/xprint/ps/psout_ft.c @@ -280,6 +280,8 @@ PsOut_FreeType_Text16(FontPtr pFont, PsOutPtr self, int x, int y, unsigned short else { sprintf(buf, "%s", baseFontName); + xfree(self->FontName); + self->FontName = NULL; } if( self->FontSize == -1 )