[ Home | What's New | Software | Links | About | Forum | Email | Donate ]


Software - ProgFont


Download: ProgFont 1.01   ZIP: 4K Screenshot Updated: March 18th 2000

ProgFont is a silly little program, only of use to programmers. It will prompt you to choose a Windows font of the given type face, size etc. then will show you the C code that can be used to create that font at runtime.

Just copy and paste the generated code into your program and use the font handle returned from the function. Here's an example of the output from the program.

HFONT MyFont()
{
  LOGFONT logFont =
  {
    -21,                       // lfHeight
    0,                         // lfWidth
    0,                         // lfEscapement
    0,                         // lfOrientation
    FW_BOLD,                   // lfWeight
    0,                         // lfItalic
    0,                         // lfUnderline
    0,                         // lfStrikeOut
    ANSI_CHARSET,              // lfCharSet
    OUT_STROKE_PRECIS,         // lfOutPrecision
    CLIP_STROKE_PRECIS,        // lfClipPrecision
    DRAFT_QUALITY,             // lfQuality
    VARIABLE_PITCH | FF_SWISS, // lfPitchAndFamily
    "Tahoma"                   // lfFaceName
  };

  return CreateFontIndirect(&logFont);
}
      


[ Home | What's New | Software | Links | About | Forum | Email | Donate ]