ctrlSetFont: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Added "Fonts" reference to "See also")
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the font of given control.
| Sets the font for given control (see [[Fonts#Available_Fonts|Fonts]])
 
<br><br><u>Available Arma 3 fonts</u>
* "EtelkaMonospacePro"
* "EtelkaMonospaceProBold"
* "EtelkaNarrowMediumPro"
* "LCD14"
* "LucidaConsoleB"
* "PuristaBold"
* "PuristaLight"
* "PuristaMedium"
* "PuristaSemibold"
* "RobotoCondensed"
* "RobotoCondensedBold"
* "RobotoCondensedLight"
* "TahomaB"
|= Description
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


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




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


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


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



Revision as of 12:22, 25 July 2017

-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