I can't seem to successfully add a font?

Posted by VBMeireles on Tue 26 Apr 2016 09:37 AM — 5 posts, 19,980 views.

Brazil #0
RESOLVED: The font is now showing up on the GUI list. (I have no idea why it wasn't before.)

I type this in my command bar (\\\ is the script escape sequence):

\\\Note(AddFont(GetInfo(66).."fonts\\luximr.ttf"))


I get the following output:

0


However, when I go to output font configuration, Luxi Mono is just not there.

What am I missing?
Amended on Wed 27 Apr 2016 01:11 PM by VBMeireles
USA #1
Until one of the Pros gets here to answer, my guess is that backslash after fonts. Try escaping it.

ie:

\\Note(AddFont(GetInfo(66).."fonts\\luximr.ttf"))


Personally whenever I use GetInfo(66) I use a forward slash. It works the same way.

ie:

\\Note(AddFont(GetInfo(66).."fonts/luximr.ttf"))
Amended on Tue 26 Apr 2016 09:54 AM by Wuggly
Brazil #2
I appreciate the suggestion, but both slashes yield the same result: 0 (which is a "no errors" code).

The fact that I get a "no errors" code is even weirder to me, since the font is just not there for the picking.

I've also tried just AddFont()'ing (outside any Note()'s), but it's no different.
Australia Forum Administrator #3
I tried another font (3 of 9 barcode, heh) using the code in the original post, and it worked. It appeared in the output configuration font chooser.

Try another font, see if you get different results.

Template:version
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
Brazil #4
I'd like to add that once AddFont()'ed, the font is available for me to SetOutputFont(). It just doesn't show up in the font listing window for the clicking (and for use with Aardwolf's chat redirection plugin etc).

EDIT: The font now shows up on the list. I've edited the OP to say that.