예제 #1
0
void PairPosLookup2::apply (OpenTypeText::iterator begin, OpenTypeText::iterator &current,
							OpenTypeText::iterator scopeEnd, OpenTypeText::iterator end) const
{
	if (coverage->isCovered ((*current)->getGlyphId(), NULL)) {
		UShort index1 = class1->getClass ((*current)->getGlyphId());
		OpenTypeText::iterator second = current;
		second ++;
		if (second != scopeEnd) {
			UShort index2 = class2->getClass ((*second)->getGlyphId());
			const Values &v = (pairSets [index1]) [index2];
			v.v1->apply (current);
			v.v2->apply (second);
			if (!secondEmpty)
				// Skip next character for this lookup
				current ++;
		}
	}
	current ++;
}