🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Rod Whitby Fri, 14 Aug 1992 03:24
Retrieving the baseline offset of a font
#234
Author: 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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads