Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 14, 2010, 21:02   #1
danaris
Scout
 
danaris's Avatar
 
Join Date: Feb 2009
Location: Hamilton, NY
Posts: 31
danaris is on a distinguished road
Unhappy Adding Fonts? (X11 version)

Greetings.
I'm trying to find a way to add a font to the Linux/X11 version of Angband. I'm reasonably sure I've got the font in the right format (.FON, converted through various trials and tribulations from a Macintosh .dfont, and verified to work in Windows), but it consistently gives me a "Couldn't load the requested font." when I set the appropriate line in my x11-settings.prf.

As additional information (which those here might already know ), when I renamed one of the fonts already in the /usr/local/share/angband/xtra/font directory to the name of the font I'm trying to add, it still gave an error. Also, when I renamed the font I'm trying to add to one of the existing fonts, it loaded fineŚwith the existing font, not with mine.

So it seems very much as if Angband is pulling its fonts from somewhere other than the /xtra/font directory. But where? And how do I get it to recognize a new font in .FON format?

Thanks for any help you can give,

Timothy Collett
danaris is offline   Reply With Quote
Old March 14, 2010, 23:08   #2
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,726
Donated: $40
Pete Mack will become famous soon enough
This just seems wrong...

Windows for a long time has used TrueType for its default font format, and Xorg (X11) also supports TrueType. What is the point of using old bitmapped fonts now?
Pete Mack is offline   Reply With Quote
Old March 15, 2010, 00:09   #3
danaris
Scout
 
danaris's Avatar
 
Join Date: Feb 2009
Location: Hamilton, NY
Posts: 31
danaris is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
This just seems wrong...

Windows for a long time has used TrueType for its default font format, and Xorg (X11) also supports TrueType. What is the point of using old bitmapped fonts now?
Oh, if Angband X11 supports TrueType, I'd love to use a TrueType font...but my understanding is that it still only supports .FON bitmap fonts :-/

I was thinking that it seemed silly, too...

Timothy Collett
danaris is offline   Reply With Quote
Old March 15, 2010, 01:21   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,726
Donated: $40
Pete Mack will become famous soon enough
Except in OSX Angband doesn't support TTF, more's the pity. I suspect it would be easier to fix this lack than to continue to maintain all these archaic font types.
Pete Mack is offline   Reply With Quote
Old March 15, 2010, 14:14   #5
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,950
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by danaris View Post
Oh, if Angband X11 supports TrueType, I'd love to use a TrueType font...but my understanding is that it still only supports .FON bitmap fonts :-/

I was thinking that it seemed silly, too...

Timothy Collett
Angband X11 uses whatever fonts X11 has available, and I have no idea how to add to them. I'd recommend you use the SDL port instead, since that does let you change fonts.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old March 15, 2010, 15:19   #6
jsv
Scout
 
Join Date: Feb 2010
Location: Russia
Posts: 27
jsv is on a distinguished road
Quote:
Originally Posted by takkaria View Post
I'd recommend you use the SDL port instead, since that does let you change fonts.
As does the GTK port.

In the X11 port you select fonts by specifying environment variables (there are many of them). The simplest case can look something like:
Code:
ANGBAND_X11_FONT="-*-terminus-*-*-*-*-20-*-*-*-*-*-*-*" angband -mx11
Consult the x11-main.c file to see which other variables are available. There is an example script at the beginning of the file.

But I'd too recommend using SDL or GTK port. (Or GCU )
__________________
S(1.0.0 final lf3+) W "Dagrin" L:100 DL:4500' A++ *R* Sp+ w:Mace of Disruption (adamant)
O+/S+/Cr L H++ D/+ c f- PV+ s/- d@ P- M+
C-- !S I- So+ B? ac GHB- SQ RQ+ V/- F:haggling!
jsv is offline   Reply With Quote
Old March 16, 2010, 18:40   #7
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by takkaria View Post
Angband X11 uses whatever fonts X11 has available, and I have no idea how to add to them. I'd recommend you use the SDL port instead, since that does let you change fonts.
Seconded. Adding fonts to the X11 font server is a whole separate ball game from messing with angband. Google might be able to help, mind - but using SDL is definitely easier.
Magnate is offline   Reply With Quote
Old March 17, 2010, 02:24   #8
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,950
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Magnate View Post
Seconded. Adding fonts to the X11 font server is a whole separate ball game from messing with angband. Google might be able to help, mind - but using SDL is definitely easier.
I think we might be getting close to calling time on the X11 port...
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old March 17, 2010, 18:12   #9
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,060
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by takkaria View Post
I think we might be getting close to calling time on the X11 port...
Hmmm. While I opposed that idea last time it was discussed on rgra, I have since been hit with this hard-to-reproduce bug that virtually locks up some machines yet not others. Taking out the x11 port would neatly avoid having to actually understand the problem ...
Magnate 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
Angband under X11 Magnate Vanilla 3 December 13, 2009 21:56
X11 Specifying Fonts / Geometry chadhogg Vanilla 7 August 31, 2009 19:10
Adding Effects to Angband PaulBlay Development 0 March 28, 2009 12:08
[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


All times are GMT +1. The time now is 12:36.


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