Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old December 28, 2012, 03:00   #11
electragician
Rookie
 
Join Date: Dec 2012
Location: Panama City Beach, FL
Posts: 2
electragician is on a distinguished road
Quote:
Originally Posted by half View Post

I'm not sure on this one. I don't use X (or *NIX). I did spend a couple of afternoons trying to get some sensible defaults and creating that silx file, but I think I only have about 2 *NIX players so I'm unwilling to spend any more time on it. If you can make it work, then I could improve the game based on your recommendations.

1st: Thanks for the game, half! It's awesome!

2nd: fph, I figured out how to adjust the font size on Linux/x11.

In the config.h file, there's a section marked

Code:
/*
 * OPTION: Default fonts (when using X11)
 */
#define DEFAULT_X11_FONT_0		"10x20"
#define DEFAULT_X11_FONT_1		"9x15"
#define DEFAULT_X11_FONT_2		"9x15"
#define DEFAULT_X11_FONT_3		"5x8"
#define DEFAULT_X11_FONT_4		"5x8"
#define DEFAULT_X11_FONT_5		"5x8"
#define DEFAULT_X11_FONT_6		"5x8"
#define DEFAULT_X11_FONT_7		"5x8"

Just edit it to use your desired fonts, in the respective windows. FONT_3 and FONT_4 correlate to the Combat Rolls and Recall windows, respectively. I use:

Code:
/*
 * OPTION: Default fonts (when using X11)
 */
#define DEFAULT_X11_FONT_0		"10x20"
#define DEFAULT_X11_FONT_1		"9x15"
#define DEFAULT_X11_FONT_2		"9x15"
#define DEFAULT_X11_FONT_3		"9x15"
#define DEFAULT_X11_FONT_4		"7x13"
#define DEFAULT_X11_FONT_5		"5x8"
#define DEFAULT_X11_FONT_6		"5x8"
#define DEFAULT_X11_FONT_7		"5x8"

I have no idea what I'm doing with the rest of this... I'm not a coder, though I've used Linux since the 90s.

I use Makefile.std to compile. I comment out the default section:

Code:
## Standard -- "main-x11.c" & "main-gcu.c"
##
#CFLAGS = -Wall -O1 -pipe -g -D"USE_X11" -D"USE_GCU"
#LIBS = -lX11 -lcurses
and uncomment and slightly modify the following section (modification of this section might not be necessary, I think you could probably be fine with just uncommenting the relevant section).

Code:
##
## Variation -- this might work better than the suggestion above
##
CFLAGS = -I/usr/include/ \
         -Wall -O2 -fno-strength-reduce -fomit-frame-pointer \
         -D"USE_X11" -D"USE_GCU" \
         -D"USE_TPOSIX" -D"USE_CURS_SET"
LIBS = -lX11 -lncurses
LDFLAGS = -s
You can either leave, or delete, the silx lines concerning font sizes. As you noted, they are completely ignored. The window positioning and size lines seem to work fine though.

Anyway, if you are like me and have bad eyesight, this will help get you some usable fonts. I don't know enough to be able to determine why the actual environment variables being set in the silx files aren't working. That said, the game only takes a minute or so to compile and work around it.

Before

After
electragician is offline   Reply With Quote
Old January 3, 2013, 13:48   #12
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 907
half is on a distinguished road
Thanks for your help with this. A player called jdh saw your post here and showed me how to fix this. It turned out that in maid-x11.c there were strings that still said ANGBAND_ instead of SIL_ which was causing the problem. It is fixed for Sil 1.1.1 (or at least it should be -- I can't easily test the fix).
half is offline   Reply With Quote
Old January 4, 2013, 00:41   #13
electragician
Rookie
 
Join Date: Dec 2012
Location: Panama City Beach, FL
Posts: 2
electragician is on a distinguished road
Quote:
Originally Posted by half View Post
Thanks for your help with this. A player called jdh saw your post here and showed me how to fix this. It turned out that in maid-x11.c there were strings that still said ANGBAND_ instead of SIL_ which was causing the problem. It is fixed for Sil 1.1.1 (or at least it should be -- I can't easily test the fix).
Awesome, thanks so much for following up on it!

I compiled the new version and tested your fix (fwiw, on Crunchbang Linux, a distribution based on Debian) and it works perfectly.

Thanks again!
electragician is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of 3.4 issues bron Vanilla 10 October 3, 2012 14:43
Gear Issues Monkay AAR 1 February 25, 2012 17:32
Compilation issues. Tiburon Silverflame Development 8 March 1, 2010 20:34
DaJAngband Issues Prismatic Variants 12 February 15, 2010 15:08
Compiling Issues Gregian Vanilla 13 July 2, 2008 14:35


All times are GMT +1. The time now is 06:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.