author | MattD <mattd@symbian.org> |
Mon, 08 Feb 2010 15:30:13 +0000 | |
changeset 1 | deeea84a7639 |
permissions | -rw-r--r-- |
1
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
1 |
/***************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
2 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
3 |
/* ftvalid.h */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
4 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
5 |
/* FreeType validation support (specification). */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
6 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
7 |
/* Copyright 2004 by */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
8 |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
9 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
10 |
/* This file is part of the FreeType project, and may only be used, */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
11 |
/* modified, and distributed under the terms of the FreeType project */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
12 |
/* license, FTL.TXT. By continuing to use, modify, or distribute */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
13 |
/* this file you indicate that you have read the license and */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
14 |
/* understand and accept it fully. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
15 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
16 |
/***************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
17 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
18 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
19 |
#ifndef __FTVALID_H__ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
20 |
#define __FTVALID_H__ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
21 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
22 |
#include <ft2build.h> |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
23 |
#include FT_CONFIG_STANDARD_LIBRARY_H /* for ft_setjmp and ft_longjmp */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
24 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
25 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
26 |
FT_BEGIN_HEADER |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
27 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
28 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
29 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
30 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
31 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
32 |
/**** ****/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
33 |
/**** ****/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
34 |
/**** V A L I D A T I O N ****/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
35 |
/**** ****/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
36 |
/**** ****/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
37 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
38 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
39 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
40 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
41 |
/* handle to a validation object */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
42 |
typedef struct FT_ValidatorRec_* FT_Validator; |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
43 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
44 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
45 |
/*************************************************************************/ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
46 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
47 |
/* There are three distinct validation levels defined here: */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
48 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
49 |
/* FT_VALIDATE_DEFAULT :: */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
50 |
/* A table that passes this validation level can be used reliably by */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
51 |
/* FreeType. It generally means that all offsets have been checked to */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
52 |
/* prevent out-of-bound reads, that array counts are correct, etc. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
53 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
54 |
/* FT_VALIDATE_TIGHT :: */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
55 |
/* A table that passes this validation level can be used reliably and */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
56 |
/* doesn't contain invalid data. For example, a charmap table that */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
57 |
/* returns invalid glyph indices will not pass, even though it can */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
58 |
/* be used with FreeType in default mode (the library will simply */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
59 |
/* return an error later when trying to load the glyph). */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
60 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
61 |
/* It also checks that fields which must be a multiple of 2, 4, or 8, */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
62 |
/* don't have incorrect values, etc. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
63 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
64 |
/* FT_VALIDATE_PARANOID :: */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
65 |
/* Only for font debugging. Checks that a table follows the */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
66 |
/* specification by 100%. Very few fonts will be able to pass this */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
67 |
/* level anyway but it can be useful for certain tools like font */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
68 |
/* editors/converters. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
69 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
70 |
typedef enum FT_ValidationLevel_ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
71 |
{ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
72 |
FT_VALIDATE_DEFAULT = 0, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
73 |
FT_VALIDATE_TIGHT, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
74 |
FT_VALIDATE_PARANOID |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
75 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
76 |
} FT_ValidationLevel; |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
77 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
78 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
79 |
/* validator structure */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
80 |
typedef struct FT_ValidatorRec_ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
81 |
{ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
82 |
const FT_Byte* base; /* address of table in memory */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
83 |
const FT_Byte* limit; /* `base' + sizeof(table) in memory */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
84 |
FT_ValidationLevel level; /* validation level */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
85 |
FT_Error error; /* error returned. 0 means success */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
86 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
87 |
ft_jmp_buf jump_buffer; /* used for exception handling */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
88 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
89 |
} FT_ValidatorRec; |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
90 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
91 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
92 |
#define FT_VALIDATOR( x ) ((FT_Validator)( x )) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
93 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
94 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
95 |
FT_BASE( void ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
96 |
ft_validator_init( FT_Validator valid, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
97 |
const FT_Byte* base, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
98 |
const FT_Byte* limit, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
99 |
FT_ValidationLevel level ); |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
100 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
101 |
FT_BASE( FT_Int ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
102 |
ft_validator_run( FT_Validator valid ); |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
103 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
104 |
/* Sets the error field in a validator, then calls `longjmp' to return */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
105 |
/* to high-level caller. Using `setjmp/longjmp' avoids many stupid */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
106 |
/* error checks within the validation routines. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
107 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
108 |
FT_BASE( void ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
109 |
ft_validator_error( FT_Validator valid, |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
110 |
FT_Error error ); |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
111 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
112 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
113 |
/* Calls ft_validate_error. Assumes that the `valid' local variable */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
114 |
/* holds a pointer to the current validator object. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
115 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
116 |
/* Use preprocessor prescan to pass FT_ERR_PREFIX. */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
117 |
/* */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
118 |
#define FT_INVALID( _prefix, _error ) FT_INVALID_( _prefix, _error ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
119 |
#define FT_INVALID_( _prefix, _error ) \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
120 |
ft_validator_error( valid, _prefix ## _error ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
121 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
122 |
/* called when a broken table is detected */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
123 |
#define FT_INVALID_TOO_SHORT \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
124 |
FT_INVALID( FT_ERR_PREFIX, Invalid_Table ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
125 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
126 |
/* called when an invalid offset is detected */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
127 |
#define FT_INVALID_OFFSET \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
128 |
FT_INVALID( FT_ERR_PREFIX, Invalid_Offset ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
129 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
130 |
/* called when an invalid format/value is detected */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
131 |
#define FT_INVALID_FORMAT \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
132 |
FT_INVALID( FT_ERR_PREFIX, Invalid_Table ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
133 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
134 |
/* called when an invalid glyph index is detected */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
135 |
#define FT_INVALID_GLYPH_ID \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
136 |
FT_INVALID( FT_ERR_PREFIX, Invalid_Glyph_Index ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
137 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
138 |
/* called when an invalid field value is detected */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
139 |
#define FT_INVALID_DATA \ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
140 |
FT_INVALID( FT_ERR_PREFIX, Invalid_Table ) |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
141 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
142 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
143 |
FT_END_HEADER |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
144 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
145 |
#endif /* __FTVALID_H__ */ |
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
146 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
147 |
|
deeea84a7639
Bug 1543 - Freetype.dll cannot be built. Added Freetype back in (same fix as in SFL repo)
MattD <mattd@symbian.org>
parents:
diff
changeset
|
148 |
/* END */ |