Difference between revisions of "iOSFont.Constructor(postscriptName As Text, pointSize As Double)"

From Xojo Documentation

(Created page with "{{ConstructorBox | name=Constructor | owner=iOSFont | ownertype=class | scope=public | parameters=postscriptName As Text, pointSize As Double }} {{Description | te...")
 
 
Line 21: Line 21:
 
Sets a button text to use Courier:
 
Sets a button text to use Courier:
 
<rbcode>
 
<rbcode>
Dim courier As New iOSFont("Courier", 18)
+
Var courier As New iOSFont("Courier", 18)
 
Button1.TextFont = courier
 
Button1.TextFont = courier
 
</rbcode>
 
</rbcode>

Latest revision as of 03:28, 19 July 2019

Constructor

iOSFont.Constructor(postscriptName As Text, pointSize As Double)

Creates an iOSFont from the postscriptName.

Notes

iOS adds a few additional fonts:

  • KhmerSangamMN
  • DamascusLight
  • LaoSangamMN
  • AppleSDGothicNeo-UltraLight
  • KohinoorDevanagari-Light
  • KohinoorDevanagari-Medium
  • KohinoorDevanagari-Book

Sample Code

Sets a button text to use Courier:

Var courier As New iOSFont("Courier", 18)
Button1.TextFont = courier