* src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): Remove compiler warning. Formatting.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
diff --git a/ChangeLog b/ChangeLog
index 4eb8ae3..28f4bdc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,21 +1,27 @@
+2007-01-02 Werner Lemberg <wl@gnu.org>
+
+ * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate):
+ Remove compiler warning.
+
2007-01-02 David Turner <david@freetype.org>
- * src/sfnt/sfobjs.c: adding documentation comment
+ * src/sfnt/sfobjs.c: Add documentation comment.
2006-12-31 Masatake YAMATO <jet@gyve.org>
- * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): New function.
- Checks uniqueness of the gid pairs.
+ * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): New
+ function.
+ Check uniqueness of the gid pairs.
(gxv_kern_subtable_fmt0_validate): Move some code to
`gxv_kern_subtable_fmt0_pairs_validate'.
2006-12-22 David Turner <david@freetype.org>
- * src/autofit/aflatin.c, src/truetype/ttgload.c: removing compiler
- warnings
+ * src/autofit/aflatin.c, src/truetype/ttgload.c: Remove compiler
+ warnings.
- * builds/win32/visualc/freetype.vcproj: adding _CRT_SECURE_NO_DEPRECATE
- to avoid deprecation warnings with Visual C++ 8
+ * builds/win32/visualc/freetype.vcproj: Add _CRT_SECURE_NO_DEPRECATE
+ to avoid deprecation warnings with Visual C++ 8.
2006-12-16 Anders Kaseorg <anders@kaseorg.com>
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index ddb0a2c..5b48afb 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -797,11 +797,13 @@
p = first->prev;
if ( p->v < first_v )
- segment->height = (FT_Short)(segment->height + (( first_v - p->v ) >> 1));
+ segment->height = (FT_Short)( segment->height +
+ ( ( first_v - p->v ) >> 1 ) );
p = last->next;
if ( p->v > last_v )
- segment->height = (FT_Short)(segment->height + (( p->v - last_v ) >> 1));
+ segment->height = (FT_Short)( segment->height +
+ ( ( p->v - last_v ) >> 1 ) );
}
else
{
@@ -810,11 +812,13 @@
p = first->prev;
if ( p->v > first_v )
- segment->height = (FT_Short)(segment->height + (( p->v - first_v ) >> 1));
+ segment->height = (FT_Short)( segment->height +
+ ( ( p->v - first_v ) >> 1 ) );
p = last->next;
if ( p->v < last_v )
- segment->height = (FT_Short)(segment->height + (( last_v - p->v ) >> 1));
+ segment->height = (FT_Short)( segment->height +
+ ( ( last_v - p->v ) >> 1 ) );
}
}
}
diff --git a/src/gxvalid/gxvkern.c b/src/gxvalid/gxvkern.c
index c29e7c7..bfb405f 100644
--- a/src/gxvalid/gxvkern.c
+++ b/src/gxvalid/gxvkern.c
@@ -4,7 +4,8 @@
/* */
/* TrueTypeGX/AAT kern table validation (body). */
/* */
-/* Copyright 2004, 2005 by suzuki toshiya, Masatake YAMATO, Red Hat K.K., */
+/* Copyright 2004, 2005, 2006, 2007 */
+/* by suzuki toshiya, Masatake YAMATO, Red Hat K.K., */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -117,8 +118,10 @@
FT_UShort last_gid_left = 0;
FT_UShort last_gid_right = 0;
+ FT_UNUSED( limit );
- GXV_NAME_ENTER( "kern format 0 paris" );
+
+ GXV_NAME_ENTER( "kern format 0 pairs" );
for ( i = 0; i < nPairs; i++ )
{
@@ -135,7 +138,7 @@
gid_right = FT_NEXT_USHORT( p );
gxv_glyphid_validate( gid_right, valid );
- /* A pair of left and right gid must be uniqe and be sorted. */
+ /* Pairs of left and right GIDs must be unique and sorted. */
GXV_TRACE(( "left gid = %u, right gid = %u\n", gid_left, gid_right ));
if ( gid_left == last_gid_left )
{
@@ -170,7 +173,7 @@
FT_UShort unitSize;
- GXV_NAME_ENTER( "kern subtable format0" );
+ GXV_NAME_ENTER( "kern subtable format 0" );
unitSize = 2 + 2 + 2;
nPairs = 0;
@@ -300,7 +303,7 @@
GXV_kern_fmt1_StateOptRec vt_rec;
- GXV_NAME_ENTER( "kern subtable format1" );
+ GXV_NAME_ENTER( "kern subtable format 1" );
valid->statetable.optdata =
&vt_rec;
@@ -402,7 +405,7 @@
FT_UShort rightOffsetTable;
- GXV_NAME_ENTER( "kern subtable format2" );
+ GXV_NAME_ENTER( "kern subtable format 2" );
GXV_ODTECT_INIT( odtect );
fmt2_rec.odtect = odtect;
@@ -459,7 +462,7 @@
FT_Byte flags;
- GXV_NAME_ENTER( "kern subtable format3" );
+ GXV_NAME_ENTER( "kern subtable format 3" );
GXV_LIMIT_CHECK( 2 + 1 + 1 + 1 + 1 );
glyphCount = FT_NEXT_USHORT( p );
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 97b6ed3..c4a8c8d 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -229,11 +229,11 @@
break;
case TT_MS_ID_UCS_4:
- /* apparently, when this value is found in a name table entry,
- * it is documented as "Full Unicode repertoire". Experience
- * with the MsGothic shipped with Windows Vista shows that this is
- * really UTF-16 names (the real UCS-4 is only used for charmaps)
- */
+ /* Apparently, if this value is found in a name table entry, it is */
+ /* documented as `full Unicode repertoire'. Experience with the */
+ /* MsGothic font shipped with Windows Vista shows that this really */
+ /* means UTF-16 encoded names (UCS-4 values are only used within */
+ /* charmaps). */
convert = tt_name_entry_ascii_from_utf16;
break;
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 9d1aa25..8ddc692 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -644,7 +644,7 @@
loader->exec->pts = *zone;
debug = FT_BOOL( !( loader->load_flags & FT_LOAD_NO_SCALE ) &&
- ((TT_Size)loader->size)->debug );
+ ((TT_Size)loader->size)->debug );
error = TT_Run_Context( loader->exec, debug );
if ( error && loader->exec->pedantic_hinting )