19 #include FT_FREETYPE_H 20 #include FT_TRUETYPE_TAGS_H 21 #include FT_INTERNAL_OBJECTS_H 22 #include FT_INTERNAL_STREAM_H 23 #include FT_SERVICE_SFNT_H 24 #include FT_SERVICE_TRUETYPE_GLYF_H 85 p += ( p[0] - 0xB0 ) + 2;
96 p += ( p[0] - 0xB8 ) * 2 + 3;
118 FT_Service_SFNT_Table service;
127 FT_ULong tag_i = 0, offset_i = 0, length_i = 0;
130 for ( i = 0; !error && tag_i != tag ; i++ )
131 error = service->table_info( face, i,
132 &tag_i, &offset_i, &length_i );
138 result = _tt_check_patents_in_range( stream, length_i );
147 _tt_face_check_patents(
FT_Face face )
154 FT_Service_TTGlyf service;
157 result = _tt_check_patents_in_table( face,
TTAG_fpgm );
161 result = _tt_check_patents_in_table( face,
TTAG_prep );
166 if ( service ==
NULL )
175 offset = service->get_location( face, gindex, &size );
183 if ( num_contours >= 0 )
207 if ( ( flags & ( 1 << 0 ) ) != 0 )
210 if ( ( flags & ( 1 << 3 ) ) != 0 )
212 else if ( ( flags & ( 1 << 6 ) ) != 0 )
214 else if ( ( flags & ( 1 << 7 ) ) != 0 )
217 if ( ( flags & ( 1 << 8 ) ) != 0 )
223 if ( ( flags & ( 1 << 5 ) ) == 0 )
234 result = _tt_check_patents_in_range( stream, num_ins );
256 result = _tt_face_check_patents( face );
271 #if defined( TT_CONFIG_OPTION_UNPATENTED_HINTING ) && \ 272 !defined( TT_CONFIG_OPTION_BYTECODE_INTERPRETER ) 275 result = !face->internal->ignore_unpatented_hinter;
276 face->internal->ignore_unpatented_hinter = !
value;
#define FT_READ_USHORT(var)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum GLuint GLint GLenum face
FT_Face_SetUnpatentedHinting(FT_Face face, FT_Bool value)
#define FT_STREAM_SKIP(distance)
GLsizei const GLfloat * value
#define FT_STREAM_SEEK(position)
FT_Face_CheckTrueTypePatents(FT_Face face)
#define FT_FRAME_ENTER(size)
#define FT_READ_SHORT(var)
#define FT_FACE_FIND_SERVICE(face, ptr, id)