ctrlSetFont: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(52 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CTRLSETFONT]]
{{RV|type=command
[[Category:Scripting Commands ArmA|CTRLSETFONT]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">'''''control'' ctrlSetFont ''name'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''control'''': [[Control]]
|game5= arma3
|version5= 0.50


'''name''': [[String]]
|gr1= GUI Control


'''Type of returned value:'''
|descr= Sets the font for given control (see [[Fonts#Available_Fonts|available fonts]])


[[Nothing]]
|s1= control [[ctrlSetFont]] fontName


'''Compatibility:'''
|p1= control: [[Control]]


Version 2.50 required.
|p2= fontName: [[String]] - one of the fonts defined in CfgFontFamilies


'''Description:'''
|r1= [[Nothing]]


Sets the main font of given control.
|x1= <sqf>_control ctrlSetFont "TahomaB";</sqf>


'''Example''':
|seealso= [[Fonts#Available_Fonts|Fonts]]
 
}}
_control '''ctrlSetFont''' "TahomaB"

Latest revision as of 22:43, 28 June 2022

Hover & click on the images for description

Description

Description:
Sets the font for given control (see available fonts)
Groups:
GUI Control

Syntax

Syntax:
control ctrlSetFont fontName
Parameters:
control: Control
fontName: String - one of the fonts defined in CfgFontFamilies
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetFont "TahomaB";

Additional Information

See also:
Fonts

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note