1 |
|
/***************************************************************************/ |
2 |
|
/* */ |
3 |
|
/* afloader.c */ |
4 |
|
/* */ |
5 |
|
/* Auto-fitter glyph loading routines (body). */ |
6 |
|
/* */ |
7 |
|
/* Copyright 2003, 2004, 2005 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 |
#include "afloader.h" |
#include "afloader.h" |
20 |
#include "afhints.h" |
#include "afhints.h" |
21 |
#include "afglobal.h" |
#include "afglobal.h" |
185 |
{ |
{ |
186 |
FT_Pos old_advance, old_rsb, old_lsb, new_lsb; |
FT_Pos old_advance, old_rsb, old_lsb, new_lsb; |
187 |
FT_Pos pp1x_uh, pp2x_uh; |
FT_Pos pp1x_uh, pp2x_uh; |
188 |
AF_AxisHints axis = &hints->axis[ AF_DIMENSION_HORZ ]; |
AF_AxisHints axis = &hints->axis[AF_DIMENSION_HORZ]; |
189 |
AF_Edge edge1 = axis->edges; /* leftmost edge */ |
AF_Edge edge1 = axis->edges; /* leftmost edge */ |
190 |
AF_Edge edge2 = edge1 + |
AF_Edge edge2 = edge1 + |
191 |
axis->num_edges - 1; /* rightmost edge */ |
axis->num_edges - 1; /* rightmost edge */ |