comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Ada facility for determining dimensions (height/width) for display/print character string?
Date: Tue, 5 Nov 2002 11:21:13 +0000 (UTC)
Date: 2002-11-05T11:21:13+00:00	[thread overview]
Message-ID: <aq89j9$dht$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: mailman.1036120741.28142.comp.lang.ada@ada.eu.org

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



  parent reply	other threads:[~2002-11-05 11:21 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 [this message]
2002-11-12 20:54   ` Russell L Johnson
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