ReactOS
0.4.17-dev-116-ga4b6fe9
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
//<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
style
Arabic default style
Definition:
afstyles.h:94
charset
CFF_Charset charset
Definition:
cffcmap.c:137
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
HDC
static HDC
Definition:
imagelist.c:88
font
Definition:
mk_font.cpp:20
font::MakeFont
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
font::FS_BOLD
static const ULONG FS_BOLD
Definition:
mk_font.h:25
font::FS_STRIKEOUT
static const ULONG FS_STRIKEOUT
Definition:
mk_font.h:28
font::FS_NONE
static const ULONG FS_NONE
Definition:
mk_font.h:24
font::FS_UNDERLINE
static const ULONG FS_UNDERLINE
Definition:
mk_font.h:27
font::FS_ITALIC
static const ULONG FS_ITALIC
Definition:
mk_font.h:26
LPCSTR
const char * LPCSTR
Definition:
typedefs.h:52
IN
#define IN
Definition:
typedefs.h:39
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
ANSI_CHARSET
#define ANSI_CHARSET
Definition:
wingdi.h:383
BYTE
unsigned char BYTE
Definition:
xxhash.c:193
modules
rostests
tests
txtscale
mk_font.h
Generated on Tue May 12 2026 06:10:21 for ReactOS by
1.9.6