[futurebasic] Edit Field/Font spacing by line

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2002 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sun, 20 Jan 2002 16:21:34 -0500
I have a text renderer I am working on for my program. For memory reasons I
will have to render the text line by line from the entry edit field.

So for example, if the entry text is:

This is Line 1
This is Line 2

I am going to have to print it to the target GWorld a line at a time using
Drawstring, after scaling, anti-aliasing, etc.

How does one know how far to space each line when printing something?

Looking for the distance between lines of text, by font. Is this a
GetFontInfo parameter?

This is Line 1
< -> this space in between the lines
This is Line 2

When I do a carriage return for instance, how far down does the pen move to
render/print the next line, and is this a font specific item? If so, how
does one gain this value, and what is it called?

Thanks for any info.

rc