Original Post
Hi
I have made a function who write text to screen. Unforturnately it dont work so well. I cant make the right fonttype, like Verdana, Times New Roman etc. Also the height and width dont work
Here is the function header:
BOOL FONT::MakeFont(char *fontname, int height, int width, BOOL Italic, BOOL Underline, BOOL Strikeout)
I init the font with this function.
The lines who configure height, width and fonttype:
if(!height)
{
m_height = height;
}
if(!width)
{
m_width = width;
}
height = m_height;
width = m_width;
CreateFont(height, // Height Of Font
width, // Width Of Font
0, // Angle Of Escapement
0, // Orientation Angle
FW_BOLD, // Font Weight
Italic, // Italic
Underline, // Underline
Strikeout, // Strikeout
ANSI_CHARSET, // Character Set Identifier
OUT_TT_PRECIS, // Output Precision
CLIP_DEFAULT_PRECIS, // Clipping Precision
ANTIALIASED_QUALITY, // Output Quality
FF_DONTCARE|DEFAULT_PITCH, // Family And Pitch
fontname); // Font Name
What is wrong of my function?
// Ioxunimous