fontservices/freetypefontrasteriser/freetype2/include/freetype/internal/ftgloadr.h
author Shabe Razvi <shaber@symbian.org>
Wed, 21 Apr 2010 10:38:57 +0100
changeset 18 67f6b0d39020
permissions -rw-r--r--
Apply Bug 1543 - freetype.dll cannot be built
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     1
/***************************************************************************/
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     2
/*                                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     3
/*  ftgloadr.h                                                             */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     4
/*                                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     5
/*    The FreeType glyph loader (specification).                           */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     6
/*                                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     7
/*  Copyright 2002, 2003, 2005, 2006 by                                    */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     8
/*  David Turner, Robert Wilhelm, and Werner Lemberg                       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
     9
/*                                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    10
/*  This file is part of the FreeType project, and may only be used,       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    11
/*  modified, and distributed under the terms of the FreeType project      */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    12
/*  license, FTL.TXT.  By continuing to use, modify, or distribute     */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    13
/*  this file you indicate that you have read the license and              */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    14
/*  understand and accept it fully.                                        */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    15
/*                                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    16
/***************************************************************************/
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    17
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    18
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    19
#ifndef __FTGLOADR_H__
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    20
#define __FTGLOADR_H__
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    21
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    22
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    23
#include <ft2build.h>
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    24
#include FT_FREETYPE_H
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    25
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    26
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    27
FT_BEGIN_HEADER
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    28
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    29
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    30
  /*************************************************************************/
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    31
  /*                                                                       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    32
  /* <Struct>                                                              */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    33
  /*    FT_GlyphLoader                                                     */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    34
  /*                                                                       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    35
  /* <Description>                                                         */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    36
  /*    The glyph loader is an internal object used to load several glyphs */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    37
  /*    together (for example, in the case of composites).                 */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    38
  /*                                                                       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    39
  /* <Note>                                                                */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    40
  /*    The glyph loader implementation is not part of the high-level API, */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    41
  /*    hence the forward structure declaration.                           */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    42
  /*                                                                       */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    43
  typedef struct FT_GlyphLoaderRec_*  FT_GlyphLoader ;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    44
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    45
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    46
#if 0  /* moved to freetype.h in version 2.2 */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    47
#define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS          1
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    48
#define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES      2
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    49
#define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID        4
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    50
#define FT_SUBGLYPH_FLAG_SCALE                   8
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    51
#define FT_SUBGLYPH_FLAG_XY_SCALE             0x40
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    52
#define FT_SUBGLYPH_FLAG_2X2                  0x80
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    53
#define FT_SUBGLYPH_FLAG_USE_MY_METRICS      0x200
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    54
#endif
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    55
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    56
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    57
  typedef struct  FT_SubGlyphRec_
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    58
  {
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    59
    FT_Int     index;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    60
    FT_UShort  flags;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    61
    FT_Int     arg1;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    62
    FT_Int     arg2;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    63
    FT_Matrix  transform;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    64
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    65
  } FT_SubGlyphRec;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    66
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    67
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    68
  typedef struct  FT_GlyphLoadRec_
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    69
  {
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    70
    FT_Outline   outline;       /* outline             */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    71
    FT_Vector*   extra_points;  /* extra points table  */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    72
    FT_UInt      num_subglyphs; /* number of subglyphs */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    73
    FT_SubGlyph  subglyphs;     /* subglyphs           */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    74
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    75
  } FT_GlyphLoadRec, *FT_GlyphLoad;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    76
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    77
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    78
  typedef struct  FT_GlyphLoaderRec_
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    79
  {
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    80
    FT_Memory        memory;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    81
    FT_UInt          max_points;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    82
    FT_UInt          max_contours;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    83
    FT_UInt          max_subglyphs;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    84
    FT_Bool          use_extra;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    85
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    86
    FT_GlyphLoadRec  base;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    87
    FT_GlyphLoadRec  current;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    88
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    89
    void*            other;            /* for possible future extension? */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    90
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    91
  } FT_GlyphLoaderRec;
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    92
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    93
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    94
  /* create new empty glyph loader */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    95
  FT_BASE( FT_Error )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    96
  FT_GlyphLoader_New( FT_Memory        memory,
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    97
                      FT_GlyphLoader  *aloader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    98
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
    99
  /* add an extra points table to a glyph loader */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   100
  FT_BASE( FT_Error )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   101
  FT_GlyphLoader_CreateExtra( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   102
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   103
  /* destroy a glyph loader */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   104
  FT_BASE( void )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   105
  FT_GlyphLoader_Done( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   106
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   107
  /* reset a glyph loader (frees everything int it) */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   108
  FT_BASE( void )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   109
  FT_GlyphLoader_Reset( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   110
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   111
  /* rewind a glyph loader */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   112
  FT_BASE( void )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   113
  FT_GlyphLoader_Rewind( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   114
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   115
  /* check that there is enough space to add `n_points' and `n_contours' */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   116
  /* to the glyph loader                                                 */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   117
  FT_BASE( FT_Error )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   118
  FT_GlyphLoader_CheckPoints( FT_GlyphLoader  loader,
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   119
                              FT_UInt         n_points,
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   120
                              FT_UInt         n_contours );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   121
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   122
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   123
#define FT_GLYPHLOADER_CHECK_P( _loader, _count )                    \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   124
   ( (_count) == 0 || (int)((_loader)->base.outline.n_points    +    \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   125
                            (_loader)->current.outline.n_points +    \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   126
                            (_count)) <= (int)(_loader)->max_points )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   127
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   128
#define FT_GLYPHLOADER_CHECK_C( _loader, _count )                     \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   129
  ( (_count) == 0 || (int)((_loader)->base.outline.n_contours    +    \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   130
                           (_loader)->current.outline.n_contours +    \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   131
                           (_count)) <= (int)(_loader)->max_contours )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   132
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   133
#define FT_GLYPHLOADER_CHECK_POINTS( _loader, _points,_contours )      \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   134
  ( ( FT_GLYPHLOADER_CHECK_P( _loader, _points )   &&                  \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   135
      FT_GLYPHLOADER_CHECK_C( _loader, _contours ) )                   \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   136
    ? 0                                                                \
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   137
    : FT_GlyphLoader_CheckPoints( (_loader), (_points), (_contours) ) )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   138
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   139
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   140
  /* check that there is enough space to add `n_subs' sub-glyphs to */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   141
  /* a glyph loader                                                 */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   142
  FT_BASE( FT_Error )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   143
  FT_GlyphLoader_CheckSubGlyphs( FT_GlyphLoader  loader,
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   144
                                 FT_UInt         n_subs );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   145
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   146
  /* prepare a glyph loader, i.e. empty the current glyph */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   147
  FT_BASE( void )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   148
  FT_GlyphLoader_Prepare( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   149
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   150
  /* add the current glyph to the base glyph */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   151
  FT_BASE( void )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   152
  FT_GlyphLoader_Add( FT_GlyphLoader  loader );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   153
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   154
  /* copy points from one glyph loader to another */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   155
  FT_BASE( FT_Error )
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   156
  FT_GlyphLoader_CopyPoints( FT_GlyphLoader  target,
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   157
                             FT_GlyphLoader  source );
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   158
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   159
 /* */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   160
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   161
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   162
FT_END_HEADER
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   163
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   164
#endif /* __FTGLOADR_H__ */
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   165
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   166
67f6b0d39020 Apply Bug 1543 - freetype.dll cannot be built
Shabe Razvi <shaber@symbian.org>
parents:
diff changeset
   167
/* END */