What is the correct font name to use for Dejavu?

I have a Xojo Cloud web app and am playing around with the different fonts that are now included in the Fonts folder.

What is the correct FontName for Dejavu? I tried each of the following, but none displayed the text I am trying to display, so I am assuming I have the wrong font name

g.FontName = "DejaVuSansMono"
g.FontName = "DejaVuSans"
g.FontName = "DejaVu"

Copy the font array and you’ll have your answer:

Var names() as String
For i As Integer = 0 To System.FontCount - 1
  Names.Add(System.FontAt(i))
Next
Break
1 Like

Thanks Greg. There’s no “.System” in web, right? Would that be App.FontCount and App.FontAt?

Not at the computer now to try that out but wanted to check first as that came to mind

There is ‘System’ in web. As you are running on the server you may want to add the font names to a Listbox or TextArea.

Maybe the FontName is “DejaVu Serif”, “DejaVu Sans” and “DejaVu Sans Mono”?
image

Bingo! Thank you both! I thought I received errors before when using System in web, but it must’ve been for something that web System did not have (I recall copying some code from the docs that may have been solely related to desktop)

Displaying the font names in a listbox to see what was available, I see that the Arial font (which is the one I ultimately wanted to use) is named ArialMT. I changed this in my test app per the following post, and it now displays correctly

I created an Issue for the above, but now I see the problem is that I was using a font that is technically not there. I will close the Issue as this was my bad and not a bug

Thanks again!