forked from LiveCarta/BookConverter
Update book.py
This commit is contained in:
@@ -305,7 +305,11 @@ class Book:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def convert_pt_to_px(cls, value):
|
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
|
@classmethod
|
||||||
def convert_font_pt_to_px(cls, style):
|
def convert_font_pt_to_px(cls, style):
|
||||||
|
|||||||
Reference in New Issue
Block a user