• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  *
3  * cffgload.h
4  *
5  *   OpenType Glyph Loader (specification).
6  *
7  * Copyright (C) 1996-2020 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 #ifndef CFFGLOAD_H_
20 #define CFFGLOAD_H_
21 
22 
23 #include <freetype/freetype.h>
24 #include <freetype/internal/cffotypes.h>
25 
26 
27 FT_BEGIN_HEADER
28 
29   FT_LOCAL( FT_Error )
30   cff_get_glyph_data( TT_Face    face,
31                       FT_UInt    glyph_index,
32                       FT_Byte**  pointer,
33                       FT_ULong*  length );
34   FT_LOCAL( void )
35   cff_free_glyph_data( TT_Face    face,
36                        FT_Byte**  pointer,
37                        FT_ULong   length );
38 
39 
40 #if 0  /* unused until we support pure CFF fonts */
41 
42   /* Compute the maximum advance width of a font through quick parsing */
43   FT_LOCAL( FT_Error )
44   cff_compute_max_advance( TT_Face  face,
45                            FT_Int*  max_advance );
46 
47 #endif /* 0 */
48 
49 
50   FT_LOCAL( FT_Error )
51   cff_slot_load( CFF_GlyphSlot  glyph,
52                  CFF_Size       size,
53                  FT_UInt        glyph_index,
54                  FT_Int32       load_flags );
55 
56 
57 FT_END_HEADER
58 
59 #endif /* CFFGLOAD_H_ */
60 
61 
62 /* END */
63