summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Meshcheryakov <eugen@univ.kiev.ua>2007-08-27 00:41:03 +1000
committerDrew Parsons <dparsons@debian.org>2007-08-27 00:41:03 +1000
commitaffda73a1d6e291516880dfbcb74b661374524c6 (patch)
tree6d04e63ac0e8693a7d5adc54ce7f9d16df387b5e
parent6f44a2c8a8d6e8f95681ebc7b2dd5ad9c3a02c6e (diff)
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.
-rw-r--r--hw/xprint/ps/psout_ft.c2
1 files changed, 2 insertions, 0 deletions
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 )