ctrlSetFont: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 22: Line 22:
* "RobotoCondensedLight"
* "RobotoCondensedLight"
* "TahomaB"
* "TahomaB"
|= Description
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 28: Line 28:




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


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


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


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


}}
}}

Revision as of 14:36, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
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:
Uncategorised

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