summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2009-04-04 07:51:45 +0200
committerWerner Lemberg <wl@gnu.org>2009-04-04 07:51:45 +0200
commitb47b97db84efd059cbe0079efb976addcfccc6a2 (patch)
tree3b457ec4c5b04c19dad9403c6390855fc7eef160
parentca98f8cc2b091a7d2ab3782d944491dc0939acf0 (diff)
downloadfreetype2-b47b97db84efd059cbe0079efb976addcfccc6a2.tar.gz
Fix comment.
OpenType 1.6 now mentions that data in the `loca' table must be ordered.
-rw-r--r--src/truetype/ttpload.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/truetype/ttpload.c b/src/truetype/ttpload.c
index dc538fb08..5ef8b996a 100644
--- a/src/truetype/ttpload.c
+++ b/src/truetype/ttpload.c
@@ -4,7 +4,7 @@
/* */
/* TrueType-specific tables loader (body). */
/* */
-/* Copyright 1996-2001, 2002, 2004, 2005, 2006, 2007, 2008 by */
+/* Copyright 1996-2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -58,7 +58,6 @@
/* <Return> */
/* FreeType error code. 0 means success. */
/* */
-
FT_LOCAL_DEF( FT_Error )
tt_face_load_loca( TT_Face face,
FT_Stream stream )
@@ -204,12 +203,11 @@
}
}
- /* It isn't mentioned explicitly that the `loca' table must be */
- /* ordered, but implicitly it refers to the length of an entry */
- /* as the difference between the current and the next position. */
- /* Anyway, there do exist (malformed) fonts which don't obey */
- /* this rule, so we are only able to provide an upper bound for */
- /* the size. */
+ /* The `loca' table must be ordered; it refers to the length of */
+ /* an entry as the difference between the current and the next */
+ /* position. However, there do exist (malformed) fonts which */
+ /* don't obey this rule, so we are only able to provide an */
+ /* upper bound for the size. */
/* */
/* We get (intentionally) a wrong, non-zero result in case the */
/* `glyf' table is missing. */