How to make Windows Fonts?

Discussion in 'Programmer's Corner' started by Wendy, Jun 30, 2013.

  1. Wendy

    Thread Starter Moderator

    Mar 24, 2008
    20,764
    2,534
    The new Paint does not actually do New Courier 8 pt, it extrapolates it instead. I use the heck out of this font, but the new look is basically unusable.

    I have looked, and have yet to find a definition of the file format of any of the various font standards out there. I want to create a custom single point font, nothing complex, that is compatible with Windows M/S Paint.

    Does anyone have any good references?
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    You are limited by the pixel size, I think. You can not do much about that.
     
    Last edited: Jul 1, 2013
  3. bertus

    Administrator

    Apr 5, 2008
    15,638
    2,343
  4. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
  5. Wendy

    Thread Starter Moderator

    Mar 24, 2008
    20,764
    2,534
    Like I said, the new Paint in Win7 does not work the same way, it aliases the small fonts. Far off it looks OK, close up not so much.

    I also don't want multiple point sizes, what I want it like the bmp of fonts, just one size and I define the pixels (completely).

    I'll check out the software when I get the chance.

    There are several font extensions, I am hoping one is crude and simple, so I can lay out the binary stream for it.
     
  6. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Ah now I see. It is a program you could try here http://www.mspaintxp.com/ It is free. Just do not click on the green download link. That will download some stupid toolbar. Click on the link in the upper right corner
     
  7. bertus

    Administrator

    Apr 5, 2008
    15,638
    2,343
    Hello,

    An other intresting drawing program is DIA.
    http://dia-installer.de/

    It already contains a library with electronics symbols.

    Bertus
     
  8. panic mode

    Senior Member

    Oct 10, 2011
    1,318
    304
    one option is to just use paint in XP...
     
  9. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    What you are asking about is called a raster font (where each character is made by pixels on a grid).

    Natively windows uses vector fonts (where characters are defined by lengths and angles of the lines and can be easily scaled.)

    I don't think you will get a new Win7 paint program to use raster fonts. If you can find a way to turn "font smoothing" off or "anti aliasing" off etc you might get an ok result in Win7 paint.

    Some of the older freeware paint type programs will let you use raster fonts direct, or at least will allow font display with no smoothing, so you can manually size them until they look ok in pixels.

    I think the free paint tools supplied with windows have always been extremely poor, and just about any freeware paint type program will work better and have more/better import and export filters. So in other words just get rid of Win paint. ;)
     
  10. Tesla23

    Active Member

    May 10, 2009
    318
    67
  11. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    Yeah that's to turn off the screen display anti-aliasing.

    What Bill needs is to be able to place text on a pixelated image, with the characters made of pixels (ie a fixed size raster font).

    I do it in a freeware program, but in the place text control I turn the font smoothing off. Then by picking the right font size it rasterises the windows TTF font pretty well.
     
  12. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    I think Bills problem is that the fonts are anti aliased in paint for Windows 7. Then the fonts are small this may be a problem
    [​IMG]
     
  13. Tesla23

    Active Member

    May 10, 2009
    318
    67
    There is only one type of anti-aliasing as far as I know - and it affects the rendering of text on bitmaps, whether that bitmap is the screen or the bitmap in paint.

    Anyway, the proof is in the result and before I posted I did actually try it on Win7 with Paint and the result was to remove the smoothing from the text on the paint bitmap. I have before and after examples to prove it:
    [​IMG]
     
    Last edited: Jul 3, 2013
    Wendy likes this.
  14. Wendy

    Thread Starter Moderator

    Mar 24, 2008
    20,764
    2,534
    So how did you remove the smoothing? I have it in front of me at the moment, and can't find it.

    While my drawings are fundimentally bitmap, the compression is generally .gif B&W

    _______________________

    Opps, found it in an earlier post. Unfortunately it is part of the system settings, an administrator function, which I don't have.
     
  15. Wendy

    Thread Starter Moderator

    Mar 24, 2008
    20,764
    2,534
    This thread will still be very useful, as I am looking to upgrade my computer soon. Thank you.

    I probably will still try the font program, as it has some other uses.
     
  16. Wendy

    Thread Starter Moderator

    Mar 24, 2008
    20,764
    2,534
    OK, I'm back on this subject. I want to make a raster font, in pixels, and then convert it to something Win can use. These will be specialized fonts to be used with my PaintCAD package.

    Here is an example of one font I want...

    [​IMG]

    Here is what my desktop does...

    [​IMG]

    Verdana 6pt is very usable, but at this point I'm trying to use my new (to me) laptop, which this thread was very useful in setting up. I would like to create a new font something like Verdana 6pt, but polish out the glitches.

    I'll post what the laptop is doing in a bit. I may be misremembering, but it is pretty ugly. Both my desktop and laptop are Win7 pro.

    OK, her is my laptops versio. Like I said, ugly.

    [​IMG]
     
    Last edited: Feb 17, 2015
  17. bertus

    Administrator

    Apr 5, 2008
    15,638
    2,343
    Wendy likes this.
Loading...