[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  I can't seem to successfully add a font?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

I can't seem to successfully add a font?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by VBMeireles   Brazil  (47 posts)  [Biography] bio
Date Tue 26 Apr 2016 09:37 AM (UTC)

Amended on Wed 27 Apr 2016 01:11 PM (UTC) by VBMeireles

Message
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?

Vinícius
[Go to top] top

Posted by Wuggly   USA  (112 posts)  [Biography] bio
Date Reply #1 on Tue 26 Apr 2016 09:52 AM (UTC)

Amended on Tue 26 Apr 2016 09:54 AM (UTC) by Wuggly

Message
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"))
[Go to top] top

Posted by VBMeireles   Brazil  (47 posts)  [Biography] bio
Date Reply #2 on Tue 26 Apr 2016 10:13 AM (UTC)
Message
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.

Vinícius
[Go to top] top

Posted by Nick Gammon   Australia  (21,405 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 26 Apr 2016 10:10 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by VBMeireles   Brazil  (47 posts)  [Biography] bio
Date Reply #4 on Wed 27 Apr 2016 12:06 PM (UTC)

Amended on Wed 27 Apr 2016 01:12 PM (UTC) by VBMeireles

Message
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.

Vinícius
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,389 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]