Metapost bug with font size... (Was: PyDia and Metapost)
- From: "Rob McDonald" <robm asdl gatech edu>
- To: "discussions about usage and development of dia" <dia-list gnome org>
- Subject: Metapost bug with font size... (Was: PyDia and Metapost)
- Date: Thu, 16 Feb 2006 15:42:46 -0500
I think I've found the problem. The text size appears to be keyed into
the
zoom level selected on screen. Zoom to 100%, the exported text looks
right.
Zoom to 200%, the font gets bigger. Zoom to 400%, everything gets bigger
yet.
Previously, when I deleted 14 of the objects, I must've selected some
intermediate zoom level.
Hope this helps, this one ought to be pretty easy to fix.
If someone wants an easy way to re-create this bug, the following procedure
does it for me...
1) Start Dia.
2) Insert a text label "foo".
3) Set the zoom to 100%.
4) Export a MetaPost file foo1.mp
5) Set the zoom to 200% (or anything else)
6) Export a MetaPost file foo2.mp
7) Compare the two files. diff foo1.mp foo2.mp
The font scaling parameter will be different, while it shouldn't be. The
exported output should in no way be tied to the current on-screen view
(scroll bar position, zoom, grid on/off, etc.)
I would appreciate if someone else would confirm this problem, but I'm
pretty sure I've seen it in 0.95-pre1 Windows and 0.94 Linux.
I tried following through the code where the MetaPost export does a lookup
for the font size. It makes a call to pango and that's where I decided to
defer to the experts.
Thanks,
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]