SWT Rotated text [message #449529] |
Tue, 25 January 2005 19:34 |
Eclipse User |
|
|
|
Originally posted by: jmiller.acclaimvision.org
I have an application being developed on Win32 as an Eclipse plug-in. Can
I tweak the LOGFONT structure in FontData, specifically:
org.eclipse.swt.internal.win32.LOGFONT
I specify the orientation as:
myFontInstance.data[0].lfOrientation = 450; // specified as 10ths of
degrees
This has no effect when I render the text for this font set on the GC
using the following API:
gc.drawText(myText, x, y);
So, how do I rotate text (I would prefer to use OS specific calls versus
rotating an image)?
- Janet
|
|
|
Re: SWT Rotated text [message #449534 is a reply to message #449529] |
Tue, 25 January 2005 21:36 |
Eclipse User |
|
|
|
Originally posted by: cvskt.yahoo.com
Set 'myFontInstance.data[0].lfEscapement = 450;' instead.
However, gc.drawText(...) would clip off the rotated text rendered because
it assumes horizontal (0 degree) rendering when computing the bounding
rectangle.
So that's not very useful.
---
Janet Miller wrote:
> I have an application being developed on Win32 as an Eclipse plug-in. Can
> I tweak the LOGFONT structure in FontData, specifically:
> org.eclipse.swt.internal.win32.LOGFONT
> I specify the orientation as:
> myFontInstance.data[0].lfOrientation = 450; // specified as 10ths of
> degrees
> This has no effect when I render the text for this font set on the GC
> using the following API:
> gc.drawText(myText, x, y);
> So, how do I rotate text (I would prefer to use OS specific calls versus
> rotating an image)?
> - Janet
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04697 seconds