Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000684graphvizOutput Generationpublic2007-03-06 16:462011-04-28 04:03
ReporterStefan Groae Pawig 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-OS Version
Summary0000684: Pango: problems with multiple font styles
Description



If output is created with the Pango plugin, and a label uses a font with
several styles (like bold+oblique), only one style is applied.



Example:
<CD>
echo 'digraph { Test [fontname="Helvetica-BoldOblique"] }' | dot -Tpng -o t.png
</CD>



In the example, the node lable is only drawn with the 'oblique' style.
If the GD plugin is used (-Tpng:gd), everything is fine.



The problem is caused by an incorrect string that is passed to
pango_font_description_from_string() in plugins/pango/gvtextlayout_pango.c
(from pango_textlayout()).



According to the documentation, pango_font_description_from_string()
expects a whitespace-separated list of style options, while
pango_textlayout() generates a comma-separated list. Thus, Pango
regards only the last entry of the list (the other style options will
be interpreted as additional font family names).
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
<CD>
--- plugin/pango/gvtextlayout_pango.c~ Wed Jul 26 17:30:54 2006
+++ plugin/pango/gvtextlayout_pango.c Sun Mar 4 12:22:08 2007
@@ -64,17 +64,21 @@
         pango_font_description_free (desc);

        if (para->postscript_alias) {
+ in
FORMER-ID1094
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (7 Mar 2007)
VERSION     2.12
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker