SWT Font and AWT Font shows different size [message #165892] |
Thu, 27 January 2005 11:39 |
Eclipse User |
|
|
|
Originally posted by: shaiju.exorindia.com
Hi All
We are developing an IDE based on GEF . By this IDE , user can design
applets. IDE's design environemement is based on Draw2d and SWT. Applets
that user design using this IDE is serialized in xml format. IDE's
launcher application will create applet code (Java awt ) and user can
deploy this anywhere he wants.
We are facing a problem related to Font. When we use a Font for a
particular control (say Label ) at design time it shows a size which is
different from the size shown in applet . i.e Same Font in SWT and AWT
show different size ( even we set same size and other properties in both
case ). Can anybody help us in fixing this problem.
Thanks in Advance
Shaiju.P
|
|
|
|
Re: SWT Font and AWT Font shows different size [message #166809 is a reply to message #166386] |
Thu, 03 February 2005 09:29 |
Eclipse User |
|
|
|
Originally posted by: shaiju.exorindia.com
I think there is difference in font size itself in awt and swt .A slight
difference is there between SWT and GEF/Draw2D but that is very little and
can be ignored.
When we applied same Font ( Times New Roman ,14 ,Normal) we got the
different results in pure SWT and GEF/Draw2D and Applet . Please find the
attachment .I have marked the three results .
thank you for your valuable time
Shaiju.P
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:ctm9o4$asc$1@www.eclipse.org...
> Can you isolate this problem in SWT? Is the font itself a different size
> or
> is it the spacing around the text (or spacing between lines of text) that
> is
> different? This might have something to do with the leading that
> Draw2d/GEF
> uses.
>
> "Shaiju" <shaiju@exorindia.com> wrote in message
> news:ctaju0$1ri$1@www.eclipse.org...
>> Hi All
>> We are developing an IDE based on GEF . By this IDE , user can design
>> applets. IDE's design environemement is based on Draw2d and SWT.
>> Applets
>> that user design using this IDE is serialized in xml format. IDE's
>> launcher application will create applet code (Java awt ) and user can
>> deploy this anywhere he wants.
>> We are facing a problem related to Font. When we use a Font for a
>> particular control (say Label ) at design time it shows a size which is
>> different from the size shown in applet . i.e Same Font in SWT and AWT
>> show different size ( even we set same size and other properties in
> both
>> case ). Can anybody help us in fixing this problem.
>> Thanks in Advance
>>
>> Shaiju.P
>>
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04081 seconds