zenilib: zenilib/jni/external/freetype2/src/base/ftwinfnt.c Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ftwinfnt.c
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* ftwinfnt.c */
4 /* */
5 /* FreeType API for accessing Windows FNT specific info (body). */
6 /* */
7 /* Copyright 2003, 2004 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
15 /* */
16 /***************************************************************************/
17
18
19 #include <ft2build.h>
20 #include FT_WINFONTS_H
21 #include FT_INTERNAL_OBJECTS_H
22 #include FT_SERVICE_WINFNT_H
23
24
25 /* documentation is in ftwinfnt.h */
26
27 FT_EXPORT_DEF( FT_Error )
28 FT_Get_WinFNT_Header( FT_Face face,
29 FT_WinFNT_HeaderRec *header )
30 {
31 FT_Service_WinFnt service;
32 FT_Error error;
33
34
35 error = FT_Err_Invalid_Argument;
36
37 if ( face != NULL )
38 {
39 FT_FACE_LOOKUP_SERVICE( face, service, WINFNT );
40
41 if ( service != NULL )
42 {
43 error = service->get_header( face, header );
44 }
45 }
46
47 return error;
48 }
49
50
51 /* END */
FT_Error
int FT_Error
Definition: fttypes.h:296
header
cannot open resource broken file module version is too low unimplemented feature broken offset within table missing module invalid character code cannot render this glyph format invalid composite glyph invalid pixel size invalid library handle invalid face handle invalid glyph slot handle invalid cache manager handle too many modules out of memory cannot open stream invalid stream skip invalid stream operation nested frame access raster uninitialized raster overflow too many registered caches too few arguments code overflow division by zero found debug opcode nested DEFS execution context too long too many instruction definitions horizontal header(hhea) table missing" ) FT_ERRORDEF_( Locations_Missing
FT_Get_WinFNT_Header
FT_Get_WinFNT_Header(FT_Face face, FT_WinFNT_HeaderRec *aheader)
Definition: ftwinfnt.c:28
NULL
#define NULL
Definition: ftobjs.h:61
FT_Err_Invalid_Argument
return FT_Err_Invalid_Argument
Definition: ftbbox.c:584
FT_WinFNT_HeaderRec_
Definition: ftwinfnt.h:183
FT_FACE_LOOKUP_SERVICE
#define FT_FACE_LOOKUP_SERVICE(face, ptr, id)
Definition: ftserv.h:625
FT_FaceRec_
Definition: freetype.h:912
error
FT_Error error
Definition: cffdrivr.c:407
face
GLenum face
Definition: gl2ext.h:1490
ft2build.h
FT_EXPORT_DEF
#define FT_EXPORT_DEF(x)
Definition: ftconfig.h:511