|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
/* */ |
|
|
|
|
/* Auto-fitter hinting routines for CJK script (body). */ |
|
|
|
|
/* */ |
|
|
|
|
/* Copyright 2006, 2007, 2008, 2009, 2010 by */ |
|
|
|
|
/* Copyright 2006-2011 by */ |
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
|
|
|
|
/* */ |
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */ |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
#include "aferrors.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef AF_USE_WARPER |
|
|
|
|
#ifdef AF_CONFIG_OPTION_USE_WARPER |
|
|
|
|
#include "afwarp.h" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -623,7 +623,7 @@ |
|
|
|
|
/* compute flags depending on render mode, etc. */ |
|
|
|
|
mode = metrics->root.scaler.render_mode; |
|
|
|
|
|
|
|
|
|
#ifdef AF_USE_WARPER |
|
|
|
|
#ifdef AF_CONFIG_OPTION_USE_WARPER |
|
|
|
|
if ( mode == FT_RENDER_MODE_LCD || mode == FT_RENDER_MODE_LCD_V ) |
|
|
|
|
metrics->root.scaler.render_mode = mode = FT_RENDER_MODE_NORMAL; |
|
|
|
|
#endif |
|
|
|
@ -1397,7 +1397,7 @@ |
|
|
|
|
( dim == AF_DIMENSION_VERT && AF_HINTS_DO_VERTICAL( hints ) ) ) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
#ifdef AF_USE_WARPER |
|
|
|
|
#ifdef AF_CONFIG_OPTION_USE_WARPER |
|
|
|
|
if ( dim == AF_DIMENSION_HORZ && |
|
|
|
|
metrics->root.scaler.render_mode == FT_RENDER_MODE_NORMAL ) |
|
|
|
|
{ |
|
|
|
@ -1410,7 +1410,7 @@ |
|
|
|
|
af_glyph_hints_scale_dim( hints, dim, scale, delta ); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif /* AF_USE_WARPER */ |
|
|
|
|
#endif /* AF_CONFIG_OPTION_USE_WARPER */ |
|
|
|
|
|
|
|
|
|
af_cjk_hint_edges( hints, (AF_Dimension)dim ); |
|
|
|
|
af_cjk_align_edge_points( hints, (AF_Dimension)dim ); |
|
|
|
|