summaryrefslogtreecommitdiff
path: root/src/autofit/afloader.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2005-03-03 17:09:08 +0000
committerWerner Lemberg <wl@gnu.org>2005-03-03 17:09:08 +0000
commit72393bce3b9e7b9c1501db2b2087ead0f4036a48 (patch)
tree207bc15d65a0073e22a219a77604b959d3935907 /src/autofit/afloader.c
parentab0eb13fc299cbd04292281ba96dedb1c2ade071 (diff)
downloadfreetype2-72393bce3b9e7b9c1501db2b2087ead0f4036a48.tar.gz
Various fixes for C and C++ compiling.
* 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.
Diffstat (limited to 'src/autofit/afloader.c')
-rw-r--r--src/autofit/afloader.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 791fffb2a..c02df648f 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -1,3 +1,21 @@
+/***************************************************************************/
+/* */
+/* afloader.c */
+/* */
+/* Auto-fitter glyph loading routines (body). */
+/* */
+/* 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. */
+/* */
+/***************************************************************************/
+
+
#include "afloader.h"
#include "afhints.h"
#include "afglobal.h"
@@ -167,7 +185,7 @@
{
FT_Pos old_advance, old_rsb, old_lsb, new_lsb;
FT_Pos pp1x_uh, pp2x_uh;
- AF_AxisHints axis = &hints->axis[ AF_DIMENSION_HORZ ];
+ AF_AxisHints axis = &hints->axis[AF_DIMENSION_HORZ];
AF_Edge edge1 = axis->edges; /* leftmost edge */
AF_Edge edge2 = edge1 +
axis->num_edges - 1; /* rightmost edge */