WebLabel.FontName

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As String )
aWebLabel.FontName = newStringValue
or
StringValue = aWebLabel.FontName

New in 2020r1

Supported for all project types and targets.

Name of the font used to display the value.

Notes

The fonts available are those on the user's device (computer, phone, tablet, etc.) or installed in their browser. If there is an exact match, that font will be used. If not, then a font from the same family will be used. For example, if you set the FontName to Helvetica Neue but that font was not available, a font from the Helvetica family would be used instead.

Sample Code

This code sets the FontName property.

Me.FontName = "Helvetica"