Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

font creation

Status
Not open for further replies.

theEclipse

Programmer
Dec 27, 1999
1,190
US
I would like to know if anyone knows how to create a windows font by hand, or in a generator program. Robert Carpenter
questions? comments? thanks? email me!
eclipse_web@hotmail.com
Icq: 124408594
online.dll

AIM & MSN: robacarp
 
I created a font about 3 years ago. I think the name of the program was "softy". I will look through my archives and see if I can find it though I doubt I still have it.

Matt
 
Did you mean to create a FONT inside a program?
(If you meant creating a .ttf or .fon file don't read below.)

You have to fill in a LOGFONT structure and the call CreateFontIndirect with your logfont structure as parameter.

typedef struct tagLOGFONT {
LONG lfHeight;
LONG lfWidth;
LONG lfEscapement;
LONG lfOrientation;
LONG lfWeight;
BYTE lfItalic;
BYTE lfUnderline;
BYTE lfStrikeOut;
BYTE lfCharSet;
BYTE lfOutPrecision;
BYTE lfClipPrecision;
BYTE lfQuality;
BYTE lfPitchAndFamily;
TCHAR lfFaceName[LF_FACESIZE];
} LOGFONT, *PLOGFONT;

HFONT CreateFontIndirect(
CONST LOGFONT* lplf // characteristics
);

Read from MSDN about these issues and you will be able to create your own fonts at runtime s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top