summaryrefslogtreecommitdiff
path: root/textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2006-01-30 15:06:14 +0000
committerHiroki Sato <hrs@FreeBSD.org>2006-01-30 15:06:14 +0000
commitacc76dbe442be2f554595b134d78ec3ef53d4097 (patch)
tree900ed0ada000c58a5a404c12c1fcdb0c5a10df98 /textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c
parent- Upgrade to 2.8. (diff)
Update to 0.3.8. Changes include:
- Changes between 0.3.7 and 0.3.8 * Corrected endless loop if area won't fit on page * Added handling 'overflow' property of fo:region-body * xmlroff stops at first error instead of continuing - Changes between 0.3.6 and 0.3.7 * Corrected placement of fo:external-graphic if not first on line * Added setting pixels-per-inch (for graphics without intrinsic size) as configure option * Working on averting endless loop if area won't fit on page. - Changes between 0.3.5 and 0.3.6 * Resolves relative URIs for fo:external-graphic 'src' property values (Stefan Seefeld) * Added 'content-type' to libfo-compat.xsl * Stopped requiring 'content-height' and 'content-width' * Supporting percentages for 'content-height' and 'content-width' * Improved Cygwin support (Gerrit Haase) - Changes between 0.3.4 and 0.3.5 * fo:external-graphic works (but requires 'content-height' and 'content-width') * Stopped removing 'fo:external-graphic' in libfo-compat.xsl (Tim Waugh) * Able to build in separate directory (Matthew Daniel) * Default 'auto' output format determines format from output file extension * Added conformance section to documentation - Changes between 0.3.3 and 0.3.4 * Add '--format' parameter for PDF or PostScript output * Reduced memory leakage * Partially re-implemented fo:external-graphic support * Corrected whitespace handling in libfo-compat.xsl (Tim Waugh) * Corrected "url()" handling * 86% symbol docs coverage
Diffstat (limited to 'textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c')
-rw-r--r--textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c b/textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c
new file mode 100644
index 000000000000..7d4e8d583cb1
--- /dev/null
+++ b/textproc/xmlroff/files/patch-property-fo-property-dominant-baseline.c
@@ -0,0 +1,28 @@
+--- property/fo-property-dominant-baseline.c.orig Mon Jan 30 22:02:19 2006
++++ property/fo-property-dominant-baseline.c Mon Jan 30 22:03:47 2006
+@@ -453,12 +453,15 @@
+
+ if (dominant_baseline != FO_ENUM_ENUM_RESET_SIZE)
+ {
++ gchar *font_family = NULL;
++ PangoAttribute *pango_attr = NULL;
++
+ PangoBaseline pango_dominant_baseline =
+ fo_property_dominant_baseline_to_pango_baseline (dominant_baseline);
+
+ font_desc = pango_font_description_new ();
+
+- gchar *font_family = fo_string_get_value (fo_property_get_value (fo_context_get_font_family (context)));
++ font_family = fo_string_get_value (fo_property_get_value (fo_context_get_font_family (context)));
+ pango_font_description_set_family (font_desc, font_family);
+ g_free (font_family);
+
+@@ -473,7 +476,7 @@
+ pango_font_description_set_variant (font_desc,
+ fo_enum_get_value (fo_property_get_value (fo_context_get_font_variant (context))));
+
+- PangoAttribute *pango_attr = pango_attr_dominant_baseline_new (pango_dominant_baseline,
++ pango_attr = pango_attr_dominant_baseline_new (pango_dominant_baseline,
+ font_desc);
+ pango_font_description_free (font_desc);
+ return pango_attr;