[plt-scheme] string extent?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Sep 10 17:26:36 EDT 2009

At Thu, 10 Sep 2009 17:21:25 -0400, David Richards wrote:
> How exactly do I go about getting the metrics for a string which I am  
> drawing onto a dc%? I need to know the exact height and width of the  
> string in pixels.
> 
> So, I guess I can use (send dc get-char-height) to get the height, but  
> how do I get the exact width of an entire string?

Use the `get-text-extent' method.



Posted on the users mailing list.