~ubuntu-branches/ubuntu/jaunty/luatex/jaunty

« back to all changes in this revision

Viewing changes to src/texk/web2c/luatexdir/font/writettf.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2007-12-10 10:24:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071210102434-9w9ljypghznwb4dy
Tags: 0.20.1-1
* new upstreams, add the announcements with changes to the debian dir
* call build.sh.linux with bash, not with sh, otherwise building breaks
  (thanks to Pascal de Bruijn <pmjdebruijn@gmail.com> from Ubuntu for
  letting us know) [np]
* update libpoppler patch
* change the texdoclua patch to use the new os.tmpdir with a template of
  /tmp/luatex.XXXXXX
* bump standards version to 3.7.3, no changes necessary
* convert copyright file to utf-8

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define ttf_offset      fb_offset
32
32
#define ttf_seek_outbuf fb_seek
33
33
 
34
 
// #define INFILE ttf_file
 
34
                                         /* #define INFILE ttf_file*/
35
35
 
36
36
unsigned char *ttf_buffer = NULL;
37
37
integer ttf_size = 0;
232
232
dirtab_entry *ttf_seek_tab (const char *name, TTF_LONG offset)
233
233
{
234
234
    dirtab_entry *tab = ttf_name_lookup (name, true);
235
 
    //xfseek (INFILE, tab->offset + offset, SEEK_SET, cur_file_name);
 
235
    /*xfseek (INFILE, tab->offset + offset, SEEK_SET, cur_file_name);*/
236
236
        ttf_curbyte = tab->offset + offset;
237
237
    return tab;
238
238
}
493
493
        nnames = get_ushort (); /* some fonts have this value different from nglyphs */
494
494
        for (glyph = glyph_tab; glyph - glyph_tab < nnames; glyph++)
495
495
            glyph->name_index = get_ushort ();
496
 
        //length = tab->length - (xftell (INFILE, cur_file_name) - tab->offset);
 
496
        /*length = tab->length - (xftell (INFILE, cur_file_name) - tab->offset);*/
497
497
        length = tab->length - (ttf_curbyte - tab->offset);
498
498
        glyph_name_buf = xtalloc (length, char);
499
499
        for (p = glyph_name_buf; p - glyph_name_buf < length;) {
578
578
    /* not found, have to read it */
579
579
    ttf_seek_tab ("cmap", TTF_USHORT_SIZE);     /* skip the table vesrion number (=0) */
580
580
    ncmapsubtabs = get_ushort ();
581
 
        //    cmap_offset = xftell (INFILE, cur_file_name) - 2 * TTF_USHORT_SIZE;
 
581
        /*    cmap_offset = xftell (INFILE, cur_file_name) - 2 * TTF_USHORT_SIZE;*/
582
582
        cmap_offset = ttf_curbyte - 2 * TTF_USHORT_SIZE;
583
583
    cmap_tab = xtalloc (ncmapsubtabs, cmap_entry);
584
584
    for (i = 0; i < ncmapsubtabs; ++i) {
1433
1433
  for (i = tab->length; i > 0; i--)
1434
1434
    copy_char ();
1435
1435
  xfree (dir_tab);
1436
 
  //    ttf_close ();
 
1436
  /*    ttf_close ();*/
1437
1437
  if (tracefilenames)
1438
1438
    tex_printf (">>");
1439
1439
}