diff options
author | Matthias Kramm <kramm@quiss.org> | 2010-11-23 10:17:38 -0800 |
---|---|---|
committer | Matthias Kramm <kramm@quiss.org> | 2010-11-23 10:17:38 -0800 |
commit | caf80e316ed6d5fce36afef12d6019db6b49fb7f (patch) | |
tree | 979163e4284b009f150f2c4300b1de1710435dd8 /lib/devices | |
parent | e5b1c80a7dc373e0b2701732fb2fe73468279689 (diff) |
removed kerning table from gfxfont
Diffstat (limited to 'lib/devices')
-rw-r--r-- | lib/devices/record.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/devices/record.c b/lib/devices/record.c index 5bb5f175..f58f7e99 100644 --- a/lib/devices/record.c +++ b/lib/devices/record.c @@ -406,12 +406,6 @@ static void dumpFont(writer_t*w, state_t*state, gfxfont_t*font) for(t=0;t<font->max_unicode;t++) { writer_writeU32(w, font->unicode2glyph[t]); } - writer_writeU32(w, font->kerning_size); - for(t=0;t<font->kerning_size;t++) { - writer_writeU32(w, font->kerning[t].c1); - writer_writeU32(w, font->kerning[t].c2); - writer_writeU32(w, font->kerning[t].advance); - } #ifdef STATS state->size_lines = old_size_lines; state->size_fonts += w->pos - oldpos; @@ -441,15 +435,6 @@ static gfxfont_t*readFont(reader_t*r, state_t*state) for(t=0;t<font->max_unicode;t++) { font->unicode2glyph[t] = reader_readU32(r); } - font->kerning_size = reader_readU32(r); - if(font->kerning_size) { - font->kerning = malloc(sizeof(gfxkerning_t)*font->kerning_size); - for(t=0;t<font->kerning_size;t++) { - font->kerning[t].c1 = reader_readU32(r); - font->kerning[t].c2 = reader_readU32(r); - font->kerning[t].advance = reader_readU32(r); - } - } return font; } |