Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using a mono space font
Using a mono space font [message #393964] Wed, 03 December 2003 10:20 Go to next message
Eclipse UserFriend
When using SWT standalone, is there a way to tell a Label widget to use a
mono space font without the program picking the actual font.
Re: Using a mono space font [message #394668 is a reply to message #393964] Thu, 04 December 2003 01:56 Go to previous messageGo to next message
Eclipse UserFriend
shmuel siegel <hard2@writeme.com> wrote:

> When using SWT standalone, is there a way to tell a Label widget to use a
> mono space font without the program picking the actual font.
How about Control.setFont method?

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Using a mono space font [message #394671 is a reply to message #394668] Thu, 04 December 2003 05:20 Go to previous messageGo to next message
Eclipse UserFriend
This is exactly what I didn't want to do. I didn't want to pick a font since
that makes the code platform dependent. I guess I need to enter a feature
request for another style attribute for a control. In the meantime I'll use
Courier New which is probably available on all platforms of interest.
"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:oMM6$OjuDHA.3360@fairy.ao.nlmk...
> shmuel siegel <hard2@writeme.com> wrote:
>
> > When using SWT standalone, is there a way to tell a Label widget to use
a
> > mono space font without the program picking the actual font.
> How about Control.setFont method?
>
> --
> SY, Konstantin.
> Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Using a mono space font [message #398720 is a reply to message #394671] Mon, 15 December 2003 17:02 Go to previous messageGo to next message
Eclipse UserFriend
"shmuel siegel" <hard2@writeme.com> wrote in
news:bqn1im$okv$1@eclipse.org:

> "Konstantin Scheglov" <scheglov_ke@nlmk.ru>
> wrote in message news:oMM6$OjuDHA.3360@fairy.ao.nlmk...
>> shmuel siegel <hard2@writeme.com> wrote:
>>
>>> When using SWT standalone, is there a way to tell a Label widget to
>>> use a
>>> mono space font without the program picking the actual font.
>>
>> How about Control.setFont method?
>
> This is exactly what I didn't want to do. I didn't want to pick a font
> since that makes the code platform dependent. I guess I need to enter
> a feature request for another style attribute for a control. In the
> meantime I'll use Courier New which is probably available on all
> platforms of interest.

I wish to achieve the same thing. I do not want to specify a font, I just
want to ensure that it is fixed width. Are you going to propose this
feature? I'd suggest following the W3C model, as used in CSS:

<generic-family>
In the example above, the last value is a generic family name. The
following generic families are defined:
* serif' (e.g. Times)
* sans-serif' (e.g. Helvetica)
* cursive' (e.g. Zapf-Chancery)
* fantasy' (e.g. Western)
* monospace' (e.g. Courier)

From Cascading Style Sheets, level 1, section 5.2.2 'font-family':
http://www.w3.org/TR/CSS1#font-family

--
Jon Dowland
Re: Using a mono space font [message #399768 is a reply to message #398720] Fri, 19 December 2003 03:15 Go to previous message
Eclipse UserFriend
I made an official request for monospace font. You can add your comments to
bug report 48055.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=48055

"Jon Dowland" <jon@frag.ord> wrote in message
news:Xns9452E001FE2D8jonfradorg@204.138.98.10...
> "shmuel siegel" <hard2@writeme.com> wrote in
> news:bqn1im$okv$1@eclipse.org:
>
> > "Konstantin Scheglov" <scheglov_ke@nlmk.ru>
> > wrote in message news:oMM6$OjuDHA.3360@fairy.ao.nlmk...
> >> shmuel siegel <hard2@writeme.com> wrote:
> >>
> >>> When using SWT standalone, is there a way to tell a Label widget to
> >>> use a
> >>> mono space font without the program picking the actual font.
> >>
> >> How about Control.setFont method?
> >
> > This is exactly what I didn't want to do. I didn't want to pick a font
> > since that makes the code platform dependent. I guess I need to enter
> > a feature request for another style attribute for a control. In the
> > meantime I'll use Courier New which is probably available on all
> > platforms of interest.
>
> I wish to achieve the same thing. I do not want to specify a font, I just
> want to ensure that it is fixed width. Are you going to propose this
> feature? I'd suggest following the W3C model, as used in CSS:
>
> <generic-family>
> In the example above, the last value is a generic family name. The
> following generic families are defined:
> * serif' (e.g. Times)
> * sans-serif' (e.g. Helvetica)
> * cursive' (e.g. Zapf-Chancery)
> * fantasy' (e.g. Western)
> * monospace' (e.g. Courier)
>
> From Cascading Style Sheets, level 1, section 5.2.2 'font-family':
> http://www.w3.org/TR/CSS1#font-family
>
> --
> Jon Dowland
Previous Topic:What determines the minimum size of a custom widget?
Next Topic:Layered Composites?
Goto Forum:
  


Current Time: Sun Aug 03 17:56:08 EDT 2025

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

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

Back to the top