f13516c832
* src/autofit/*: Add copyright messages. Formatting. * src/autofit/afhints.c (af_glyph_hints_done): Don't use `AF_Dimension' but `int' for loop counter. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Don't use `AF_Dimension' but `int' for loop counter. Use proper enumeration value for `render_mode'. (af_latin_metrics_scale_dim): Don't shadow variables. (af_latin_hints_compute_segments): Use proper cast for `major_dir' and `segment_dir'. (af_latin_align_linked_edge, af_latin_hint_edges): Fix arguments of call to `af_latin_compute_stem_width'. (af_latin_hints_apply): Don't use `AF_Dimension' but `int' for loop counter. * src/base/ftdbgmem.c (ft_mem_table_get_source, FT_DumpMemory): Use proper cast for memory allocation. * src/cff/cffdrivr.c (cff_get_kerning): Use proper cast for initialization of `sfnt'. * src/sfnt/sfdriver.c: Include `ttkern.h'. * src/sfnt/ttkern.c (tt_face_get_kerning): Don't shadow variables. * src/truetype/ttgload.c: Include `ttpload.h'. * src/truetype/ttpload.c (tt_face_load_loca) [FT_OPTIMIZE_MEMORY]: Remove redundant variable.
67 lines
2.5 KiB
C
67 lines
2.5 KiB
C
/***************************************************************************/
|
|
/* */
|
|
/* afglobal.h */
|
|
/* */
|
|
/* Auto-fitter routines to compute global hinting values */
|
|
/* (specification). */
|
|
/* */
|
|
/* Copyright 2003, 2004, 2005 by */
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
/* */
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
/* this file you indicate that you have read the license and */
|
|
/* understand and accept it fully. */
|
|
/* */
|
|
/***************************************************************************/
|
|
|
|
|
|
#ifndef __AF_GLOBAL_H__
|
|
#define __AF_GLOBAL_H__
|
|
|
|
|
|
#include "aftypes.h"
|
|
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
/************************************************************************/
|
|
/************************************************************************/
|
|
/***** *****/
|
|
/***** F A C E G L O B A L S *****/
|
|
/***** *****/
|
|
/************************************************************************/
|
|
/************************************************************************/
|
|
|
|
|
|
/*
|
|
* model the global hints data for a given face, decomposed into
|
|
* script-specific items
|
|
*/
|
|
typedef struct AF_FaceGlobalsRec_* AF_FaceGlobals;
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
|
af_face_globals_new( FT_Face face,
|
|
AF_FaceGlobals *aglobals );
|
|
|
|
FT_LOCAL( FT_Error )
|
|
af_face_globals_get_metrics( AF_FaceGlobals globals,
|
|
FT_UInt gindex,
|
|
AF_ScriptMetrics *ametrics );
|
|
|
|
FT_LOCAL( void )
|
|
af_face_globals_free( AF_FaceGlobals globals );
|
|
|
|
/* */
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* __AF_GLOBALS_H__ */
|
|
|
|
|
|
/* END */
|