News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Raw bitmap font file

Started by raleeper, July 11, 2007, 05:14:21 AM

Previous topic - Next topic

raleeper

Does anyone have a Raw bitmap font file, .fnt, that I could use as a model for writing my own [for use with AddFontResource], and to verify the type specification information [that I found at http://www.descent2.com/ddn/specs/fnt/] ?

hutch--

raleeper,

Just use FIXEDSYS font, its a bitmap font with a different extension.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

japheth


> Just use FIXEDSYS font, its a bitmap font with a different extension.

That's possibly a bit too short to be a valid explanation :). The font resources are linked into a 16-bit NE binary, to get the raw font resource do:

1. get a 16-bit resource editor (for example, Borland's Resource Workshop is available for free)
2. get into the windows FONT subdir and select a font file. The FIXEDSYS font should be in 8514FIX.FON.
   copy the file to somewhere else and remove the SYSTEM (or HIDDEN) attributes
3. open this file with Resource Workshop and select the number below "FONT"
4. save this resource as 8514FIX.FNT. This file can be edited (with FONTEDIT.EXE or whatever)





raleeper

Quote from: japheth on July 11, 2007, 08:48:54 AM

> Just use FIXEDSYS font, its a bitmap font with a different extension.

That's possibly a bit too short to be a valid explanation :). The font resources are linked into a 16-bit NE binary, to get the raw font resource do:

1. get a 16-bit resource editor (for example, Borland's Resource Workshop is available for free)
2. get into the windows FONT subdir and select a font file. The FIXEDSYS font should be in 8514FIX.FON.
   copy the file to somewhere else and remove the SYSTEM (or HIDDEN) attributes
3. open this file with Resource Workshop and select the number below "FONT"
4. save this resource as 8514FIX.FNT. This file can be edited (with FONTEDIT.EXE or whatever)


Thanks.

BRW doesn't seem to be free or easy to get.  Anyway, I already have too much stuf I rarely use and little understand.

So here's what Im going to try:

1.  Extract 8514fix.fon from ...\win98_47.cab;  Rename as *.fnt

2.  Dump it using DOS' Debug and see if I can make sense of it using the specs mentioned below.

3.  redo some of the character bitmaps and see if it works with AddFontResource, etc.

I'll let you know if anything useful results.

-

On second thought, it occurs to me that I might be able to bypass fonts, text color, background color, textout, drawtext and perhaps others just by creating a bitmap of the screen I want and using some [as yet unknown] API function to show or 'paint' it.