[plt-scheme] MrEd- precise font size

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Apr 16 03:04:31 EDT 2007

At Sun, 15 Apr 2007 23:58:48 -0700, "Tato Norren" wrote:
> Given a particular font% object, is there any way to know what the exact
> height and width of a string rendered in that font will be? Assume I use
> the dc<%> draw-text method if that is relevant.

You can call the `get-text-extent' method of a dc<%> object to get the
dimensions of the drawn string.

Matthew



Posted on the users mailing list.