|
|
|
@ -1532,26 +1532,25 @@ |
|
|
|
|
/* compute flags depending on render mode, etc. */ |
|
|
|
|
mode = metrics->root.scaler.render_mode; |
|
|
|
|
|
|
|
|
|
#if 0 /* #ifdef AF_CONFIG_OPTION_USE_WARPER */
|
|
|
|
|
if ( mode == FT_RENDER_MODE_LCD || mode == FT_RENDER_MODE_LCD_V ) |
|
|
|
|
if ( mode == FT_RENDER_MODE_LCD ) |
|
|
|
|
metrics->root.scaler.render_mode = mode = FT_RENDER_MODE_LIGHT; |
|
|
|
|
|
|
|
|
|
if ( mode == FT_RENDER_MODE_LCD_V ) |
|
|
|
|
metrics->root.scaler.render_mode = mode = FT_RENDER_MODE_NORMAL; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
scaler_flags = hints->scaler_flags; |
|
|
|
|
other_flags = 0; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* We snap the width of vertical stems for the monochrome and |
|
|
|
|
* horizontal LCD rendering targets only. |
|
|
|
|
* We snap the width of vertical stems for the monochrome target only. |
|
|
|
|
*/ |
|
|
|
|
if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD ) |
|
|
|
|
if ( mode == FT_RENDER_MODE_MONO ) |
|
|
|
|
other_flags |= AF_LATIN_HINTS_HORZ_SNAP; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* We snap the width of horizontal stems for the monochrome and |
|
|
|
|
* vertical LCD rendering targets only. |
|
|
|
|
* We snap the width of horizontal stems for the monochrome target only. |
|
|
|
|
*/ |
|
|
|
|
if ( mode == FT_RENDER_MODE_MONO || mode == FT_RENDER_MODE_LCD_V ) |
|
|
|
|
if ( mode == FT_RENDER_MODE_MONO ) |
|
|
|
|
other_flags |= AF_LATIN_HINTS_VERT_SNAP; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -1566,6 +1565,9 @@ |
|
|
|
|
/*
|
|
|
|
|
* In `light' hinting mode we disable horizontal hinting completely. |
|
|
|
|
* We also do it if the face is italic. |
|
|
|
|
* |
|
|
|
|
* However, if warping is enabled (which only works in `light' hinting |
|
|
|
|
* mode), advance widths get adjusted, too. |
|
|
|
|
*/ |
|
|
|
|
if ( mode == FT_RENDER_MODE_LIGHT || |
|
|
|
|
( face->style_flags & FT_STYLE_FLAG_ITALIC ) != 0 ) |
|
|
|
|