[futurebasic] Re: [FB] 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: Mon, 21 Jan 2002 10:53:59 -0500
>Robert Covington wrote:
>
>> 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?
>>
>>
>
>Are you looking for USR Fontheight ?

>Ian

Nah, I am looking for USR How  Much Vertical  Space Between Lines Height.

Line 1
Line 2

That is, how much pixel space , by font, does a carriage return insert for
the next line.

Thanks though.

Robert