1 /***************************************************************************/
5 /* TrueTypeGX/AAT common definition for mort table (specification). */
7 /* Copyright 2004, 2005 by suzuki toshiya, Masatake YAMATO, Red Hat K.K., */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
18 /***************************************************************************/
20 /* gxvalid is derived from both gxlayout module and otvalid module. */
21 /* Development of gxlayout is supported by the Information-technology */
22 /* Promotion Agency(IPA), Japan. */
24 /***************************************************************************/
33 #include FT_SFNT_NAMES_H
36 typedef struct GXV_mort_featureRec_
38 FT_UShort featureType;
39 FT_UShort featureSetting;
41 FT_ULong disableFlags;
43 } GXV_mort_featureRec, *GXV_mort_feature;
45 #define GXV_MORT_FEATURE_OFF {0, 1, 0x00000000UL, 0x00000000UL}
47 #define IS_GXV_MORT_FEATURE_OFF( f ) \
48 ( (f).featureType == 0 || \
49 (f).featureSetting == 1 || \
50 (f).enableFlags == 0x00000000UL || \
51 (f).disableFlags == 0x00000000UL )
55 gxv_mort_featurearray_validate( FT_Bytes table,
57 FT_ULong nFeatureFlags,
58 GXV_Validator gxvalid );
61 gxv_mort_coverage_validate( FT_UShort coverage,
62 GXV_Validator gxvalid );
65 gxv_mort_subtable_type0_validate( FT_Bytes table,
67 GXV_Validator gxvalid );
70 gxv_mort_subtable_type1_validate( FT_Bytes table,
72 GXV_Validator gxvalid );
75 gxv_mort_subtable_type2_validate( FT_Bytes table,
77 GXV_Validator gxvalid );
80 gxv_mort_subtable_type4_validate( FT_Bytes table,
82 GXV_Validator gxvalid );
85 gxv_mort_subtable_type5_validate( FT_Bytes table,
87 GXV_Validator gxvalid );
90 #endif /* __GXVMORT_H__ */