00001 /***************************************************************************/ 00002 /* */ 00003 /* afglobal.h */ 00004 /* */ 00005 /* Auto-fitter routines to compute global hinting values */ 00006 /* (specification). */ 00007 /* */ 00008 /* Copyright 2003, 2004, 2005, 2007, 2009 by */ 00009 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 00010 /* */ 00011 /* This file is part of the FreeType project, and may only be used, */ 00012 /* modified, and distributed under the terms of the FreeType project */ 00013 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 00014 /* this file you indicate that you have read the license and */ 00015 /* understand and accept it fully. */ 00016 /* */ 00017 /***************************************************************************/ 00018 00019 00020 #ifndef __AF_GLOBAL_H__ 00021 #define __AF_GLOBAL_H__ 00022 00023 00024 #include "aftypes.h" 00025 00026 00027 FT_BEGIN_HEADER 00028 00029 00030 /************************************************************************/ 00031 /************************************************************************/ 00032 /***** *****/ 00033 /***** F A C E G L O B A L S *****/ 00034 /***** *****/ 00035 /************************************************************************/ 00036 /************************************************************************/ 00037 00038 00039 /* 00040 * model the global hints data for a given face, decomposed into 00041 * script-specific items 00042 */ 00043 typedef struct AF_FaceGlobalsRec_* AF_FaceGlobals; 00044 00045 00046 FT_LOCAL( FT_Error ) 00047 af_face_globals_new( FT_Face face, 00048 AF_FaceGlobals *aglobals ); 00049 00050 FT_LOCAL( FT_Error ) 00051 af_face_globals_get_metrics( AF_FaceGlobals globals, 00052 FT_UInt gindex, 00053 FT_UInt options, 00054 AF_ScriptMetrics *ametrics ); 00055 00056 FT_LOCAL( void ) 00057 af_face_globals_free( AF_FaceGlobals globals ); 00058 00059 FT_LOCAL_DEF( FT_Bool ) 00060 af_face_globals_is_digit( AF_FaceGlobals globals, 00061 FT_UInt gindex ); 00062 00063 /* */ 00064 00065 00066 FT_END_HEADER 00067 00068 #endif /* __AF_GLOBALS_H__ */ 00069 00070 00071 /* END */