ctrlSetFont: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 7: Line 6:


|gr1= GUI Control |GROUP1=
|gr1= GUI Control |GROUP1=
____________________________________________________________________________________________


| Sets the font for given control (see [[Fonts#Available_Fonts|Fonts]])
| Sets the font for given control (see [[Fonts#Available_Fonts|Fonts]])
Line 25: Line 23:
* "TahomaB"
* "TahomaB"
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| control '''ctrlSetFont''' fontName
| control '''ctrlSetFont''' fontName
Line 35: Line 32:


| [[Nothing]] |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_control [[ctrlSetFont]] "TahomaB"</code> |EXAMPLE1=
|x1= <code>_control [[ctrlSetFont]] "TahomaB"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[Fonts#Available_Fonts|Fonts]] |SEEALSO=
| [[Fonts#Available_Fonts|Fonts]] |SEEALSO=

Revision as of 01:39, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets the font for given control (see Fonts)

Available Arma 3 fonts
  • "EtelkaMonospacePro"
  • "EtelkaMonospaceProBold"
  • "EtelkaNarrowMediumPro"
  • "LCD14"
  • "LucidaConsoleB"
  • "PuristaBold"
  • "PuristaLight"
  • "PuristaMedium"
  • "PuristaSemibold"
  • "RobotoCondensed"
  • "RobotoCondensedBold"
  • "RobotoCondensedLight"
  • "TahomaB"
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

Notes

Bottom Section