[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
microwindows fonts
From: Greg Haerr ####@####.#### Date: 28 Jun 1999 18:11:10 -0000 Message-Id: <01BEC15E.D0113DB0.greg@censoft.com> I'm trying to get some more non-copyrighted fonts for micro-windows use. I've found a good rom alternative, vga.pcf, which is part of the dosemu distribution. Does anyone know how to convert .pcf files to, say bdf? I've found bdftopcf, but I only know how to convert bdf files to micro-windows currently. Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: microwindows fonts
From: Michael Hope ####@####.#### Date: 28 Jun 1999 19:01:46 -0000 Message-Id: <Pine.LNX.3.95.990629064018.18020B-100000@heartofgold.pcmedia.nzl.com> > I'm trying to get some more non-copyrighted fonts for micro-windows > use. I've found a good rom alternative, vga.pcf, which is part of the > dosemu distribution. A PCF font is pretty much a compiled form of a BDF font. I have some documentation on the file format and some code I wrote to convert PCF to an 8x8 tile font (for the Nintendo Gameboy incidently) if anyones interested. -- Michael | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: microwindows fonts
From: Greg Haerr ####@####.#### Date: 28 Jun 1999 19:10:02 -0000 Message-Id: <01BEC167.09E1D560.greg@censoft.com> On Monday, June 28, 1999 12:43 PM, Michael Hope ####@####.#### wrote: : > I'm trying to get some more non-copyrighted fonts for micro-windows : > use. I've found a good rom alternative, vga.pcf, which is part of the : > dosemu distribution. : : A PCF font is pretty much a compiled form of a BDF font. I have some : documentation on the file format and some code I wrote to convert PCF to : an 8x8 tile font (for the Nintendo Gameboy incidently) if anyones : interested. : : -- Michael : I'd like to see the file format stuff, as well as conversion utilities... Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: microwindows fonts
From: bsittler ####@####.#### Date: 28 Jun 1999 21:58:46 -0000 Message-Id: <Pine.LNX.4.10.9906281530130.838-100000@ladron.cs.nmt.edu> On Mon, 28 Jun 1999, Greg Haerr wrote: > I'm trying to get some more non-copyrighted fonts for micro-windows > use. I've found a good rom alternative, vga.pcf, which is part of the > dosemu distribution. > Does anyone know how to convert .pcf files to, say bdf? > I've found bdftopcf, but I only know how to convert bdf files to micro-windows > currently. I dunno about pcf -> bdf conversion, but if you'd like to use the wealth of Linux Console fonts out there, I've written a PSF/ROM font image -> BDF converter. It's at http://www.nmt.edu/~bsittler/convfont/convfont.c, and it's in the public domain. It only handles fonts which are 8 pixels wide, but since that includes most Linux Console fonts, it shouldn't be a problem. As for non-copyrighted fonts, although I am not a lawyer, I believe that bitmap fonts (as opposed to scalable fonts) are considered typefaces in the USA, and are therefore considered non-copyrightable. With this in mind, I have dumped the font ROMs of several old computers, and placed some of them online. The font from the Kaypro 2x (which is only good for ASCII, not ISO-8859-1,) has been converted to BDF and is available at http://www.nmt.edu/~bsittler/kaypro2x.bdf. It is an 8x16-pixel font with ASCII, line-drawing, and block-graphics characters. The computer it was created for, the Kaypro 2x, has been out of production for well over a decade, and the company which made it is long gone. If you're interested, I can also convert some of my larger 16x32-pixel fonts to BDF format. The include only the ASCII printable characters at the moment, and are in rather showy faces (that is, not very readable,) but they work okay for headings and other "occasional" text. Two of them are online in GIF format at http://www.nmt.edu/~bsittler/images/gamma.gif and http://www.nmt.edu/~bsittler/images/nu.gif. The first (gamma) includes grayscales, but can easily be converted to straight monochrome. The second (nu) is similar to the Fraktur typeface, which some people claim is unreadable. I am also willing to draw new typefaces to order, given general guidelines on how they should look. I prefer fixed-width typefaces to variable-width, simply because the program I draw my fonts for (a video game in development) can't use variable-width typefaces for reasons of efficiency (it would require harder math before each screen redraw if the character cells weren't exactly half the size of the graphics cells.) If you're interested in fonts for a non-unity aspect ratio (i.e. for CGA or EGA resolutions,) I have drawn several fonts on an 8x9-pixel grid which I can automatically convert to BDF format. Does this interest you? Once again, they include only ASCII (and a few line-drawing characters.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: microwindows fonts
From: Greg Haerr ####@####.#### Date: 28 Jun 1999 22:06:31 -0000 Message-Id: <01BEC17F.B0CE73C0.greg@censoft.com> : I dunno about pcf -> bdf conversion, but if you'd like to use the wealth : of Linux Console fonts out there, I've written a PSF/ROM font image -> BDF : converter. It's at http://www.nmt.edu/~bsittler/convfont/convfont.c, and : it's in the public domain. Cool. I'll take a look at it, and possibly include it in the Micro-windows distribution for grabbing Linux fonts. The font from the Kaypro 2x (which is only good for : ASCII, not ISO-8859-1,) has been converted to BDF and is available at : http://www.nmt.edu/~bsittler/kaypro2x.bdf. It is an 8x16-pixel font with : ASCII, line-drawing, and block-graphics characters. The computer it was : created for, the Kaypro 2x, has been out of production for well over a : decade, and the company which made it is long gone. Ah yes, the old Kaypro 2x. I still have one. I'll take a look at that stuff as well... : I am also willing to draw new typefaces to order, given general guidelines : on how they should look. I prefer fixed-width typefaces to variable-width, : simply because the program I draw my fonts for (a video game in : development) can't use variable-width typefaces for reasons of efficiency : (it would require harder math before each screen redraw if the character : cells weren't exactly half the size of the graphics cells.) The newer windowing systems all use proportional fonts, they look far superior to fixed width stuff. : : If you're interested in fonts for a non-unity aspect ratio (i.e. for CGA : or EGA resolutions,) I have drawn several fonts on an 8x9-pixel grid which : I can automatically convert to BDF format. Does this interest you? Once : again, they include only ASCII (and a few line-drawing characters.) : I think 8x9 is too small. I would like to see some VGA variations, for text display, however. Greg : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Microwindows Fonts
From: "Greg Haerr" ####@####.#### Date: 15 Jun 2004 19:54:22 +0100 Message-Id: <014a01c45309$a75149f0$0300a8c0@RDP> > . To do it I thought that I could only change the font name (the last parameter of createfont) by an other one (ex : HKZFONT to Helvetica). The result is ok. But when I would like to change Espacement, nHeight,..... of this new font in createfont no change occurs. So I thought that it was in the BDF file The height parameter is used to select on of a number of built-in fonts. Otherwise, you specify a full-path to a loadable font, and the height is ignored, unless the font is a truetype font (NOT BDF). BDF are fixed-size fonts, and height is ignored except when selecting builtin fonts. You can use convbdf to convert a bdf font to .pcf or .fnt and then just load it using the absolute path. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: Microwindows Fonts
From: "Greg Haerr" ####@####.#### Date: 12 Aug 2004 04:16:10 +0100 Message-Id: <016301c4801a$a5548020$3eba46a6@winXP> > hFont = CreateFont 12,0,0,0,0,0,0,0,0,0,0,0,FF_DONTCARE|DEFAULT_PITCH,"HZKFONT"); > And the result is ok > But now I would like to load big5font, gb2312 and jisx0213-12x12 fonts. how can I do that? > because I tried hFont = CreateFont(12,0,0,0,0,0,0,0,0,0,0,0,FF_DONTCARE|DEFAULT_PITCH,"BIG5FONT"); and It doesn't work. Turn off HZK fonts in the config file. The built-in fonts are an older design and weren't really designed to allow switching between Japanese and multiple Chinese builtin fonts. Make sure you are using the name that is found in the .c file. You also must encode your text the way that the builtin font handler expects, which is hard to describe, but typically found in drivers/genfont.c and engine/devfont.c. > I have another question. I tried to load a pcf font like gb24st.pcf. So, I write : hFont = CreateFont(12,0,0,0,0,0,0,0,0,0,0,0,0,"gb24st.pcf"); SelectObject(hdc,hFont); TextOut(hdc, 20, 160,"ï ¤ ¨ ¥", -1); > And the result looks like ok : > pcf_createfont: using font gb24st.pcf > But I don't see anything on my screen. The text doesn't appears. Is there something wrong in my code? The win32 API doesn't allow for changing the character encoding. You'll need to edit mwin/wingdi.c::MwExtTextOut and change the flags parameter to GrText to the encoding that you'll be using. We need to design an API workaround to this, if multiple fonts with different encodings will be used. (The Microsoft answer is to support only unicode, and Microwindows then needs TextOutA and TextOutW versions, which is probably the best way to go) Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |