ctrlSetFont: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


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


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


| control '''ctrlSetFont''' fontName
| control '''ctrlSetFont''' fontName




|p1=  control: [[Control]]|PARAMETER1=
|p1=  control: [[Control]]


|p2= fontName: [[String]] - one of the fonts defined in CfgFontFamilies|PARAMETER2=
|p2= fontName: [[String]] - one of the fonts defined in CfgFontFamilies


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


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


}}
}}

Revision as of 01:27, 18 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

Bottom Section