GNOME Bugzilla – Bug 99876
Text not displayed in diagram
Last modified: 2004-12-22 21:47:04 UTC
Text is not displayed in my diagrams, regardless of what font I select. The font selection works and I can see the text in the font preview. At one stage diagram texts were displayed but far too large. (All text of a UML class was outside of the class box.) However I cannot reproduce this.
Switching to Antialiased view, the texts are displayed (too large). After switching antialiasig off, the texts are still there (and still too large).. This has to be done for each diagram.
I have the same problem, no text is visible. But the antialias trick doesn't help. I still don't see the text. Is this a know problem or something that i done wrong (or a 'screwed up' system)?
Martin, did you compile with Freetype? It is required now, though the configure script isn't updated to reflect this.
Not sure I don't even see a freetype option. only options are --enable-gnome and --enable-python (besides the standard stuff) If I'm missing something i would really apprecate a hint where to look.
With the help of Lars Clausen i investigated the problem a bit further. I did compile with freetype (configure had no option but did it anyway). In my case the problem has been that i don't see the text if 'LD_BIND_NOW' is set to 'yes'. After unsetting this the problem is gone away. I think the is pretty scary, because LD_BIND_NOW should IMHO not possibly break things that bad. But I'm a little unsure if this belongs in this bug report or in another? If yes which component?
In my case LD_BIND_NOW is not set (echo $LD_BIND_NOW returns an empty string). The problem still remains.
LD_BIND_NOW has been known to affect things, including causing crashes in XRender. It forces the dynamic libs to be loaded early, which in theory shouldn't affect us. Steffen, could you try running with LD_BIND_NOW set? And then, with both setups, add a call to list_families() at the end of dia_font_init in lib/font.c, and see if there's a difference.
Another try (different machine, SuSE 8.1 again, current CVS) shows the problem again. The problem occurs (only) at font size 0.80 and 100% (Unfortunately the defaults). Selecting the dingbats font crashes dia (in the call to pango_font_family_list_faces())
I see the dingbats thing, none other of my fonts has that effect. Looks like a Pango thing. Steffen, I'd like to figure out what's up with your text. What version of Pango do you have installed? Could you attach a screenshot of the misrendered font? It is strange that it should occur only with font size 0.80. 100% zoom behaves slightly differently than other zoom sizes, since it doesn't have to tweak the size of the font. But that shouldn't make it larger.
The dingbats problem is unrelated to Dia, see bug #101641
rpm -q pango pango-1.0.4-46 This is the SuSE 8.1 package I'm also suffering terrible redraw problems and am getting the following warning messages: Failed to appropriately tweak zoomed font for zoom factor 28.284271 (Not for zoom factor 100)
Using Pango 1.2.0 and the current CVS, fonts look fine, according to both me and Steffen.