>>>> "Glynn" == Glynn Clements
<glynn(a)sensei.co.uk> writes:
Glynn> Adrian Aichner wrote:
> there is a hard dependency on X windows in gamegrid.el
>
> Author version: 1.04 1998-06-04: Glynn Clements
> <glynn(a)sensei.co.uk>
>
> Here is a fix for that.
Glynn> OK, thanks.
> Now tetris starts under Windows native build with
>
> Control Panel Display Settings Font Size: Large Fonts
>
> However, there are gaps between the individual lines that make
> up the tetris frames.
Glynn> Hmm. That's exactly what this code was designed to
Glynn> prevent. It keeps calling x-find-smaller-font until it gets
Glynn> one which is smaller than the glyphs.
Glynn> Does font-height work correctly on MS-Windows? (I don't
Glynn> have an MS-Windows setup to test this on, so I can't tell).
Hi Glynn,
turns out (font-height ...) is broken on mswindows[1] ...
(set-face-font 'default "Courier New:Regular:10")
(font-height
(face-property 'default 'font))
16
(set-face-font 'default "Courier New:Regular:8")
(font-height
(face-property 'default 'font))
14
Adrian
Glynn> The value which it returns should be the line spacing in
Glynn> pixels when all text is in that font. If the function
Glynn> indicates that the font is smaller than it really is (in
Glynn> terms of line spacing), then gamegrid will end up choosing
Glynn> too large a font.
Glynn> -- Glynn Clements <glynn(a)sensei.co.uk>
Footnotes:
[1] emacs-version "21.0 \"Pyrenean-pre6\" XEmacs Lucid"