|
From: <hba...@us...> - 2010-02-01 15:59:52
|
Revision: 10792
http://plplot.svn.sourceforge.net/plplot/?rev=10792&view=rev
Author: hbabcock
Date: 2010-02-01 15:59:44 +0000 (Mon, 01 Feb 2010)
Log Message:
-----------
Apply patch from Mark de Wever. Style previous changes.
Modified Paths:
--------------
trunk/drivers/cairo.c
Modified: trunk/drivers/cairo.c
===================================================================
--- trunk/drivers/cairo.c 2010-02-01 03:51:24 UTC (rev 10791)
+++ trunk/drivers/cairo.c 2010-02-01 15:59:44 UTC (rev 10792)
@@ -957,7 +957,9 @@
plP_fci2hex( fci, &fontFamily, PL_FCI_FAMILY );
plP_fci2hex( fci, &fontStyle, PL_FCI_STYLE );
plP_fci2hex( fci, &fontWeight, PL_FCI_WEIGHT );
- snprintf( openTag, TAG_LEN, "<span font_desc=\"%s %.2f\" ", familyLookup[fontFamily], fontSize );
+ /* From http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html
+ * size = font size in 1024ths of a point. */
+ snprintf( openTag, TAG_LEN, "<span font_desc=\"%s\" size=\"%d\" ", familyLookup[fontFamily], (int)( fontSize * 1024. ) );
strncat( pangoMarkupString, openTag, MAX_MARKUP_LEN - 1 - strlen( pangoMarkupString ) );
snprintf( openTag, TAG_LEN, "style=\"%s\" ", styleLookup[fontStyle] );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|