Difference between revisions of "Font:setLineHeight"

m (1 revision: Importing from potato (again).)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
Sets the line height.
  
Sets the line height.
+
When rendering the font in lines the actual height will be determined by the line height multiplied by the height of the font. The default is <code>1.0</code>.
When rendering the font in lines the actual height will be  
 
determined by the line height multiplied by the height of the font.  
 
The default is <code>1.0</code>.
 
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Font:setLineHeight( number )
+
Font:setLineHeight( height )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|height|number|The new line height.}}
+
{{param|number|height|The new line height.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
 
* [[parent::Font]]
 
* [[parent::Font]]
 +
* [[Font:getLineHeight]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets the line height.  
+
{{#set:Description=Sets the line height.}}
}}
+
{{#set:Since=000}}
 +
== Other Languages ==
 +
{{i18n|Font:setLineHeight}}

Latest revision as of 08:55, 8 October 2019

Sets the line height.

When rendering the font in lines the actual height will be determined by the line height multiplied by the height of the font. The default is 1.0.

Function

Synopsis

Font:setLineHeight( height )

Arguments

number height
The new line height.

Returns

Nothing.

See Also


Other Languages