Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » two font view/editor
two font view/editor [message #445374] Thu, 04 November 2004 15:10 Go to next message
Noah is currently offline NoahFriend
Messages: 2
Registered: July 2009
Junior Member
I'm working on my first plugin, and I'm a little stumped.

I need to be able to display text, some in one font, some in another,
where the two fonts will be fairly well mixed (read: two fonts in a single
line, likely alternating words).
StyledText won't work, b/c I have two genuinely different fonts I want to
mix (one english, one symbol), not just two different font styles.

Any suggestions?
I've heard rumors of a RichText class that sounds like it might do what I
want, but I've been unable to track it down.
Currently I'm working with Eclipse 2.1, but if I have to upgrade to 3.x I
guess I will.
thanks,
Noah
Re: two font view/editor [message #445698 is a reply to message #445374] Tue, 09 November 2004 19:44 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Noah,

There currently is not a rich text class, but there is a 3.1 plan item under
consideratoin to extend StyledText to do what you need (see under the Rich
Client Platform heading at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/R3_1/plan.html#Overall_Plan )
.. In the meantime, I do not have a good alternative suggestion for you
unless the text you're displaying is read-only; if it is then you can create
a Browser widget and feed it an html string that represents your content.

Grant

"Noah" <nleaste@orion.ncsc.mil> wrote in message
news:cmdgp5$po5$1@eclipse.org...
> I'm working on my first plugin, and I'm a little stumped.
>
> I need to be able to display text, some in one font, some in another,
> where the two fonts will be fairly well mixed (read: two fonts in a single
> line, likely alternating words).
> StyledText won't work, b/c I have two genuinely different fonts I want to
> mix (one english, one symbol), not just two different font styles.
>
> Any suggestions?
> I've heard rumors of a RichText class that sounds like it might do what I
> want, but I've been unable to track it down.
> Currently I'm working with Eclipse 2.1, but if I have to upgrade to 3.x I
> guess I will.
> thanks,
> Noah
>
Previous Topic:HTML widget control
Next Topic:CBanner notification ?
Goto Forum:
  


Current Time: Sun Oct 25 15:13:38 GMT 2020

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

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

Back to the top