Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old February 28, 2017, 13:00   #1
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
Font file requirements?

I wish to use DOS-like fonts with Angband (4.0.5) but almost none of the .FON files I have found are agreeable to the game. It interprets them in the same consistent, nonsensical way, reverting to one of the default fonts included with the game while displaying that font's characters incorrectly and at bizarre widths and heights that I can't change.

Screenshot is attached.

I had an old DOSLike font from way back when that works out of the box and looks nice, but when I added a few glyphs to it using FontForge (it lacks the control code characters and many of them are graphically useful for Angband) it reverted to the behaviour you see in the screenshot.

Thanks for any information.
Attached Images
 
Justin Z is offline   Reply With Quote
Old February 28, 2017, 13:04   #2
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
Comparison screenshot for informational purposes, this is with the original font, which is also attached in a zip.
Attached Images
 
Attached Files
File Type: zip DOSLIKE.zip (6.2 KB, 12 views)
Justin Z is offline   Reply With Quote
Old February 28, 2017, 13:30   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,663
Donated: $60
Nick is on a distinguished road
This is quite complex.

This thread has some tips, but probably requires Softy, an old font editor that stopped working at Windows 7. Still, the dpi comments might help. Other threads on the matter include this one and this one - as you can see, this and similar problems have a long history.

Good luck!
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old February 28, 2017, 13:53   #4
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
Thanks for that--I've looked into a few things based on this info. I can't even load the font from the file into any of various font editors, save it without making any changes, and use it in Angband. It'll still be weird about something in the file, causing it to not handle the font properly and its fallback is to just ignore display of the font and revert to default.

The DOSLike font I got to work was created in 1998, so the issue is probably something that got added to the Windows .FON standard between then and now that the Angband source code has never been updated to deal with. But what in the world it is, I have no idea.
Justin Z is offline   Reply With Quote
Old February 28, 2017, 15:18   #5
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
The other weird thing by the way is that I managed to accomplish this with an older build, I want to say 3.5.3, but it's been a while. Either way, suddenly it just doesn't work anymore when you import the rewritten font with the glyphs you want.
Justin Z is offline   Reply With Quote
Old February 28, 2017, 15:19   #6
t4nk
Adept
 
Join Date: May 2016
Posts: 249
t4nk is on a distinguished road
There is no .fon format standard, you probably got a completely different .fon (not the one that "Softy" used to produce).
http://stackoverflow.com/questions/2...-specification
Also, what do you call "control code characters".
t4nk is offline   Reply With Quote
Old February 28, 2017, 15:36   #7
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
Referring to x00 through x1F, characters like ☺, ♣, ♀, etc.
Justin Z is offline   Reply With Quote
Old February 28, 2017, 16:45   #8
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,319
Donated: $40
Pete Mack is on a distinguished road
What's a real nuisance is there's no standard interface to TrueType for gnu C or WIN32; the only windows interface is .NET.
If there were, all you'd need is a Unicode mapping function to the glyphs of your choice, rather than all the .FON nonsense.
Pete Mack is offline   Reply With Quote
Old February 28, 2017, 20:52   #9
Justin Z
Rookie
 
Join Date: Nov 2014
Posts: 19
Justin Z is on a distinguished road
Well, now I'm completely stumped, as I went to the trouble of creating a new font file from DosLike using Softy in a Windows XP virtual machine . . . 4.0.5 STILL doesn't like it. I wonder what the hell I'm doing to break the font. Then again, seeing as zero of the bitmap fonts I tried from here worked, it's probably not much.

Last edited by Justin Z; February 28, 2017 at 21:13.
Justin Z is offline   Reply With Quote
Old February 28, 2017, 21:16   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,663
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Justin Z View Post
Well, now I'm completely stumped, as I went to the trouble of creating a new font file from DosLike using Softy in a Windows XP virtual machine . . . 4.0.5 STILL doesn't like it. I wonder what the hell I'm doing to break the font.
Ideas:
  • Did you change the dpi?
  • Did you try running 4.0.5 with the new font in the XP VM?
  • It may be that Windows 10 has introduced some other incompatibility
  • FAangband (current version or 1.1.6) might do some things differently, if you're experimenting it might be worth looking at how well they work
  • I really don't think I changed anything to do with fonts going from 3.5 to 4.0

I have spent quite a bit of time struggling with Windows fonts over the years, and sometimes just had to give up and hope someone else fixed it. Not to discourage you
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick 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
Favorite Font Nivra Vanilla 5 January 21, 2016 23:00
Sil system requirements? NotMorgoth Sil 3 September 8, 2013 19:06
Font editor PowerWyrm Development 2 March 25, 2011 13:45
System Requirements - MacOS X? NotMorgoth Vanilla 6 February 13, 2011 04:37
WinXP font problem YeGoblynQueenne Development 6 July 14, 2010 17:03


All times are GMT +1. The time now is 23:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.