Does anyone have .fnt files for Angband?
				
					Collapse
				
			
		
	X
- 
	
	
	
	
Excellent, thank you, I'll look into those. Out of interest, why have you not included the fonts in /usr/share/fonts/X11 - are they inferior? - 
	
	
	
	
This is what's installed on my Debian system and is loadable in the SDL front end (there's fixed width fonts in /usr/share/fonts/X11 that are also loadable; I have not included them here; also the fonts below can have bold, italic, or oblique variants that are not listed since those will probably be less readable):
- /usr/share/fonts/opentype/urw-base35/NimbusMonoPS-Regular.otf from fonts-urw-base35
 - /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf from fonts-dejavu-core
 - /usr/share/fonts/truetype/liberation/LiberationMono-Regular.ttf from fonts-liberation
 - /usr/share/fonts/truetype/liberation2/LiberationMono-Regular.ttf from fonts-liberation2
 - /usr/share/fonts/truetype/noto/NotoMono-Regular.ttf from fonts-noto-mono
 - /usr/share/fonts/truetype/noto/NotoSansMono-Regular.ttf from fonts-noto-mono
 - /usr/share/fonts/type1/urw-base35/NimbusMonoPS-Regular.t1 from fonts-urw-base35
 
From a quick look in town with the point size set to 15, I'd prefer playing with the NotoMono-Regular. My second choices would be DejaVuSansMono or LiberationMono-Regular.Leave a comment:
 - 
	
	
	
	
Ah, that's unfortunate - I can no longer run the SDL front end in Debian, as the dependencies are all gone (Debian has deprecated SDL in favour of SDL2). Is there any chance you could run it for me, if you can still run the SDL front end? All I need to know is a set of fonts that Angband can use and which package(s) they're in ...Leave a comment:
 - 
	
	
	
	
Weirdly I can't see my own sig, but it is clearly time to update it after eight years away...Leave a comment:
 - 
	
	
	
	
 - 
	
	
	
	
Magnate--
I see your .sig. I suspect Tomo might like playing some of the 4 2 challenge classes. And maybe Blackguard, which starts out as a challenge class nut turns into an absolute monster.Leave a comment:
 - 
	
	
	
	
It's the SDL front end that has the font browser. It has not been implemented yet for the SDL2 front end. The SDL, SDL2, and Windows front end use the contents of lib/fonts.
main.c and init.c use ANGBAND_DIR_FONTS, but that is only to set the contents of the path. The only code that browses the entries within that directory is in main-win.c, main-sdl.c, and main-sdl2.c. So the gcu and x11 will be fine if the contents of lib/fonts (or even the lib/fonts directory entry itself) go away.Leave a comment:
 - 
	
	
	
	
Thank you, that's probably almost enough for me to go on, if I can pepper you with questions as I go. IIUC:
- only the SDL and Windows front ends use lib/fonts
- for the SDL2 one I can use the font browser to see which already-installed fonts can be used
... I can then decide a font package to make angband depend on, sort out the symlinks, and we're good to go.
Can I just double check that removing the .fon files in lib/fonts and replacing them with symlinks will not break the gcu or x11 ports? (I mean, I can test this for myself down the line, but just checking that you think so)
Thanks again.Leave a comment:
 - 
	
	
	
	
All of the fonts in lib/fonts are not scalable. The SDL and SDL2 front ends (all the other front ends, except the Windows one, don't use lib/fonts) will accept any fixed-width font that SDL_ttf can handle. They do expect that the non-scalable fonts have a .fon (case-insensitive) extension. One other issue is that the fonts in lib/fonts have at least some entries corresponding to code page 437 (namely an index of 7 corresponding to a centered dot) and lib/customize/font-sdl2.prf has an entry that relies on that. If you use a Unicode font that has the centered dot, you'd want to comment out theline in font-sdl2.prf or change it to beCode:feat:open floor:*:1:7
. There are similar entries in lib/customize/font-sdl.prf but those are commented out currently; uncommenting out the one for a Unicode font would be nice if a Unicode font with the centered dot is used.Code:feat:open floor:*:1:0xb7
On Debian Buster, the LiberationMono-Bold and LiberationMono-Regular fonts in /usr/share/fonts/truetype/liberation and /usr/share/fonts/truetype/liberation2 seemed usable with the SDL and SDL2 front ends in Angband after the previously mentioned change to lib/customize/font-sdl2.prf. The font browser in the SDL front end (click on the font name in the menu bar and select "Other..." in the menu that appears) will only list the fixed-width fonts that SDL_ttf can open so you could use that to browse through /usr/share/fonts and find other possible candidates.Last edited by backwardsEric; October 11, 2023, 22:02. Reason: Use [CODE] and [/CODE] to supress the facesLeave a comment:
 - 
	
	
	
	
Many years ago I used some font editing software (called softy, IIRC) to create some fonts for use with FAangband. I don't think I ever compiled anything, though.
A quick look through the variant repository tells me the .fon files were first included in 3.0.8; before that they were available as an additional download, like the tiles.Leave a comment:
 - 
	
	
	
	
P.S. Some of you may be wondering why this issue has not come up during the previous ~27 years Angband has been available in Debian. Until 2009 they didn't really care because Angband was classified as "non-free" (in the world of Debian this is a grave and sordid insult, like 'non-human'). From 2009 onwards we have had a number of different 'sponsors' (the person who actually uploads the package to the Debian servers), all of whom overlooked this issue, either by oversight or by choice. We are now considered part of the Debian Games Team, which has lots of advantages - but it also means we're right at the extreme end of copyright zealotry.Leave a comment:
 - 
	
	
	
	
Does anyone have .fnt files for Angband?
Hi all,
After several weeks of work (see https://salsa.debian.org/games-team/angband), we've hit a major snag with packaging Angband for Debian (and therefore Ubuntu et al.). It's to do with the fonts. I'm woefully ignorant about fonts, but apparently .fon files are "compiled" from .fnt files. (I put that in quotes because it makes no sense to me, I thought fonts were just bitmaps loaded into memory.)
Anyway, Debian is butt-clenchingly picky about anything to do with copyrights and licenses, and doesn't like "precompiled" fonts. So there are two ways forward if we want Angband available to Debian-based Linuxes:
1. Find the .fnt files from which Angband's .fon files were built. I can't find any trace of them in the git logs, so they have not been referred to since before 3.0.7s3
2. Strip them out of the Debian package and make do with the thousands of fonts available through other packages (by putting symlinks in lib/fonts to wherever those packages install them).
The first requires someone with knowledge way older than mine - perhaps they are on an ancient ftp archive somewhere? They must have been 'compiled' in the first place, I understand, so maybe they're out there somewhere.
The second requires someone who understands fonts much better than I do. I don't even know which of Angband's fonts are scalable (all of them?) and which types of font might be usable in lieu of our own.
Can anyone help with either of these possibilities?Tags: None 
					
Leave a comment: