Fine-tune the MSLIT profile.

Fix a bug in the moving of font-sizes to a "page" property.
This commit is contained in:
Marshall T. Vandegrift 2008-12-19 00:54:54 -05:00
parent 4f4a0e0c52
commit 124eb4cba9

View File

@ -112,7 +112,7 @@ class Page(object):
class Profiles(object):
PRS505 = Page(584, 754, 168.451, 12, [7.5, 9, 10, 12, 15.5, 20, 22, 24])
MSLIT = Page(652, 480, 168.451, 13, [10, 11, 13, 16, 18, 20, 22, 24])
MSLIT = Page(652, 480, 168.451, 13, [10, 11, 13, 16, 18, 20, 22, 26])
class Stylizer(object):
@ -415,7 +415,7 @@ class Style(object):
styles = self._stylizer._styles
base = styles[self._element.getparent()].fontSize
else:
base = self._styles.page.fbase
base = self._stylizer.page.fbase
if 'font-size' in self._style:
size = self._style['font-size']
result = normalize_fontsize(size, base)