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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Wine
. . -> [Subject]  Font in Triggers/Aliases/etc is unreadable

Font in Triggers/Aliases/etc is unreadable

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


Posted by CaptObviousman   (5 posts)  [Biography] bio
Date Tue 24 Jul 2007 11:49 PM (UTC)

Amended on Tue 24 Jul 2007 11:53 PM (UTC) by CaptObviousman

Message
First off, let me say THANK YOU to Nick for getting this awesome software running so smoothly under wine. I was VERY impressed with how it installed and ran perfectly under Linux with no modifications to my world files at all.

All except one thing: When I loaded MUSH the first time, all of the font was in a strange cursive script font, which was exceptionally hard to read. I was able to adjust the input and output fonts easily, but it's still using this crappy unreadable font for the text boxes in the triggers and aliases windows.

A picture is worth a thousand words, so how about three to demonstrate what I'm talking about:

http://www.gearblock.com/retro/mushclient/mushclient_settings.png
http://www.gearblock.com/retro/mushclient/mushclient_triggers.png
http://www.gearblock.com/retro/mushclient/mushclient_triggers_textbox.png

You can see in the first one that all the text in the settings window is fine. In #2 and #3 the strange nearly-unreadable font is visible.

Perhaps you can add something to the settings or a registry key where we can modify the font it uses there. Or maybe it's just my copy that's borked. In either case, I hope you can help me.

Thanks in advance.

Edit: I should mention that I originally installed MUSH 4.02. I updated to 4.14 tonight, but it didn't make a difference.

Slackware 12.0 running KDE 3.5.7
wine-0.9.40
MUSHClient 4.14
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #1 on Tue 24 Jul 2007 11:55 PM (UTC)
Message
Could it be using a font from the world defaults or something like that? I also run MUSHclient under Wine but don't get this problem.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by CaptObviousman   (5 posts)  [Biography] bio
Date Reply #2 on Wed 25 Jul 2007 12:02 AM (UTC)
Message
Hi David, thanks for your incredibly prompt reply.

I have scoured the world settings and see no place to modify a font for the settings menu.
I then tried creating a brand new world from scratch, didn't import settings from a different world. It exhibited the same problem.

Somehow this setting is leeching in from MUSH itself.
[Go to top] top

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Reply #3 on Wed 25 Jul 2007 12:15 AM (UTC)
Message
I've been poking around at the various settings, and I can't seem to find anything that would change the font within those boxes. Mine is at least legible, but it is in a different font than I have the rest of the client set to. You might want to double check KDE's font manager to see what font it is, since I know that can override a few of the normal system fonts. Also double check you xorg.conf to make sure that you have all the fonts loaded properly there if you're just using system defaults.

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by CaptObviousman   (5 posts)  [Biography] bio
Date Reply #4 on Wed 25 Jul 2007 12:21 AM (UTC)
Message
Looks like it's just picking the first font in the list, "Ani" in my case. I could probably copy/pasta the font I want and rename it AAAAA, but that would be an indirect fix.

What's interesting to note is that I have a Microsoft basic fonts back supposedly installed. It downloaded with Cedega.
[Go to top] top

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Reply #5 on Wed 25 Jul 2007 12:27 AM (UTC)
Message
The Microsoft fonts have to be installed in order to see anything through wine due to the difference in how the MS and Linux fonts work. Linux is more dynamic and is calculated at runtime so you can change the display easier, whereas MS is more static, so you always know what you're getting. The thing that can make life difficult in wine is when you're using the system fonts instead of the MS fonts. I think there's been a project to try and deal with that, but I haven't really followed it terribly much, to be honest.

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by Nick Gammon   Australia  (23,006 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Wed 25 Jul 2007 12:36 AM (UTC)
Message
Try checking (or unchecking, whichever works), File -> Global Preferences -> General -> "Use fixed space font when editing triggers/aliases etc.".

That is the option that triggers the use of a different font. If that option is set, it attempts to use "FixedSys" for those boxes. Either install "FixedSys" or try unchecking that option.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,006 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Wed 25 Jul 2007 12:42 AM (UTC)
Message
I tried this under Linux:


$ strings MUSHclient.exe | grep FixedSys
FixedSys
   <pre><code><font size=2 face="FixedSys, Lucida Console, Courier New, Courier">
<pre><code><font size=2 face="$FONT$FixedSys, Lucida Console, Courier New, Courier"><font color="#0">


It seems that the word FixedSys is only in one place (apart from the HTML stuff), so a careful patch of the binary to change that to (say, Courier) might work for you. I'm not sure how to do that, someone else might know.

- Nick Gammon

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

Posted by CaptObviousman   (5 posts)  [Biography] bio
Date Reply #8 on Wed 25 Jul 2007 01:06 AM (UTC)
Message
A partial success. Now the text boxes in the Edit Trigger window have returned to a normal font. However, when I click on the "..." button, the font is still borked.

Progress!
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #9 on Wed 25 Jul 2007 01:06 AM (UTC)
Message
I would open it up in a text editor (like vi) and replace it with a string of equal length. In this case, "FixedSys" would have to be replaced by e.g. " Courier" (note space at the beginning). But you can't change the length, otherwise you will break all the addressing used in the program. :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #10 on Wed 25 Jul 2007 01:07 AM (UTC)
Message
Oh, you replied while I did. :)

I'd just go back to the text editor and search for all instances of FixedSys and Courier, and get font lists; then you'll be able to see if it's using fonts you don't have.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Gammon   Australia  (23,006 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Wed 25 Jul 2007 05:03 AM (UTC)

Amended on Thu 16 Sep 2010 10:56 PM (UTC) by Nick Gammon

Message
Try downloading version 4.15:

http://www.gammon.com.au/forum/?id=8059

This lets you specify the fixed-pitch font by editing the Registry.

You can change the default font used for new world files by going to File -> Global Preferences -> Defaults and changing "Output Font" and "Input Font".

[EDIT] The preferences are now in a database. For more details and how to change them, see:

http://www.gammon.com.au/forum/?id=10603

- Nick Gammon

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

Posted by CaptObviousman   (5 posts)  [Biography] bio
Date Reply #12 on Wed 25 Jul 2007 11:56 PM (UTC)
Message
Works perfectly, many thanks Nick.

I'd also like to voice my support for your open sourcing MUSH. That was a really neat thing to do, and I will reward it with a donation next paycheck.

Thanks again for creating a great client.
[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.


37,109 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 HostDash]