Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* afglobal.h */ |
| 4 | /* */ |
| 5 | /* Auto-fitter routines to compute global hinting values */ |
| 6 | /* (specification). */ |
| 7 | /* */ |
Werner Lemberg | 90f0487 | 2011-03-28 15:41:49 +0200 | [diff] [blame] | 8 | /* Copyright 2003-2005, 2007, 2009, 2011 by */ |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 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 | |
Werner Lemberg | 90f0487 | 2011-03-28 15:41:49 +0200 | [diff] [blame] | 20 | #ifndef __AFGLOBAL_H__ |
| 21 | #define __AFGLOBAL_H__ |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 22 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 23 | |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 24 | #include "aftypes.h" |
| 25 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 26 | |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 27 | FT_BEGIN_HEADER |
| 28 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 29 | |
| 30 | /************************************************************************/ |
| 31 | /************************************************************************/ |
| 32 | /***** *****/ |
| 33 | /***** F A C E G L O B A L S *****/ |
| 34 | /***** *****/ |
| 35 | /************************************************************************/ |
| 36 | /************************************************************************/ |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 37 | |
| 38 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 39 | /* |
| 40 | * model the global hints data for a given face, decomposed into |
| 41 | * script-specific items |
| 42 | */ |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 43 | typedef struct AF_FaceGlobalsRec_* AF_FaceGlobals; |
David Turner | 8ccb455 | 2004-01-16 09:51:00 +0000 | [diff] [blame] | 44 | |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 45 | |
| 46 | FT_LOCAL( FT_Error ) |
| 47 | af_face_globals_new( FT_Face face, |
| 48 | AF_FaceGlobals *aglobals ); |
| 49 | |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 50 | FT_LOCAL( FT_Error ) |
| 51 | af_face_globals_get_metrics( AF_FaceGlobals globals, |
| 52 | FT_UInt gindex, |
David Turner | b792017 | 2007-06-11 05:37:35 +0000 | [diff] [blame] | 53 | FT_UInt options, |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 54 | AF_ScriptMetrics *ametrics ); |
| 55 | |
| 56 | FT_LOCAL( void ) |
| 57 | af_face_globals_free( AF_FaceGlobals globals ); |
| 58 | |
Werner Lemberg | 8b84c9d | 2009-04-27 19:40:35 +0200 | [diff] [blame] | 59 | FT_LOCAL_DEF( FT_Bool ) |
| 60 | af_face_globals_is_digit( AF_FaceGlobals globals, |
| 61 | FT_UInt gindex ); |
| 62 | |
| 63 | /* */ |
David Turner | 8ccb455 | 2004-01-16 09:51:00 +0000 | [diff] [blame] | 64 | |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 65 | |
David Turner | ff9d241 | 2003-11-23 21:39:51 +0000 | [diff] [blame] | 66 | FT_END_HEADER |
| 67 | |
Werner Lemberg | 90f0487 | 2011-03-28 15:41:49 +0200 | [diff] [blame] | 68 | #endif /* __AFGLOBAL_H__ */ |
Werner Lemberg | f13516c | 2005-03-03 17:09:08 +0000 | [diff] [blame] | 69 | |
| 70 | |
| 71 | /* END */ |