diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/texfont.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/texfont.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/texfont.c b/Build/source/texk/web2c/luatexdir/font/texfont.c index c75d5ecaa2a..0a6563b3404 100644 --- a/Build/source/texk/web2c/luatexdir/font/texfont.c +++ b/Build/source/texk/web2c/luatexdir/font/texfont.c @@ -34,8 +34,10 @@ #include "ptexlib.h" #include "luatex-api.h" +#define noDEBUG + static const char _svn_version[] = - "$Id: texfont.c 2321 2009-04-18 09:17:13Z hhenkel $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.2/source/texk/web2c/luatexdir/font/texfont.c $"; + "$Id: texfont.c 2448 2009-06-08 07:43:50Z taco $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.3/source/texk/web2c/luatexdir/font/texfont.c $"; #define proper_char_index(c) (c<=font_ec(f) && c>=font_bc(f)) #define dxfree(a,b) { xfree(a); a = b ; } @@ -146,11 +148,12 @@ charinfo *get_charinfo(internal_font_number f, integer c) if (!glyph) { glyph = ++font_tables[f]->charinfo_count; - if (glyph>=(unsigned)font_tables[f]->charinfo_size) { - font_bytes += (16*sizeof(charinfo)); + if (glyph >= (unsigned) font_tables[f]->charinfo_size) { + font_bytes += (16 * sizeof(charinfo)); do_realloc(font_tables[f]->charinfo, (glyph + 16), charinfo); - memset(&(font_tables[f]->charinfo[glyph]), 0, (16*sizeof(charinfo))); - font_tables[f]->charinfo_size += 16; + memset(&(font_tables[f]->charinfo[glyph]), 0, + (16 * sizeof(charinfo))); + font_tables[f]->charinfo_size += 16; } font_tables[f]->charinfo[glyph].ef = 1000; /* init */ set_sa_item(font_tables[f]->characters, c, glyph, 1); /* 1= global */ @@ -178,7 +181,7 @@ void set_charinfo(internal_font_number f, integer c, charinfo * ci) { sa_tree_item glyph; if (proper_char_index(c)) { - glyph = get_sa_item(font_tables[f]->characters, c); + glyph = get_sa_item(font_tables[f]->characters, c); if (glyph) { font_tables[f]->charinfo[glyph] = *ci; } else { @@ -1225,6 +1228,11 @@ boolean font_shareable(internal_font_number f, internal_font_number k) &&same_font_name(k, pdf_font_blink(f)))) { ret = 1; } +#ifdef DEBUG + printf("font_shareable(%d:%s:%s,%d:%s:%s): => %d\n", + f, font_filename(f), font_fullname(f), + k, font_filename(k), font_fullname(k), ret); +#endif } return ret; } |