Edit

kc3-lang/freetype/src/base/ftpatent.c

Branch :

  • Show log

    Commit

  • Author : Nikolaus Waxweiler
    Date : 2016-01-28 14:11:14
    Hash : 1d8d0b4e
    Message : Remove unpatented hinter (3/3). * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_UNPATENTED_HINTING): Remove. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove `ignore_unpatented_hinter' field. Update users. (FT_DEBUG_HOOK_UNPATENTED_HINTING): Remove. Update users. * include/freetype/internal/tttypes.h (TT_FaceRec): Remove `unpatented_hinting' field. Update users. * src/base/ftpatent.c (_tt_check_patents_in_range, _tt_check_patents_in_table, _tt_face_check_patents): Remove. (FT_Face_CheckTrueTypePatents, FT_Face_SetUnpatentedHinting): Replace code with dummies. * src/truetype/ttobjs.c (tt_face_init): Remove now defunct code. * src/truetype/ttobjs.h (TT_GraphicsState): Remove `both_x_axis' field.

  • src/base/ftpatent.c
  • /***************************************************************************/
    /*                                                                         */
    /*  ftpatent.c                                                             */
    /*                                                                         */
    /*    FreeType API for checking patented TrueType bytecode instructions    */
    /*    (body).  Obsolete, retained for backwards compatibility.             */
    /*                                                                         */
    /*  Copyright 2007-2016 by                                                 */
    /*  David Turner.                                                          */
    /*                                                                         */
    /*  This file is part of the FreeType project, and may only be used,       */
    /*  modified, and distributed under the terms of the FreeType project      */
    /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    /*  this file you indicate that you have read the license and              */
    /*  understand and accept it fully.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    #include <ft2build.h>
    #include FT_FREETYPE_H
    #include FT_TRUETYPE_TAGS_H
    #include FT_INTERNAL_OBJECTS_H
    #include FT_INTERNAL_STREAM_H
    #include FT_SERVICE_SFNT_H
    #include FT_SERVICE_TRUETYPE_GLYF_H
    
    
      /* documentation is in freetype.h */
    
      FT_EXPORT_DEF( FT_Bool )
      FT_Face_CheckTrueTypePatents( FT_Face  face )
      {
        FT_UNUSED( face );
    
        return FALSE;
      }
    
    
      /* documentation is in freetype.h */
    
      FT_EXPORT_DEF( FT_Bool )
      FT_Face_SetUnpatentedHinting( FT_Face  face,
                                    FT_Bool  value )
      {
        FT_UNUSED( face );
        FT_UNUSED( value );
    
        return FALSE;
      }
    
    /* END */