[futurebasic] Re: [FB] Edit Field/Font spacing by line

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

From: AlStaff@...
Date: Mon, 21 Jan 2002 14:52:01 EST
>So , using Al's font into thing or other, if I subtract the ascending, and
>descending from the result of USR FontHeight, I should have that
>value/measure called Leading or Linespacing that I am looking for, finally?
>
>One reason for this mess is that I can't get PRINT %(x,y) to give the right
>results in a GWorld. But Drawstring works perfectly.
>
>Very funky.  However, because I am having to create a GWorld 2-4 times
>larger than the actual print, making such for a few lines of type could
>get
>out of hand at say 96 point results (( 4*96*number of lines) * (
>Stringlength of longest sentence))
>
>So I will nab each line of the entry edit field, and apply in some manner.
>
>I guess.

I think USR FONTHEIGHt should work fine for what you want.

window 1
a$ = "This is a test."
TEXTFONT (1)
TEXTSIZE (12)
xsize = 50
size = USR FONTHEIGHT
PRINT "size = " size
For X = 1 to 10
PRINT% (100,xsize),  a$
xsize = xsize + size
PRINT % (100, xsize), a$
NEXT X
WHILE 1
HANDLEEVENTS
WEND


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html