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

« back to all changes in this revision

Viewing changes to otftotfm/glyphfilter.cc

  • Committer: Bazaar Package Importer
  • Author(s): C.M. Connelly
  • Date: 2009-04-06 16:49:02 UTC
  • mfrom: (1.2.8 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090406164902-9mu14sman9wo3112
Tags: 2.78-1
* New upstream release.
* t1lint: Report warnings when a font charstring command has too many
  arguments.
* Font library changes: correctly implement binary search in a couple
  places -- unexpected sizes could lead to overflow and bad behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
GlyphFilter::add_pattern(const String& pattern, int ptype, ErrorHandler* errh)
98
98
{
99
99
    _sorted = false;
100
 
    
 
100
 
101
101
    const char* begin = pattern.begin();
102
102
    const char* end = pattern.end();
103
103
    while (begin < end && isspace((unsigned char) *begin))
122
122
            if (UnicodeProperty::parse_property(pattern.substring(begin + 1, word - 1), p.u.uniprop.value, p.u.uniprop.mask))
123
123
                _patterns.push_back(p);
124
124
            else if (errh)
125
 
                errh->error("unknown Unicode property '%s'", pattern.c_str());
 
125
                errh->error("unknown Unicode property %<%s%>", pattern.c_str());
126
126
            goto next_clause;
127
127
        }
128
128
 
149
149
        p.data = D_NAME;
150
150
        p.pattern = pattern.substring(begin, word);
151
151
        _patterns.push_back(p);
152
 
        
 
152
 
153
153
        // move to next clause
154
154
      next_clause:
155
155
        for (begin = word; begin < end && isspace((unsigned char) *begin); begin++)