ReactOS  0.4.14-dev-1332-g6db3d88
mk_font.h
Go to the documentation of this file.
1 
2 // ------------------------------------------------------------------
3 // Windows 2000 Graphics API Black Book
4 // Chapter 4 - Utility functions
5 //
6 // Created by Damon Chandler <dmc27@ee.cornell.edu>
7 // Updates can be downloaded at: <www.coriolis.com>
8 //
9 // Please do not hesistate to e-mail me at dmc27@ee.cornell.edu
10 // if you have any questions about this code.
11 // ------------------------------------------------------------------
12 
13 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
14 #ifndef CH4_UTILS_H
15 #define CH4_UTILS_H
16 
17 #include <windows.h>
18 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
19 
20 // change namespace name appropriately to suit your needs
21 namespace font {
22 
23 // font options
24 static const ULONG FS_NONE = 0x00000000;
25 static const ULONG FS_BOLD = 0x00000001;
26 static const ULONG FS_ITALIC = 0x00000002;
27 static const ULONG FS_UNDERLINE = 0x00000004;
28 static const ULONG FS_STRIKEOUT = 0x00000008;
29 
30 // creates a logical font
31 HFONT MakeFont(IN HDC hDestDC, IN LPCSTR typeface_name,
32  IN int point_size, IN const BYTE charset = ANSI_CHARSET,
33  IN const DWORD style = FS_NONE);
34 
35 }
36 
37 //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
38 #endif // CH4_UTILS_H
39 //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
#define IN
Definition: typedefs.h:39
CFF_Charset charset
Definition: cffcmap.c:138
Definition: mk_font.cpp:20
static const ULONG FS_NONE
Definition: mk_font.h:24
static HDC
Definition: imagelist.c:92
static const ULONG FS_ITALIC
Definition: mk_font.h:26
static const ULONG FS_UNDERLINE
Definition: mk_font.h:27
HFONT MakeFont(IN HDC hDestDC, IN LPCSTR typeface_name, IN int point_size, IN const BYTE charset, IN const DWORD style)
Definition: mk_font.cpp:23
const char * LPCSTR
Definition: xmlstorage.h:183
unsigned long DWORD
Definition: ntddk_ex.h:95
static const ULONG FS_STRIKEOUT
Definition: mk_font.h:28
unsigned char BYTE
Definition: mem.h:68
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned int ULONG
Definition: retypes.h:1
#define ANSI_CHARSET
Definition: wingdi.h:382
Arabic default style
Definition: afstyles.h:93
static const ULONG FS_BOLD
Definition: mk_font.h:25