![]() |
#1 |
Rookie
Join Date: Aug 2009
Posts: 4
![]() |
![]()
I am attempting to play Angband 3.0.9b, as packaged in Ubuntu GNU/Linux 9.04. When I played before I controlled the fonts and locations of various windows using ~/.Xdefaults, as suggested at http://www.thangorodrim.net/linux/faq.html (but with my own particular preferences). I cannot now get Angband to recognize these X resources, although I am able to use them to customize xterm and other applications. My guess at this point would be that Angband has changed the name of the classes and settings that it supports, but I cannot find any documentation of this.
As an alternative, I discovered through looking at the source code that Angband reads several environment variables. Specifically, I am able to control the font used in the main window by setting ANGBAND_X11_FONT_0="fixed" (or "5x7" or "7x13" or whatever). However, this only partially works. Decreasing the size of the font causes the individual glyphs to be smaller, but space is inserted between them so that I cannot shrink the window from taking up almost my entire screen. It is set to 24 rows and 80 columns, but I cannot seem to get rid of this extra space, making it basically impossible to see the sub-windows. Note that changing the fonts in these sub-windows works exactly as I would expect; it is only the main window that has this strange space-inserting property. Can anyone suggest how I might change this or get the old X resources method to work? Thank you, Chad |
![]() |
![]() |
![]() |
#2 |
Adept
|
Have you tried the shell script shown in the comments at the beginning of main-x11.c? I've used that successfully for years.
|
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Aug 2009
Posts: 4
![]() |
Yes, that is exactly where I got the idea of setting environment variables from. I just changed the particular fonts and sizes in a bash version of the script. The 10x20 font causes the main window to fill up nearly all of my screen.
|
![]() |
![]() |
![]() |
#4 | |
Angband Devteam member
|
Quote:
Can you attach a screenshot of the offending setup? |
|
![]() |
![]() |
![]() |
#5 |
Rookie
Join Date: Aug 2009
Posts: 4
![]() |
Sure, I've attached two PNGs. The first uses the "fixed" font for the main window (what I would like), while the second uses the "10x20" font (what it seems to default to).
Note that in the first one while the glyphs in the main window are the same size as those in the sub-windows, they have this strange extra space around them that makes the window much larger than it should need to be. Specifically, this space makes the window exactly the same size as it needs to be to hold the larger font in the second screenshot. The script that I am using to run the game is as follows (not bothering to specify sizes and locations of sub-windows until I get these fonts figured out: export ANGBAND_X11_FONT_0="fixed" export ANGBAND_X11_FONT_1="fixed" export ANGBAND_X11_FONT_2="fixed" export ANGBAND_X11_FONT_3="fixed" angband -mx11 -- -n5 Note: did the forum's file uploading script convert my PNG files to JPEGs? That is what appeared to happen, but would be ridiculous. |
![]() |
![]() |
![]() |
#6 | |
Swordsman
Join Date: Jun 2007
Posts: 292
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Angband Devteam member
|
Ok, I think I understand. See attached x11-settings.prf - you need to adjust the TILE_WIDTH and TILE_HEIGHT as well. That bit me a long while ago - sorry I didn't think of it straight off.
|
![]() |
![]() |
![]() |
#8 |
Rookie
Join Date: Aug 2009
Posts: 4
![]() |
Thanks! That works, and seems like a much more unix-y solution than what I had been trying. I wish I had known about the existence of this file long ago.
|
![]() |
![]() |
![]() |
Tags |
fonts, vanilla, x11 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fonts and graphics findings | Dark | Vanilla | 4 | May 7, 2009 17:16 |
Why no tile support in x11 port? | bdo | Vanilla | 2 | February 2, 2009 23:42 |
[O] and [FA] fonts on Nintendo DS | fearoffours | Variants | 3 | January 30, 2009 08:09 |
[Un] Changing Fonts to be like V fonts? | Poop Loops | Variants | 6 | May 16, 2008 02:00 |
Sound on Linux with X11 is it available. | tuppe666 | Vanilla | 10 | September 13, 2007 16:42 |