From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a28b054fe35baca1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-29 15:48:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi_feed3!attbi.com!sccrnsc02.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada facility for determining dimensions (height/width) for display/print character string? References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc02 1035935305 12.234.13.56 (Tue, 29 Oct 2002 23:48:25 GMT) NNTP-Posting-Date: Tue, 29 Oct 2002 23:48:25 GMT Organization: AT&T Broadband Date: Tue, 29 Oct 2002 23:48:25 GMT Xref: archiver1.google.com comp.lang.ada:30208 Date: 2002-10-29T23:48:25+00:00 List-Id: >Does Ada have a facility for determining the dimensions (height and = >width) that it will take to display/print a given string of characters? Yes. When an Ada program is controlling a skywriter, characters are 100 meters square. If the Ada program is controlling a Patriot missile, an attempt to display a string of characters gives an output of zero size. Or perhaps you are thinking of, say, a Windows platform. If you are using Claw, function Claw.Attributes.Size(Canvas, Text) returns the height and width of the string Text when displayed on the given Canvas in its current font. Ada is used in many contexts. There is no single "Ada facility" for doing what you want. It depends on the platform and your library.