[cairo-commit] 2 commits - src/cairo-truetype-subset.c

Adrian Johnson ajohnson at kemper.freedesktop.org
Sat Feb 3 22:28:31 PST 2007


 src/cairo-truetype-subset.c |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

New commits:
diff-tree d22ba141e6c78bf1fc3dfc02c9aaf6d725233444 (from e4a5011a2787bbb7ced338aaff2752aa23ac7892)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Feb 4 16:54:57 2007 +1030

    TrueType Subsetting: Whitespace change

diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c
index b651b6b..1df7f18 100644
--- a/src/cairo-truetype-subset.c
+++ b/src/cairo-truetype-subset.c
@@ -659,16 +659,16 @@ static const table_t truetype_tables[] =
      * The third column in this table is the order in which the
      * directory entries will appear in the table directory.
      * The table directory must be sorted in tag order. */
-    { TT_TAG_glyf, cairo_truetype_font_write_glyf_table, 3 },
-    { TT_TAG_cmap, cairo_truetype_font_write_cmap_table, 0 },
-    { TT_TAG_cvt,  cairo_truetype_font_write_generic_table, 1 },
-    { TT_TAG_fpgm, cairo_truetype_font_write_generic_table, 2 },
-    { TT_TAG_head, cairo_truetype_font_write_head_table, 4 },
-    { TT_TAG_hhea, cairo_truetype_font_write_hhea_table, 5 },
-    { TT_TAG_hmtx, cairo_truetype_font_write_hmtx_table, 6 },
-    { TT_TAG_loca, cairo_truetype_font_write_loca_table, 7 },
-    { TT_TAG_maxp, cairo_truetype_font_write_maxp_table, 8 },
-    { TT_TAG_name, cairo_truetype_font_write_generic_table, 9 },
+    { TT_TAG_glyf, cairo_truetype_font_write_glyf_table,     3 },
+    { TT_TAG_cmap, cairo_truetype_font_write_cmap_table,     0 },
+    { TT_TAG_cvt,  cairo_truetype_font_write_generic_table,  1 },
+    { TT_TAG_fpgm, cairo_truetype_font_write_generic_table,  2 },
+    { TT_TAG_head, cairo_truetype_font_write_head_table,     4 },
+    { TT_TAG_hhea, cairo_truetype_font_write_hhea_table,     5 },
+    { TT_TAG_hmtx, cairo_truetype_font_write_hmtx_table,     6 },
+    { TT_TAG_loca, cairo_truetype_font_write_loca_table,     7 },
+    { TT_TAG_maxp, cairo_truetype_font_write_maxp_table,     8 },
+    { TT_TAG_name, cairo_truetype_font_write_generic_table,  9 },
     { TT_TAG_prep, cairo_truetype_font_write_generic_table, 10 },
 };
 
diff-tree e4a5011a2787bbb7ced338aaff2752aa23ac7892 (from 7d05b9bdd328c7ec0422f45893fa0e0d6e9bb135)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Feb 4 16:51:44 2007 +1030

    TrueType Subsetting: Add comment

diff --git a/src/cairo-truetype-subset.c b/src/cairo-truetype-subset.c
index fa1b178..b651b6b 100644
--- a/src/cairo-truetype-subset.c
+++ b/src/cairo-truetype-subset.c
@@ -654,7 +654,11 @@ static const table_t truetype_tables[] =
     /* As we write out the glyf table we remap composite glyphs.
      * Remapping composite glyphs will reference the sub glyphs the
      * composite glyph is made up of.  That needs to be done first so
-     * we have all the glyphs in the subset before going further. */
+     * we have all the glyphs in the subset before going further.
+     *
+     * The third column in this table is the order in which the
+     * directory entries will appear in the table directory.
+     * The table directory must be sorted in tag order. */
     { TT_TAG_glyf, cairo_truetype_font_write_glyf_table, 3 },
     { TT_TAG_cmap, cairo_truetype_font_write_cmap_table, 0 },
     { TT_TAG_cvt,  cairo_truetype_font_write_generic_table, 1 },


More information about the cairo-commit mailing list