< prev index next >

src/java.desktop/share/native/libfreetype/src/autofit/aflatin.h

Print this page


   1 /***************************************************************************/
   2 /*                                                                         */
   3 /*  aflatin.h                                                              */
   4 /*                                                                         */
   5 /*    Auto-fitter hinting routines for latin writing system                */
   6 /*    (specification).                                                     */
   7 /*                                                                         */
   8 /*  Copyright 2003-2018 by                                                 */
   9 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
  10 /*                                                                         */
  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      */
  13 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
  14 /*  this file you indicate that you have read the license and              */
  15 /*  understand and accept it fully.                                        */
  16 /*                                                                         */
  17 /***************************************************************************/
  18 
  19 
  20 #ifndef AFLATIN_H_
  21 #define AFLATIN_H_
  22 
  23 #include "afhints.h"
  24 
  25 
  26 FT_BEGIN_HEADER
  27 
  28   /* the `latin' writing system */
  29 
  30   AF_DECLARE_WRITING_SYSTEM_CLASS( af_latin_writing_system_class )
  31 
  32 
  33   /* constants are given with units_per_em == 2048 in mind */
  34 #define AF_LATIN_CONSTANT( metrics, c )                                      \
  35   ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
  36 
  37 


   1 /****************************************************************************
   2  *
   3  * aflatin.h
   4  *
   5  *   Auto-fitter hinting routines for latin writing system
   6  *   (specification).
   7  *
   8  * Copyright (C) 2003-2019 by
   9  * David Turner, Robert Wilhelm, and Werner Lemberg.
  10  *
  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
  13  * license, LICENSE.TXT.  By continuing to use, modify, or distribute
  14  * this file you indicate that you have read the license and
  15  * understand and accept it fully.
  16  *
  17  */
  18 
  19 
  20 #ifndef AFLATIN_H_
  21 #define AFLATIN_H_
  22 
  23 #include "afhints.h"
  24 
  25 
  26 FT_BEGIN_HEADER
  27 
  28   /* the `latin' writing system */
  29 
  30   AF_DECLARE_WRITING_SYSTEM_CLASS( af_latin_writing_system_class )
  31 
  32 
  33   /* constants are given with units_per_em == 2048 in mind */
  34 #define AF_LATIN_CONSTANT( metrics, c )                                      \
  35   ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
  36 
  37 


< prev index next >