~ubuntu-branches/ubuntu/lucid/lcdf-typetools/lucid

« back to all changes in this revision

Viewing changes to libefont/otfgsub.cc

  • Committer: Bazaar Package Importer
  • Author(s): C.M. Connelly
  • Date: 2010-01-20 01:19:30 UTC
  • mfrom: (1.2.11 upstream) (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100120011930-l2gn28dmguk4zgb5
Tags: 2.82-1
* New upstream release.
* otftotfm: Fixes em and ex measurements with TrueType fonts (from 2.81).
* otftotfm: Fixes handling of multiply encoded glyphs (glyphs in more
  than one slot).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
/* otfgsub.{cc,hh} -- OpenType GSUB table
4
4
 *
5
 
 * Copyright (c) 2003-2007 Eddie Kohler
 
5
 * Copyright (c) 2003-2010 Eddie Kohler
6
6
 *
7
7
 * This program is free software; you can redistribute it and/or modify it
8
8
 * under the terms of the GNU General Public License as published by the Free
354
354
}
355
355
 
356
356
bool
357
 
Substitution::all_in_glyphs(Vector<Glyph> &v) const
 
357
Substitution::all_in_glyphs(Vector<Glyph> &gs) const
358
358
{
359
359
    bool ok = true;
 
360
    gs.clear();
360
361
    if (_left_is != T_NONE)
361
 
        ok &= extract_glyphs(_left, _left_is, v, false);
362
 
    ok &= extract_glyphs(_in, _in_is, v, false);
 
362
        ok &= extract_glyphs(_left, _left_is, gs, false);
 
363
    ok &= extract_glyphs(_in, _in_is, gs, false);
363
364
    if (_right_is != T_NONE)
364
 
        ok &= extract_glyphs(_right, _right_is, v, false);
 
365
        ok &= extract_glyphs(_right, _right_is, gs, false);
365
366
    return ok;
366
367
}
367
368