forked from LiveCarta/BookConverter
Remove font=family processing
This commit is contained in:
@@ -113,13 +113,6 @@ class HTMLDocxPreprocessor:
|
||||
elif color and color in LiveCartaConfig.COLORS_MAP:
|
||||
font.attrs["style"] = f'color: {color};'
|
||||
|
||||
if face is not None:
|
||||
face = re.sub(r",[\w,\- ]*$", "", face)
|
||||
if face != LiveCartaConfig.DEFAULT_FONT_NAME and LiveCartaConfig.FONT_CORRESPONDANCE_TABLE.get(face):
|
||||
font.attrs["face"] = LiveCartaConfig.FONT_CORRESPONDANCE_TABLE[face]
|
||||
else:
|
||||
font.attrs["face"] = LiveCartaConfig.DEFAULT_FONT_NAME
|
||||
|
||||
if len(font.attrs) == 0:
|
||||
font.unwrap()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user