Lines Matching refs:Hints
1389 hints = self._hints
1391 if hints.has_hint:
1392 self.program = self.program[hints.last_hint:]
1398 if hints.has_hintmask:
1434 class Hints(object):
1438 # Index to start at to drop all hints
1440 # Index up to which we know more hints are possible. Only
1444 # 0: after dropping hints, this charstring is empty
1445 # 1: after dropping hints, there may be more hints continuing after this
1446 # 2: no more hints possible after this charstring
1460 charString._hints = self.Hints()
1464 hints = charString._hints
1466 if hints.has_hint or hints.has_hintmask:
1469 if hints.status != 2:
1471 for i in range(hints.last_checked, len(charString.program) - 1):
1473 hints.status = 2
1476 hints.status = 1 # There's *something* here
1477 hints.last_checked = len(charString.program)
1480 assert hints.__dict__ == old_hints.__dict__
1513 hints = cs._hints
1514 hints.has_hintmask = True
1515 if hints.status != 2 and hints.has_hint:
1517 for i in range(hints.last_checked, index - 1):
1519 hints.status = 2
1521 if hints.status != 2:
1523 hints.last_hint = index + 1
1524 hints.status = 0
1525 hints.last_checked = index + 1
1529 hints = cs._hints
1530 hints.has_hint = True
1531 hints.last_hint = index
1532 hints.last_checked = index
1536 hints = cs._hints
1540 if hints.status != 2:
1541 hints.has_hint = True
1542 hints.last_checked = index
1543 hints.status = subr_hints.status
1546 hints.last_hint = index
1548 hints.last_hint = index - 2 # Leave the subr call in
1552 # Best to ignore the hints I suppose...
1556 hints.status = max(hints.status, subr_hints.status)
1557 if hints.status != 2:
1560 for i in range(hints.last_checked, index - 1):
1562 hints.status = 2
1564 hints.last_checked = index
1565 if hints.status != 2:
1568 hints.last_hint = index
1570 hints.last_hint = index - 2 # Leave the subr call in
1594 # Drop hints if not needed
1610 # - It's trickier... A hintmask right after hints and a few numbers