/[freetype]/freetype2/src/gxvalid/gxvmorx0.c
ViewVC logotype

Diff of /freetype2/src/gxvalid/gxvmorx0.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mpsuzuki, Wed Aug 24 04:31:31 2005 UTC revision 1.2 by wl, Thu Sep 1 07:33:03 2005 UTC
# Line 17  Line 17 
17  /***************************************************************************/  /***************************************************************************/
18    
19  /***************************************************************************/  /***************************************************************************/
20    /*                                                                         */
21  /* gxvalid is derived from both gxlayout module and otvalid module.        */  /* gxvalid is derived from both gxlayout module and otvalid module.        */
22  /* Development of gxlayout was support of Information-technology Promotion */  /* Development of gxlayout is supported by the Information-technology      */
23  /* Agency(IPA), Japan.                                                     */  /* Promotion Agency(IPA), Japan.                                           */
24    /*                                                                         */
25  /***************************************************************************/  /***************************************************************************/
26    
27    
28  #include "gxvmorx.h"  #include "gxvmorx.h"
29    
30    
31    /*************************************************************************/    /*************************************************************************/
32    /*                                                                       */    /*                                                                       */
33    /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */    /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */
# Line 35  Line 39 
39    
40    
41    static void    static void
42    gxv_morx_subtable_type0_entry_validate( FT_UShort      state,    gxv_morx_subtable_type0_entry_validate(
43                                            FT_UShort      flags,      FT_UShort                        state,
44                                            GXV_XStateTable_GlyphOffsetDesc      FT_UShort                        flags,
45                                                           glyphOffset,      GXV_XStateTable_GlyphOffsetDesc  glyphOffset,
46                                            FT_Bytes       table,      FT_Bytes                         table,
47                                            FT_Bytes       limit,      FT_Bytes                         limit,
48                                            GXV_Validator  valid )      GXV_Validator                    valid )
49    {    {
50      FT_UShort markFirst;      FT_UShort  markFirst;
51      FT_UShort dontAdvance;      FT_UShort  dontAdvance;
52      FT_UShort markLast;      FT_UShort  markLast;
53      FT_UShort reserved;      FT_UShort  reserved;
54      FT_UShort verb;      FT_UShort  verb;
55    
56        FT_UNUSED( state );
57        FT_UNUSED( glyphOffset );
58        FT_UNUSED( table );
59        FT_UNUSED( limit );
60    
61    
62      markFirst   =   flags / 0x8000;      markFirst   =   flags / 0x8000U;
63      dontAdvance = ( flags & 0x4000 ) / 0x4000;      dontAdvance = ( flags & 0x4000 ) / 0x4000;
64      markLast    = ( flags & 0x2000 ) / 0x2000;      markLast    = ( flags & 0x2000 ) / 0x2000;
65      reserved    =   flags & 0x1FF0;      reserved    =   flags & 0x1FF0;
# Line 63  Line 72 
72      }      }
73    }    }
74    
75    
76    static void    static void
77    gxv_morx_subtable_type0_validate( FT_Bytes       table,    gxv_morx_subtable_type0_validate( FT_Bytes       table,
78                                      FT_Bytes       limit,                                      FT_Bytes       limit,
# Line 70  Line 80 
80    {    {
81      FT_Bytes  p = table;      FT_Bytes  p = table;
82    
83      GXV_NAME_ENTER( "morx chain subtable type0 (Indic-Script Rearrangement)" );  
84        GXV_NAME_ENTER(
85          "morx chain subtable type0 (Indic-Script Rearrangement)" );
86    
87      GXV_LIMIT_CHECK( GXV_STATETABLE_HEADER_SIZE );      GXV_LIMIT_CHECK( GXV_STATETABLE_HEADER_SIZE );
88    
# Line 78  Line 90 
90      valid->xstatetable.optdata_load_func     = NULL;      valid->xstatetable.optdata_load_func     = NULL;
91      valid->xstatetable.subtable_setup_func   = NULL;      valid->xstatetable.subtable_setup_func   = NULL;
92      valid->xstatetable.entry_glyphoffset_fmt = GXV_GLYPHOFFSET_NONE;      valid->xstatetable.entry_glyphoffset_fmt = GXV_GLYPHOFFSET_NONE;
93      valid->xstatetable.entry_validate_func   = gxv_morx_subtable_type0_entry_validate;      valid->xstatetable.entry_validate_func =
94          gxv_morx_subtable_type0_entry_validate;
95    
96      gxv_XStateTable_validate( p, limit, valid );      gxv_XStateTable_validate( p, limit, valid );
97    
98      GXV_EXIT;      GXV_EXIT;
99    }    }
100    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26