Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352341 - media-gfx/graphviz - dotty fails to render embedded text
Summary: media-gfx/graphviz - dotty fails to render embedded text
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 15:37 UTC by Markus Hauschild
Modified: 2015-10-05 13:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
example .dot file (reg.main.dot,2.58 KB, text/plain)
2011-01-21 15:38 UTC, Markus Hauschild
Details
screenshot of broken output (opt-dotty2.png,9.59 KB, image/png)
2011-01-21 15:38 UTC, Markus Hauschild
Details
emerge --info media-gfx/graphviz (info,4.79 KB, text/plain)
2011-01-21 15:42 UTC, Markus Hauschild
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Hauschild 2011-01-21 15:37:21 UTC
Viewing a simple .dot file (generated from LLVM tools to visualize code regions) with dotty results in broken text rendering for me, however files resulting from a conversion with dot to eps or png are perfectly fine.

Reproducible: Always

Steps to Reproduce:
1. dotty reg.main.dot
2. dot -Teps reg.main.dot > reg.main.eps
3. okular reg.main.eps (or any other viewer that can render eps files)

Actual Results:  
dotty rendering has little black squares instead of rendered text

Expected Results:  
dotty renders the .dot file similar to that the eps file looks

This bug does not occur on e.g. ubuntus current version of graphviz
Comment 1 Markus Hauschild 2011-01-21 15:38:05 UTC
Created attachment 260440 [details]
example .dot file
Comment 2 Markus Hauschild 2011-01-21 15:38:47 UTC
Created attachment 260441 [details]
screenshot of broken output
Comment 3 Markus Hauschild 2011-01-21 15:42:27 UTC
Created attachment 260442 [details]
emerge --info media-gfx/graphviz
Comment 4 Rafał Mużyło 2011-01-21 16:51:25 UTC
I don't know about dotty, as it aborts for me with "no font found",
but the file is displayed correctly by imagemagick, so it's likely just a configuration problem.
Comment 5 Markus Hauschild 2011-01-21 16:56:02 UTC
(In reply to comment #4)
> I don't know about dotty, as it aborts for me with "no font found",
> but the file is displayed correctly by imagemagick, so it's likely just a
> configuration problem.
> 

markus@dorm ~/workspace/polly/examples $ dotty reg.main.dot 
dotty.lefty: unknown color 1 using #1
dotty.lefty: unknown color 3 using #1
dotty.lefty: unknown color 5 using #1

tells me nothing about missing fonts, same behavior on my laptop (I sure did not touch and graphviz related config file there); also the .dot file doesn't specify which font to use so dotty could just use any font it finds
if correct dotty output depends on a certain fonts-package to be installed this should be either added as dependency or at least noted in elog/ewarn/something similar
Comment 6 Rafał Mużyło 2011-01-21 18:05:42 UTC
That's cause it probably chooses incorrect font.
After all, there's no font embedding in a dot file, lefty uses ones it finds,
the catch is it's not a fontconfig app, not even libXfont one, it picks fonts through Xaw.
Comment 7 Pacho Ramos gentoo-dev 2015-10-03 09:31:55 UTC
Are you still hitting this with a fully updated system and graphviz-2.38?
Comment 8 Markus Hauschild 2015-10-05 13:03:09 UTC
I updated to media-gfx/graphviz-2.38.0-r1 and can confirm that dotty now behaves as expected and shows proper text instead of black dots/squares.