ReactOS 0.4.16-dev-336-gb667d82
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
21namespace font {
22
23// font options
24static const ULONG FS_NONE = 0x00000000;
25static const ULONG FS_BOLD = 0x00000001;
26static const ULONG FS_ITALIC = 0x00000002;
27static const ULONG FS_UNDERLINE = 0x00000004;
28static const ULONG FS_STRIKEOUT = 0x00000008;
29
30// creates a logical font
31HFONT 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//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Arabic default style
Definition: afstyles.h:94
CFF_Charset charset
Definition: cffcmap.c:138
unsigned long DWORD
Definition: ntddk_ex.h:95
static HDC
Definition: imagelist.c:88
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
Definition: mk_font.cpp:20
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
static const ULONG FS_BOLD
Definition: mk_font.h:25
static const ULONG FS_STRIKEOUT
Definition: mk_font.h:28
static const ULONG FS_NONE
Definition: mk_font.h:24
static const ULONG FS_UNDERLINE
Definition: mk_font.h:27
static const ULONG FS_ITALIC
Definition: mk_font.h:26
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define ANSI_CHARSET
Definition: wingdi.h:383
const char * LPCSTR
Definition: xmlstorage.h:183
unsigned char BYTE
Definition: xxhash.c:193