Only differences I found vs. 0.2.3 is that the new fonts have 96x96 dpi . So I set the 8X13X fon to 96dpi and everything seems fine !
FAangband 0.3.4
Collapse
X
-
Yes, I got this far.
-
Problem solved .. I hope - needs testing !
Looking through the fonts using Softy (font editor recommended by L.M.).
Only differences I found vs. 0.2.3 is that the new fonts have 96x96 dpi . So I set the 8X13X fon to 96dpi and everything seems fine !Attached FilesLeave a comment:
-
If the font scale estimated from the filename does not match the actual font scale, the font can be scaled wrong in the Windows port. The SDL port is immune, as it doesn't have this estimation code. The purpose of caching the font scale in the filename for Windows is to avoid using a resource that is strictly limited.
(Checking Windows API):
Don't see anything blindingly obvious, but the next release of Zaiband is going to use FF_MODERN rather than FF_DONTCARE in the Windows port's CreateFont call to force the fallback to be constant-width.Leave a comment:
-
OK - I think I'm getting closer to understanding. Next question - is the problem that the font scaling is being done wrong, or that, having determined the font size, the operating system then uses a font of that size that it already knows about instead of the angband font? Or is it neither of those?Leave a comment:
-
-
The problem is in the font sizing, then. I don't have time to look at it this instant, but I'd be checking differences between V analyze_metrics and FAA analyze_metrics in main-win.c.
In V, the current algorithm is to read the font metrics from the filename if possible, hand the file-named metrics to CreateFont, and then interrogate Windows if the font metrics were not completely read from the filename.Leave a comment:
-
Yes, this is exactly the behaviour that has me confused. To add to the confusion, 8x13x.fon works fine in the linux SDL port. This makes no sense to me - it appears as if windows is actually using a different font.Leave a comment:
-
-
Does this affect V as well? If so (and I have enough of a how-to-trigger), I'll take a look at fixing it for V and Zaiband. [Ahem...I don't like what I'm seeing in the C source -- is there any reason I shouldn't clean this up anyway?]Leave a comment:
-
On font questions, does anyone know how on earth windows chooses it's font? The windows port will display accented characters if you choose a font containing them, but looking at the visuals editor from the knowledge screen it doesn't show the angband font but a system one. And yet if you choose a font size where the angband font values only go to 127, the same will be true of the font that is used. This seems bizarre to me.
It sounds like the visuals editor is out-of-sync on which font it should be using.
Currently (V):
RemoveFontResource and AddFontResource controls whether the font is even available. CreateFont actually makes the font usable; DeleteObject deallocates when the font is no longer used.
Does this affect V as well? If so (and I have enough of a how-to-trigger), I'll take a look at fixing it for V and Zaiband. [Ahem...I don't like what I'm seeing in the C source -- is there any reason I shouldn't clean this up anyway?]Leave a comment:
-
On font questions, does anyone know how on earth windows chooses it's font? The windows port will display accented characters if you choose a font containing them, but looking at the visuals editor from the knowledge screen it doesn't show the angband font but a system one. And yet if you choose a font size where the angband font values only go to 127, the same will be true of the font that is used. This seems bizarre to me.Leave a comment:
-
The TrueType font format specifications assume a virtual screen with a very high resolution (at least 2800 dpi), and have some medium-level drawing primitives.Leave a comment:
-
I'll check it in XP over the weekend...
Leave a comment:
-
I always thought that pseudo-graphical characters should really be made into a graphics option. Putting them in a font seems like a hack.Leave a comment:
Leave a comment: