From: "Russell L Johnson" <russjohnson@frontiernet.net>
Subject: Re: Ada facility for determining dimensions (height/width) for display/print character string?
Date: Tue, 12 Nov 2002 15:54:43 -0500
Date: 2002-11-12T15:54:43-05:00 [thread overview]
Message-ID: <ut2qkud70si779@corp.supernews.com> (raw)
In-Reply-To: aq89j9$dht$1@a1-hrz.uni-duisburg.de
The text will be in Windows and it looks what I need is either
Graph.TextHeight (and Graph.TextWidth) or the Windows GetTextExtent function
[unless I decide to use TeX or PostScript :^) ].
Thanks to all for your helpful information. Sorry I accidentally posted my
original post twice.
- Russ
"Georg Bauhaus" <sb463ba@l1-hrz.uni-duisburg.de> wrote in message
news:aq89j9$dht$1@a1-hrz.uni-duisburg.de...
> RussJohnson@frontiernet.net <russjohnson@frontiernet.net> wrote:
> : Does Ada have a facility for determining the dimensions (height and
width)
> : that it will take to display/print a given string of characters?
>
> The only programming language I know of that has a facility like this
> (using the language proper, i.e. not asking the operating systems using
> some function of the operating system's API or some such)
> is PostScript, which has builtin operators for text strings and
> bounding box heights of characters and fonts.
>
> Again, where does your text live? Is it a string "in Windows"?
> Use a call to the appropriate operating system's library function to find
> its dimensions. This is the same in any language.
> Are you dealing with a typwriter like printer?
> In that case the number of characters should give enough hints.
> Do you have to ask a Java Virtual Machine for the dimensions
> of specific characters in specific fonts? Etc.
>
> -- georg
next prev parent reply other threads:[~2002-11-12 20:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-01 3:17 Ada facility for determining dimensions (height/width) for display/print character string? RussJohnson@frontiernet.net
2002-11-01 2:37 ` Larry Kilgallen
2002-11-05 11:21 ` Georg Bauhaus
2002-11-12 20:54 ` Russell L Johnson [this message]
2002-11-06 8:06 ` Matthew Baulch
[not found] <mailman.1035925742.9365.comp.lang.ada@ada.eu.org>
2002-10-29 23:48 ` tmoran
2002-10-30 10:59 ` Larry Kilgallen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox