mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-15 10:48:04 +00:00
Make CreateFont call in one line
This commit is contained in:
parent
607af63b08
commit
a541f6aa9d
@ -569,22 +569,9 @@ HFONT Clay_Win32_SimpleCreateFont(const char* filePath, const char* family, int
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create the font using the calculated height and the font name
|
// Create the font using the calculated height and the font name
|
||||||
HFONT hFont = CreateFont(
|
HFONT hFont = CreateFont(fontHeight, 0, 0, 0, weight, FALSE, FALSE, FALSE,
|
||||||
fontHeight, // Height
|
ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
|
||||||
0, // Width (0 means default width)
|
DEFAULT_PITCH, family);
|
||||||
0, // Escapement angle
|
|
||||||
0, // Orientation angle
|
|
||||||
weight, // Font weight
|
|
||||||
FALSE, // Italic
|
|
||||||
FALSE, // Underline
|
|
||||||
FALSE, // Strikeout
|
|
||||||
ANSI_CHARSET, // Character set
|
|
||||||
OUT_DEFAULT_PRECIS, // Output precision
|
|
||||||
CLIP_DEFAULT_PRECIS, // Clipping precision
|
|
||||||
DEFAULT_QUALITY, // Font quality
|
|
||||||
DEFAULT_PITCH, // Pitch and family
|
|
||||||
family // Font name
|
|
||||||
);
|
|
||||||
|
|
||||||
return hFont;
|
return hFont;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user