After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99876 - Text not displayed in diagram
Text not displayed in diagram
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
CVS head
Other Linux
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-29 09:12 UTC by Steffen Macke
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steffen Macke 2002-11-29 09:12:19 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.
Comment 1 Steffen Macke 2002-11-29 09:18:47 UTC
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.
Comment 2 martin H. 2002-11-29 21:48:46 UTC
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)?
Comment 3 Lars Clausen 2002-12-01 18:32:32 UTC
Martin, did you compile with Freetype?  It is required now, though the configure script isn't updated to reflect this.
Comment 4 martin H. 2002-12-01 22:51:58 UTC
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.
Comment 5 martin H. 2002-12-03 15:51:42 UTC
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?
Comment 6 Steffen Macke 2002-12-03 20:41:57 UTC
In my case LD_BIND_NOW is not set (echo $LD_BIND_NOW returns
an empty string). The problem still remains.
Comment 7 Lars Clausen 2002-12-03 23:22:13 UTC
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.
Comment 8 Steffen Macke 2002-12-14 17:45:54 UTC
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())
Comment 9 Lars Clausen 2002-12-19 21:16:26 UTC
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.
Comment 10 Lars Clausen 2002-12-19 21:48:46 UTC
The dingbats problem is unrelated to Dia, see bug #101641
Comment 11 Steffen Macke 2002-12-24 10:17:43 UTC
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)
Comment 12 Lars Clausen 2003-01-18 16:42:41 UTC
Using Pango 1.2.0 and the current CVS, fonts look fine, according to
both me and Steffen.