summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2010-06-15 08:29:30 +0200
committerWerner Lemberg <wl@gnu.org>2010-06-15 08:29:30 +0200
commit5d86cdce7e2f0885016d0299cef9fe2359025cf0 (patch)
tree48a904fd053f9bb34ee5f67bbc08256efcba11a3 /src
parent8d22746c9e5af80ff4304aef440986403a5072e2 (diff)
Fix Savannah bug #30108.
* src/autofit/afglobal.c (af_face_globals_compute_script_coverage): Properly mask AF_DIGIT bit in comparison.
Diffstat (limited to 'src')
-rw-r--r--src/autofit/afglobal.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/autofit/afglobal.c b/src/autofit/afglobal.c
index ac293619..afe0dac8 100644
--- a/src/autofit/afglobal.c
+++ b/src/autofit/afglobal.c
@@ -4,7 +4,7 @@
/* */
/* Auto-fitter routines to compute global hinting values (body). */
/* */
-/* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 by */
+/* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -167,8 +167,11 @@
for ( nn = 0; nn < globals->glyph_count; nn++ )
{
- if ( gscripts[nn] == AF_SCRIPT_LIST_NONE )
- gscripts[nn] = AF_SCRIPT_LIST_DEFAULT;
+ if ( ( gscripts[nn] & ~AF_DIGIT ) == AF_SCRIPT_LIST_NONE )
+ {
+ gscripts[nn] &= ~AF_SCRIPT_LIST_NONE;
+ gscripts[nn] |= AF_SCRIPT_LIST_DEFAULT;
+ }
}
}