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

From Xojo Documentation

Revision as of 15:30, 20 August 2018 by PLefebvre (talk | contribs) (Created page with "{{ConstructorBox | name=Constructor | owner=iOSFont | ownertype=class | scope=public | parameters=postscriptName As Text, pointSize As Double }} {{Description | te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

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