| # Parses a single repacking test file. The first line of the file is |
| # the name of the font to use and the remaining lines define the set of |
| # codepoints in the subset. |
| def __init__(self, test_path, definition): |
| self.test_path = test_path |
| return os.path.join (self._base_path (), "fonts", self.font_name) |
| def codepoints_string (self): |
| return ",".join (self.codepoints) |
| os.path.dirname(self.test_path), |
| def _parse(self, definition): |
| lines = definition.splitlines () |
| self.font_name = lines.pop (0) |
| self.codepoints.add (line) |