src/java.desktop/share/native/libfreetype/src/autofit/afdummy.c
changeset 54876 da3834261f0c
parent 49234 3375a8039fde
equal deleted inserted replaced
54875:bcfedddcf4ce 54876:da3834261f0c
     1 /***************************************************************************/
     1 /****************************************************************************
     2 /*                                                                         */
     2  *
     3 /*  afdummy.c                                                              */
     3  * afdummy.c
     4 /*                                                                         */
     4  *
     5 /*    Auto-fitter dummy routines to be used if no hinting should be        */
     5  *   Auto-fitter dummy routines to be used if no hinting should be
     6 /*    performed (body).                                                    */
     6  *   performed (body).
     7 /*                                                                         */
     7  *
     8 /*  Copyright 2003-2018 by                                                 */
     8  * Copyright (C) 2003-2019 by
     9 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
     9  * David Turner, Robert Wilhelm, and Werner Lemberg.
    10 /*                                                                         */
    10  *
    11 /*  This file is part of the FreeType project, and may only be used,       */
    11  * This file is part of the FreeType project, and may only be used,
    12 /*  modified, and distributed under the terms of the FreeType project      */
    12  * modified, and distributed under the terms of the FreeType project
    13 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    13  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
    14 /*  this file you indicate that you have read the license and              */
    14  * this file you indicate that you have read the license and
    15 /*  understand and accept it fully.                                        */
    15  * understand and accept it fully.
    16 /*                                                                         */
    16  *
    17 /***************************************************************************/
    17  */
    18 
    18 
    19 
    19 
    20 #include "afdummy.h"
    20 #include "afdummy.h"
    21 #include "afhints.h"
    21 #include "afhints.h"
    22 #include "aferrors.h"
    22 #include "aferrors.h"
    36     return FT_Err_Ok;
    36     return FT_Err_Ok;
    37   }
    37   }
    38 
    38 
    39 
    39 
    40   static FT_Error
    40   static FT_Error
    41   af_dummy_hints_apply( FT_UInt        glyph_index,
    41   af_dummy_hints_apply( FT_UInt          glyph_index,
    42                         AF_GlyphHints  hints,
    42                         AF_GlyphHints    hints,
    43                         FT_Outline*    outline )
    43                         FT_Outline*      outline,
       
    44                         AF_StyleMetrics  metrics )
    44   {
    45   {
    45     FT_Error  error;
    46     FT_Error  error;
    46 
    47 
    47     FT_UNUSED( glyph_index );
    48     FT_UNUSED( glyph_index );
       
    49     FT_UNUSED( metrics );
    48 
    50 
    49 
    51 
    50     error = af_glyph_hints_reload( hints, outline );
    52     error = af_glyph_hints_reload( hints, outline );
    51     if ( !error )
    53     if ( !error )
    52       af_glyph_hints_save( hints, outline );
    54       af_glyph_hints_save( hints, outline );