mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion pipeline: Fix conversion of cm/mm to pts. Fixes use of cm as a length unit when converting to MOBI.
This commit is contained in:
parent
cf18272419
commit
f1a0c539ed
@ -206,9 +206,9 @@ def unit_convert(value, base, font, dpi):
|
||||
elif unit == 'pc':
|
||||
result = value * 12.0
|
||||
elif unit == 'mm':
|
||||
result = value * 0.04
|
||||
result = value * 2.8346456693
|
||||
elif unit == 'cm':
|
||||
result = value * 0.40
|
||||
result = value * 28.346456693
|
||||
return result
|
||||
|
||||
def generate_masthead(title, output_path=None, width=600, height=60):
|
||||
|
Loading…
x
Reference in New Issue
Block a user