Desktop Convert to Web

I have Problems with chartTitleText.TextFont = “Helvetica” (i like to use WebStyle)

Private Sub drawChartTitle(pic As Picture, chartTitle As String, picWidth As Integer)

’ Chart Title
dim chartTitleText As New StringShape

chartTitleText.Text = chartTitle
chartTitleText.TextFont = “Helvetica” <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
chartTitleText.TextSize = 10
chartTitleText.Bold= True
chartTitleText.X = picWidth / 2
chartTitleText.Y = 20
chartTitleText.HorizontalAlignment = StringShape.Alignment.Center

pic.Graphics.DrawObject chartTitleText

End Sub

Object2D is not supported on WebCanvas.

Ok

So whats textfont i can use on web

It depends on the server. I’d try “Arial” though.

Greg suggestion is the simplest. Arial is present on 99% of Mac OS X and Windows computers, and is an Helvetica clone.

You can also use Google fonts for other types of fonts. Check https://forum.xojo.com/10243-google-fonts