Author Topic: Line height control, possible?  (Read 149 times)

l3m35

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Line height control, possible?
« on: February 29, 2020, 06:06:17 PM »
One more question: is there any way to set the line height of a text?

What I have:

Code: [Select]
local oview = fe.add_text("[Overview]", flw*0.56, flh*0.27, flw*0.4,flh*0.4);
oview.font= "pxl";
oview.align = Align.TopLeft;
oview.word_wrap = true;
oview.charsize = 16;

But I really would need to set the line height, like "oview.line_height=X" (I know it doesn't exist, just as example).

Seems like there is no way to do it directly, right?

ReBirFh

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Line height control, possible?
« Reply #1 on: February 29, 2020, 07:11:51 PM »
I'm no programmer but yesterday I started doing my first attempt at a layout and just finished the overview part of mine. I think what you're looking for can be done with the line spacing property (line_spacing) or some other from here "https://github.com/mickelson/attract/blob/master/Layouts.md#Text"

l3m35

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Line height control, possible?
« Reply #2 on: March 01, 2020, 06:40:47 PM »
Exactly what I was searching for, thanks! Can't believe I didn't find it before.