diff --git a/src/calibre/ebooks/oeb/stylizer.py b/src/calibre/ebooks/oeb/stylizer.py index a85df4d744..be96a8dd03 100644 --- a/src/calibre/ebooks/oeb/stylizer.py +++ b/src/calibre/ebooks/oeb/stylizer.py @@ -347,7 +347,11 @@ class Stylizer(object): style = self.flatten_style(rule.style) self.page_rule.update(style) elif isinstance(rule, CSSFontFaceRule): - self.font_face_rules.append(rule) + if rule.style.length > 1: + # Ignore the meaningless font face rules generated by the + # benighted MS Word that contain only a font-family declaration + # and nothing else + self.font_face_rules.append(rule) return results def flatten_style(self, cssstyle):