ReactOS 0.4.16-dev-334-g4d9f67c
ftwinfnt.c File Reference
#include <ft2build.h>
Include dependency graph for ftwinfnt.c:

Go to the source code of this file.

Functions

 FT_Get_WinFNT_Header (FT_Face face, FT_WinFNT_HeaderRec *header)
 

Function Documentation

◆ FT_Get_WinFNT_Header()

FT_Get_WinFNT_Header ( FT_Face  face,
FT_WinFNT_HeaderRec header 
)

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 }
#define FT_THROW(e)
Definition: ftdebug.h:213
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
Definition: ftserv.h:950
int FT_Error
Definition: fttypes.h:300
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
#define error(str)
Definition: mkdosfs.c:1605

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