🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #234

Retrieving the baseline offset of a font

#234
From: Rod Whitby
Date: Fri, 14 Aug 1992 03:24
19 lines
1167 bytes
I want to define an opaque font that exactly overlaps the current
screen's font.

I can use (font) [ which returns ("9x15" 9 15) ] to get the current
screens font, and then use these numbers to define the opaque font's
name, width and height.

But I can't see anywhere which will give me the OFFSET argument I need
to make the opaque font exactly overlap the current font (i.e. 4 pixels
or 26% for the "9x15" font).

Does anyone know a way of retrieving the baseline offset of a font ?


-- 
Rod Whitby (rwhitby@research.canon.oz.au)     _--_|\ 
                                             /      \
Canon Information Systems Research Australia \_.--._/
1 Thomas Holt Drive, North Ryde, N.S.W., 2113.     v 
Technical Details
Message-ID: <RWHITBY.92Aug14132420@bing.research.canon.oz.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!mama!bing!rwhitby

Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!metro!mama!bing!rwhitby
From: rwhitby@research.canon.oz.au (Rod Whitby)
Subject: Retrieving the baseline offset of a font
Message-ID: <RWHITBY.92Aug14132420@bing.research.canon.oz.au>
Originator: rwhitby@bing
Sender: news@research.canon.oz.au
Organization: Canon Information Systems Research, Australia
Distribution: gnu
Date: Fri, 14 Aug 1992 03:24:20 GMT
Lines: 19