🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #7855

Re: Monospaced and Higher Unicode Characters

#7855
From: James A. Schulz
Date: Fri, 01 Dec 2000 00:00
31 lines
1833 bytes
Tor,

In fact this just isn't true.  Try drawing the following strings (one below
the other) using the "Monospaced" font:

1.       "MMMMM"

2.       \u2228 + \u2228 + \u2228 + \u2228 +\u2228

and you will see that these strings, which have the same character length,
do not draw out to the same length on the screen.

What I need is some guidance about creating a descendent of jTextField which
will enforce a truly uniform value for characterWidth + paddihg.  If you can
help, I would be grateful.

James

"Tor Iver Wilhelmsen" <tor.wilhelmsen@sds.no> wrote in message
news:uofyw444r.fsf@sds.no...
> "James A. Schulz" <jaschulz@wiseware.com> writes:
>
> > I am assuming that "M" is the same width as all the other characters in
the
> > "Monospaced" font, otherwise what does "Monospaced" mean?
>
> That all characters occupy the same area - but this means the
> character width _plus padding_ is constant. And the em value is based
> on use of [a-zA-Z] plus possibly the special characters: Unicode may
> have several characters that the "em" standard doesn't take into
> account.
Technical Details
Message-ID: <908hh3$o9l2@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <906d8v$cq63@bornews.inprise.com> <MPG.14912621d190d0f989d82@forums.borland.com> <9088jr$apb4@bornews.inprise.com> <uofyw444r.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,e7b0355fee419750
X-Google-Attributes: gid111d45,public
From: "James A. Schulz" <jaschulz@wiseware.com>
Subject: Re: Monospaced and Higher Unicode Characters
Date: 2000/12/01
Message-ID: <908hh3$o9l2@bornews.inprise.com>
X-Deja-AN: 699963998
References: <906d8v$cq63@bornews.inprise.com> <MPG.14912621d190d0f989d82@forums.borland.com> <9088jr$apb4@bornews.inprise.com> <uofyw444r.fsf@sds.no>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Reply-To: "James A. Schulz" <jaschulz@wiseware.com>
Newsgroups: borland.public.jbuilder.java.swing