Remove font=family processing

This commit is contained in:
Kiryl
2022-06-28 16:38:21 +03:00
parent eab4f0130a
commit f01f6ad778
3 changed files with 23 additions and 41 deletions

View File

@@ -23,20 +23,6 @@ class LiveCartaConfig:
FONT_CONVERT_RATIO = LIVECARTA_DEFAULT_FONT_SIZE /\
WORD_DEFAULT_FONT_SIZE
FONT_CORRESPONDANCE_TABLE = {
"Arial": "arial,helvetica,sans-serif",
"Comic Sans MS": "comic sans ms,cursive",
"Courier New": "courier new,courier,monospace",
"Georgia": "georgia,serif",
"Lucida Sans Unicode": "lucida sans unicode,lucida grande,sans-serif",
"Tahoma": "tahoma,geneva,sans-serif",
"Times New Roman": "times new roman,times,serif",
"Trebuchet MS": "trebuchet ms,helvetica,sans-serif",
"Verdana": "verdana,geneva,sans-serif",
"monospace": "courier new,courier,monospace",
"sans-serif": "arial,helvetica,sans-serif"
}
COLORS_MAP = {
"#ffff00": "yellow",
"#00ff00": "darkYellow",
@@ -116,8 +102,8 @@ class LiveCartaConfig:
}
WRAP_TAGS_WITH_TABLE = {
("div",) :["width", "border", "bgcolor"],
("section", "blockquote",) : ("class", r"feature[1234]"),
("div",): ["width", "border", "bgcolor"],
("section", "blockquote",): ("class", r"feature[1234]"),
}
"""('what to replace', 'parent tag', 'child tag')"""