font_lib_t

Declaration

struct font_lib_t {
char name[_MGL_FNAMESIZE];
short fontLibType;
FILE *f;
ibool ownHandle;
ulong dwOffset;
}

Prototype In

mgraph.h

Description

Structure representing a loaded MGL font library. MGL font files come in three flavors, either vector fonts, bitmap fonts or scaleable fonts. Vector fonts represent the characters in the font as a set of lines that are drawn, and vector fonts can be scaled and rotated to any desired angle. Vector fonts however do not look very good when rasterized at high resolutions. Bitmap fonts represent the characters in the font as small monochrome bitmaps, and can be either fixed width fonts or proportional fonts. Scaleable fonts (TrueType and Adobe Type 1) represent the characters as mathematical outlines that can be scaled to any size. Scaleable fonts are scan converted into bitmap fonts at runtime when a particular font point size is requested. Scalable fonts can also be used for anti-aliased text rendering for better looking fonts at lower resolutions.

The MGL can load both MGL 1.x style font files (vector and bitmap fonts) or Windows 2.x style bitmap font files. For creating your own bitmap font files, you should use any standard Windows font file editor and save the fonts in Windows 2.x format (which is the standard format used by Windows 3.x, Windows 95 and Windows NT for bitmap fonts).

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com