< prev index next >

src/java.desktop/share/native/libfreetype/src/pshinter/pshglob.h

Print this page


   1 /***************************************************************************/
   2 /*                                                                         */
   3 /*  pshglob.h                                                              */
   4 /*                                                                         */
   5 /*    PostScript hinter global hinting management.                         */
   6 /*                                                                         */
   7 /*  Copyright 2001-2018 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 #ifndef PSHGLOB_H_
  20 #define PSHGLOB_H_
  21 
  22 
  23 #include FT_FREETYPE_H
  24 #include FT_INTERNAL_POSTSCRIPT_HINTS_H
  25 
  26 
  27 FT_BEGIN_HEADER
  28 
  29 
  30   /*************************************************************************/
  31   /*************************************************************************/
  32   /*****                                                               *****/
  33   /*****                    GLOBAL HINTS INTERNALS                     *****/
  34   /*****                                                               *****/
  35   /*************************************************************************/
  36   /*************************************************************************/
  37 
  38 
  39   /*************************************************************************/
  40   /*                                                                       */
  41   /* @constant:                                                            */
  42   /*    PS_GLOBALS_MAX_BLUE_ZONES                                          */
  43   /*                                                                       */
  44   /* @description:                                                         */
  45   /*    The maximum number of blue zones in a font global hints structure. */
  46   /*    See @PS_Globals_BluesRec.                                          */
  47   /*                                                                       */
  48 #define PS_GLOBALS_MAX_BLUE_ZONES  16
  49 
  50 
  51   /*************************************************************************/
  52   /*                                                                       */
  53   /* @constant:                                                            */
  54   /*    PS_GLOBALS_MAX_STD_WIDTHS                                          */
  55   /*                                                                       */
  56   /* @description:                                                         */
  57   /*    The maximum number of standard and snap widths in either the       */
  58   /*    horizontal or vertical direction.  See @PS_Globals_WidthsRec.      */
  59   /*                                                                       */
  60 #define PS_GLOBALS_MAX_STD_WIDTHS  16
  61 
  62 
  63   /* standard and snap width */
  64   typedef struct  PSH_WidthRec_
  65   {
  66     FT_Int  org;
  67     FT_Pos  cur;
  68     FT_Pos  fit;
  69 
  70   } PSH_WidthRec, *PSH_Width;
  71 
  72 
  73   /* standard and snap widths table */
  74   typedef struct  PSH_WidthsRec_
  75   {
  76     FT_UInt       count;
  77     PSH_WidthRec  widths[PS_GLOBALS_MAX_STD_WIDTHS];
  78 
  79   } PSH_WidthsRec, *PSH_Widths;


   1 /****************************************************************************
   2  *
   3  * pshglob.h
   4  *
   5  *   PostScript hinter global hinting management.
   6  *
   7  * Copyright (C) 2001-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 #ifndef PSHGLOB_H_
  20 #define PSHGLOB_H_
  21 
  22 
  23 #include FT_FREETYPE_H
  24 #include FT_INTERNAL_POSTSCRIPT_HINTS_H
  25 
  26 
  27 FT_BEGIN_HEADER
  28 
  29 
  30   /*************************************************************************/
  31   /*************************************************************************/
  32   /*****                                                               *****/
  33   /*****                    GLOBAL HINTS INTERNALS                     *****/
  34   /*****                                                               *****/
  35   /*************************************************************************/
  36   /*************************************************************************/
  37 
  38 
  39   /**************************************************************************
  40    *
  41    * @constant:
  42    *   PS_GLOBALS_MAX_BLUE_ZONES
  43    *
  44    * @description:
  45    *   The maximum number of blue zones in a font global hints structure.
  46    *   See @PS_Globals_BluesRec.
  47    */
  48 #define PS_GLOBALS_MAX_BLUE_ZONES  16
  49 
  50 
  51   /**************************************************************************
  52    *
  53    * @constant:
  54    *   PS_GLOBALS_MAX_STD_WIDTHS
  55    *
  56    * @description:
  57    *   The maximum number of standard and snap widths in either the
  58    *   horizontal or vertical direction.  See @PS_Globals_WidthsRec.
  59    */
  60 #define PS_GLOBALS_MAX_STD_WIDTHS  16
  61 
  62 
  63   /* standard and snap width */
  64   typedef struct  PSH_WidthRec_
  65   {
  66     FT_Int  org;
  67     FT_Pos  cur;
  68     FT_Pos  fit;
  69 
  70   } PSH_WidthRec, *PSH_Width;
  71 
  72 
  73   /* standard and snap widths table */
  74   typedef struct  PSH_WidthsRec_
  75   {
  76     FT_UInt       count;
  77     PSH_WidthRec  widths[PS_GLOBALS_MAX_STD_WIDTHS];
  78 
  79   } PSH_WidthsRec, *PSH_Widths;


< prev index next >