Update book.py

This commit is contained in:
shirshasa
2020-06-26 15:44:08 +03:00
parent acfb5654ea
commit f77d90a89c

View File

@@ -305,7 +305,11 @@ class Book:
@classmethod
def convert_pt_to_px(cls, value):
return round(cls.FONT_CONVERT_RATIO * float(value))
value = int(value)
if value == cls.WORD_DEFAULT_FONT_SIZE:
return cls.LAWCARTA_DEFAULT_FONT_SIZE
else:
return value
@classmethod
def convert_font_pt_to_px(cls, style):