Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » TextEditor wrong font problem
TextEditor wrong font problem [message #318499] Tue, 31 July 2007 07:18 Go to next message
Eclipse UserFriend
Originally posted by: you.me.com

Im using a class that extends TextEditor to open files with a given
extention.

When opening the file for the first time in a Workspace I'm getting a
wrong font for the editor: Tahoma 8pt instead of Courier New 10pt. If I
leave the file open and close the Workspace and reopen it, the font is
correct.

Under Window - Preferences - General - Color and Fonts - Text Font, the
selected font is Courier New.

This only started with the latest Eclipse 3.3.
Re: TextEditor wrong font problem [message #318511 is a reply to message #318499] Tue, 31 July 2007 07:58 Go to previous messageGo to next message
Eclipse UserFriend
exquisitus wrote:

> Im using a class that extends TextEditor to open files with a given
> extention.
>
> When opening the file for the first time in a Workspace I'm getting a
> wrong font for the editor: Tahoma 8pt instead of Courier New 10pt. If
> I leave the file open and close the Workspace and reopen it, the font
> is correct.
>
> Under Window - Preferences - General - Color and Fonts - Text Font,
> the selected font is Courier New.
>
> This only started with the latest Eclipse 3.3.
>
What font is used when you open a file with the default Text editor the
first time. I just tried with the Text and Java editors and it works out
of the box using plain Eclipse SDK. Maybe you do something wrong
regarding the font?

Dani
Re: TextEditor wrong font problem [message #318519 is a reply to message #318511] Tue, 31 July 2007 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: you.me.com

Daniel Megert wrote:
> What font is used when you open a file with the default Text editor the
> first time. I just tried with the Text and Java editors and it works out
> of the box using plain Eclipse SDK. Maybe you do something wrong
> regarding the font?

Same thing happens - the default Text editor uses the Tahoma font the
first time (it is the "System default" font BTW). But if I leave the file
open and reopen the Workspace - it switches to Courier New for the default
Test editor just like my editor...

I don't know what's going on. I will try a new test plug-in.
Re: TextEditor wrong font problem [message #318526 is a reply to message #318519] Tue, 31 July 2007 10:42 Go to previous messageGo to next message
Eclipse UserFriend
exquisitus wrote:

> Daniel Megert wrote:
>
>> What font is used when you open a file with the default Text editor
>> the first time. I just tried with the Text and Java editors and it
>> works out of the box using plain Eclipse SDK. Maybe you do something
>> wrong regarding the font?
>
>
> Same thing happens - the default Text editor uses the Tahoma font the
> first time (it is the "System default" font BTW). But if I leave the
> file open and reopen the Workspace - it switches to Courier New for
> the default Test editor just like my editor...
>
> I don't know what's going on. I will try a new test plug-in.

Does it happen in a plain Eclipse SDK install as well (i.e. without any
other plug-in including yours)?

Dani
Re: TextEditor wrong font problem [message #318530 is a reply to message #318526] Tue, 31 July 2007 11:02 Go to previous message
Eclipse UserFriend
Originally posted by: you.me.com

OK I found the problem :)

There is no font problem with a fresh install of Eclipse SDK 3.3, with no
additional plug-ins.
I tested all my plug-ins and it turns out it was the Topcased plugin that
caused the font problem. I was using the 1.0.0 version:
http://gforge.enseeiht.fr/frs/?group_id=7
which was supposed to be compatible with Eclipse 3.3.
Previous Topic:Opening Multiple instances of a View
Next Topic:Making a FormEditor readonly
Goto Forum:
  


Current Time: Sun Nov 09 17:48:10 EST 2025

Powered by FUDForum. Page generated in 0.04358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top