difficulty using ObjectSetText

 

I've been using Bahnschrift font for an EA on Windows 10.  Tested it on other OS, and found that Bahnschrift font is not working properly on Windows 7, and it reverts to Arial.  So I tried the following:

#resource "\\Files\\bahn_bold.ttf"

string bahn_bold = "::Files\\bahn_bold.ttf";


Void LinePrintFunction(string msg)
{
   ...
   string font_name = bahn_bold;
   ObjectSetText(objName,msg,font_size,font_name,font_color);
   ...
}

But now it reverts back to Arial on all OS I'm testing.  (font_name = "Bahnschrift Bold"; is what I was using originally, and it worked fine for Windows 10)

Do I need to convert this to .otf or a different font format to get it to work?  Thanks for the help!

 
Ian Tavener: Do I need to convert this to .otf or a different font format to get it to work?

Of course not. You need to install the font into Windows. How to install TrueType fonts in Windows

Reason: