Files
BlitzNext/_release/help/commands/2d_commands/FontHeight.htm
T

59 lines
1.4 KiB
HTML
Raw Normal View History

2014-12-08 12:43:20 +13:00
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>FontHeight()</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
None.
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
This returns the height, in pixels, of the currently selected font (using SetFont - previously loaded with LoadFont).
</td>
</tr>
</table>
<h1><a href=../2d_examples/FontHeight.bb>Example</a></h1>
<table>
<tr>
<td>
; FontWidth()/FontHeight example
<br />
<br />
; enable graphics mode
<br />
Graphics 800,600,16
<br />
<br />
; Set global on font variable
<br />
Global fntArial
<br />
<br />
;Load fonts to a file handle variables
<br />
fntArial=LoadFont("Arial",13,False,False,False)
<br />
<br />
; set the font and print sizes
<br />
SetFont fntArial
<br />
2014-02-26 16:08:39 +13:00
Text 400,0,"The font width of the widest character is:"+ FontWidth(),True,False
2014-12-08 12:43:20 +13:00
<br />
2014-02-26 16:08:39 +13:00
Text 400,30,"The height of the font is:"+ FontHeight(),True,False
2014-12-08 12:43:20 +13:00
<br />
2014-02-26 16:08:39 +13:00