🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5504

Re: default font heigth under 2.0

#5504
From: Brian Jackson
Date: Thu, 27 Sep 1990 19:19
24 lines
1571 bytes
In article <90270.154651GDAL3AI@cc1.kuleuven.ac.be> GDAL3AI@cc1.kuleuven.ac.be writes:
>I'm looking for a way to find the heigth of the default system font
>under 2.0 . The problem I have is the following: I want to print a

	GfxBase->DefaultFont->tf_YSize
 
>BTW. I find the Width by using IntuiTextLength (or something like that,
>can't remember... is that right too ???)

IntuiTextlength() will give you the length, in pixels, of the
IntuiText's string.  With a non-proproportional font, this should be
the same as 

	strlen(MyIntuiText->IText) * MyIntuiText->ITextFont->tf_XSize

If you've got a proportional font, this is untrue.

>                                               I. Aerts

 ----------------------------------------------------------------------------
 | Brian Jackson  Software Engineer @ Commodore-Amiga Inc.                   |
 | bj@cbmvax.commodore.com    or  ...{uunet|rutgers}!cbmvax!bj   GEnie: B.J. |
 | "Fasten your seatbelt, I want to try something."                          |
 ----------------------------------------------------------------------------
Technical Details
Message-ID: <14694@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!rutgers!cbmvax!bj
References: <90270.154651GDAL3AI@cc1.kuleuven.ac.be>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!rutgers!cbmvax!bj
From: bj@cbmvax.commodore.com (Brian Jackson)
Newsgroups: comp.sys.amiga.tech
Subject: Re: default font heigth under 2.0
Message-ID: <14694@cbmvax.commodore.com>
Date: 27 Sep 90 19:19:29 GMT
References: <90270.154651GDAL3AI@cc1.kuleuven.ac.be>
Reply-To: bj@cbmvax.commodore.com (Brian Jackson)
Organization: Commodore, West Chester, PA
Lines: 24