ReactOS  0.4.14-dev-998-g623dd26
ftwinfnt.h File Reference
#include <ft2build.h>
Include dependency graph for ftwinfnt.h:

Go to the source code of this file.

Classes

struct  FT_WinFNT_HeaderRec_
 

Macros

#define FT_WinFNT_ID_CP1252   0
 
#define FT_WinFNT_ID_DEFAULT   1
 
#define FT_WinFNT_ID_SYMBOL   2
 
#define FT_WinFNT_ID_MAC   77
 
#define FT_WinFNT_ID_CP932   128
 
#define FT_WinFNT_ID_CP949   129
 
#define FT_WinFNT_ID_CP1361   130
 
#define FT_WinFNT_ID_CP936   134
 
#define FT_WinFNT_ID_CP950   136
 
#define FT_WinFNT_ID_CP1253   161
 
#define FT_WinFNT_ID_CP1254   162
 
#define FT_WinFNT_ID_CP1258   163
 
#define FT_WinFNT_ID_CP1255   177
 
#define FT_WinFNT_ID_CP1256   178
 
#define FT_WinFNT_ID_CP1257   186
 
#define FT_WinFNT_ID_CP1251   204
 
#define FT_WinFNT_ID_CP874   222
 
#define FT_WinFNT_ID_CP1250   238
 
#define FT_WinFNT_ID_OEM   255
 

Typedefs

typedef struct FT_WinFNT_HeaderRec_ FT_WinFNT_HeaderRec
 
typedef struct FT_WinFNT_HeaderRec_FT_WinFNT_Header
 

Functions

 FT_Get_WinFNT_Header (FT_Face face, FT_WinFNT_HeaderRec *aheader)
 

Macro Definition Documentation

◆ FT_WinFNT_ID_CP1250

#define FT_WinFNT_ID_CP1250   238

Definition at line 172 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1251

#define FT_WinFNT_ID_CP1251   204

Definition at line 170 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1252

#define FT_WinFNT_ID_CP1252   0

Definition at line 155 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1253

#define FT_WinFNT_ID_CP1253   161

Definition at line 164 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1254

#define FT_WinFNT_ID_CP1254   162

Definition at line 165 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1255

#define FT_WinFNT_ID_CP1255   177

Definition at line 167 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1256

#define FT_WinFNT_ID_CP1256   178

Definition at line 168 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1257

#define FT_WinFNT_ID_CP1257   186

Definition at line 169 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1258

#define FT_WinFNT_ID_CP1258   163

Definition at line 166 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP1361

#define FT_WinFNT_ID_CP1361   130

Definition at line 161 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP874

#define FT_WinFNT_ID_CP874   222

Definition at line 171 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP932

#define FT_WinFNT_ID_CP932   128

Definition at line 159 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP936

#define FT_WinFNT_ID_CP936   134

Definition at line 162 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP949

#define FT_WinFNT_ID_CP949   129

Definition at line 160 of file ftwinfnt.h.

◆ FT_WinFNT_ID_CP950

#define FT_WinFNT_ID_CP950   136

Definition at line 163 of file ftwinfnt.h.

◆ FT_WinFNT_ID_DEFAULT

#define FT_WinFNT_ID_DEFAULT   1

Definition at line 156 of file ftwinfnt.h.

◆ FT_WinFNT_ID_MAC

#define FT_WinFNT_ID_MAC   77

Definition at line 158 of file ftwinfnt.h.

◆ FT_WinFNT_ID_OEM

#define FT_WinFNT_ID_OEM   255

Definition at line 173 of file ftwinfnt.h.

◆ FT_WinFNT_ID_SYMBOL

#define FT_WinFNT_ID_SYMBOL   2

Definition at line 157 of file ftwinfnt.h.

Typedef Documentation

◆ FT_WinFNT_Header

Definition at line 234 of file ftwinfnt.h.

◆ FT_WinFNT_HeaderRec

Function Documentation

◆ FT_Get_WinFNT_Header()

FT_Get_WinFNT_Header ( FT_Face  face,
FT_WinFNT_HeaderRec aheader 
)

Definition at line 29 of file ftwinfnt.c.

31  {
32  FT_Service_WinFnt service;
34 
35 
36  if ( !face )
37  return FT_THROW( Invalid_Face_Handle );
38 
39  if ( !header )
40  return FT_THROW( Invalid_Argument );
41 
42  FT_FACE_LOOKUP_SERVICE( face, service, WINFNT );
43 
44  if ( service )
45  error = service->get_header( face, header );
46  else
47  error = FT_THROW( Invalid_Argument );
48 
49  return error;
50  }
int FT_Error
Definition: fttypes.h:300
#define error(str)
Definition: mkdosfs.c:1605
#define FT_THROW(e)
Definition: ftdebug.h:213
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
Definition: ftserv.h:950
GLenum GLuint GLint GLenum face
Definition: glext.h:7025

Referenced by ftGdiGetTextMetricsW(), IntGdiLoadFontsFromMemory(), IntGetOutlineTextMetrics(), and IntRequestFontSize().