[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Putting Composite into TableItem ?
|
- From: ggayed@xxxxxxxxxx (Grant Gayed)
- Date: Tue, 14 Jan 2003 15:12:42 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Valentino,
My previous reply contained a little bad advice. If your application is
being used as an Eclipse plugin then it's not advisable to change the font
since this will be inconsistent with the rest of the workbench. The user
should already be using a workbench font that's appropriate for their
locale (done in Window -> Preferences, Workbench - Fonts page).
MessageDialog doesn't provide a way for you to set its font since it
inherits this attribute from the workbench. Same goes for the status
line. You can log a Feature Request with Platform - UI to change these,
but I think that these omissions are by design.
w.r.t. font matching, if you specify a font to be used and it doesn't
exist on the host machine, a matching scheme is used to determine an
alternative available font to use instead. However there's no guarantee
that the selected alternative will be able to display the same set of
characters, especially if you want to use drawing-like characters.
Embedding drawing characters in ordinary strings is generally discouraged.
Grant
Valentino Kyriakides wrote:
> Grant, how can I do this ...say in a portable manner for the font... and
> finally ...which font may be able to show up all those possible glyphs?
> Personally I'am working on a win box (under W2K with the JDK 1.4.x), but
> somebody else ,who possibly want's to run my plugin, may be using some
> flavor of Unix system instead. So how can I control which fonts are used for
> all possible OS and what would happen for other users, if I only would
> define one win font on my side (will then some automatic font
> mapping/replace take place)?
> -Valentino
> "Grant Gayed" <ggayed@xxxxxxxxxx> schrieb im Newsbeitrag
> news:avupm0$lst$1@xxxxxxxxxxxxxxxx
> > It sounds like you're using a font that doesn't contain those characters,
> > hence the outline rectangles are drawn instead. You probably need to set
> > the font on these widgets to one that can definitely draw the problematic
> > characters.
> >
> > Grant
> >
> > Valentino Kyriakides wrote:
> >
> > > Thank's for this one!
> >
> > > It showed that my initial table refilling procedure was done in the same
> way
> > > and hopefully right way. However, I have a problem with showing up some
> of
> > > the graph chars from character sets (extended characters), as for
> example
> > > those higher order special line/frame drawing chars etc. These are never
> > > drawn inside my table cells and also not shown in any MessageDialog,
> instead
> > > just a little outline rectangle is always shown there for these.
> >
> > > Is there some way to setup a SWT table and MessageDialog in a way that
> those
> > > chars can be shown up correctly?
> >
> > > Thank's for any hint
> >
> > > -Valentino
> >
> > > "Grant Gayed" <ggayed@xxxxxxxxxx> schrieb im Newsbeitrag
> > > news:avmsji$9b5$1@xxxxxxxxxxxxxxxx
> > > > I've added one, see
> > > >
> > >
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/sn
> > > ippits/snippet103.html
> >
> >
> >
> >
> >