< prev index next >

src/java.desktop/share/native/libfreetype/src/autofit/afwarp.c

Print this page


   1 /****************************************************************************
   2  *
   3  * afwarp.c
   4  *
   5  *   Auto-fitter warping algorithm (body).
   6  *
   7  * Copyright (C) 2006-2019 by
   8  * David Turner, Robert Wilhelm, and Werner Lemberg.
   9  *
  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.
  15  *
  16  */
  17 
  18 
  19   /*
  20    * The idea of the warping code is to slightly scale and shift a glyph
  21    * within a single dimension so that as much of its segments are aligned
  22    * (more or less) on the grid.  To find out the optimal scaling and
  23    * shifting value, various parameter combinations are tried and scored.
  24    */
  25 
  26 #include "afwarp.h"
  27 


   1 /****************************************************************************
   2  *
   3  * afwarp.c
   4  *
   5  *   Auto-fitter warping algorithm (body).
   6  *
   7  * Copyright (C) 2006-2020 by
   8  * David Turner, Robert Wilhelm, and Werner Lemberg.
   9  *
  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.
  15  *
  16  */
  17 
  18 
  19   /*
  20    * The idea of the warping code is to slightly scale and shift a glyph
  21    * within a single dimension so that as much of its segments are aligned
  22    * (more or less) on the grid.  To find out the optimal scaling and
  23    * shifting value, various parameter combinations are tried and scored.
  24    */
  25 
  26 #include "afwarp.h"
  27 


< prev index next >