I'm assuming this is possible. You could always ask the SWT folks.
I have a scaled graphics class already. I just released it in the org.eclipse.draw2d.test project. It isn't complete yet, but I am handling Font scaling. I still need to manage and release the OS resource for the scaled font. Are you developing on Eclipse GEF or WSWB GEF? Would you like to contribute to this class' implementation?
-Randy Hudson
"Tomas Pinos" <tomas.pinos@xxxxxxxx> Sent by: gef-dev-admin@xxxxxxxxxxx
10/17/2002 04:44 AM
Please respond to gef-dev
To: <gef-dev@xxxxxxxxxxx>
cc:
Subject: [gef-dev] Scaling fonts in draw2d Graphics
Hi,
I'm currently implementing scaling (~ zooming) for our diagram editor and
I'd like to ask how to handle the fonts. Randy tried to discuss some
"advanced" features like greeking, I have rather basic question.
How to scale a font?
Now I read the font data, scale the font height and create a new font with
the scaled height (if I haven't done it already). Is it possible to do this
for any font? If not, how else should I proceed?
Thanks,
Tomas
_______________________________________________
gef-dev mailing list
gef-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/gef-dev