From 1121081ad07246adbdf18dcdc476f3b69e9ccf86 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 25 Sep 2013 11:27:04 +0530 Subject: [PATCH] ... --- src/calibre/gui2/lrf_renderer/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/lrf_renderer/text.py b/src/calibre/gui2/lrf_renderer/text.py index 0696cdd851..2724ca117b 100644 --- a/src/calibre/gui2/lrf_renderer/text.py +++ b/src/calibre/gui2/lrf_renderer/text.py @@ -6,7 +6,7 @@ from PyQt4.QtCore import Qt, QRectF, QString from PyQt4.QtGui import QFont, QColor, QPixmap, QGraphicsPixmapItem, \ QGraphicsItem, QFontMetrics, QPen, QBrush, QGraphicsRectItem -from calibre.ebooks.lrf.fonts import FONT_MAP +from calibre.ebooks.lrf.fonts import LIBERATION_FONT_MAP from calibre.ebooks.BeautifulSoup import Tag from calibre.ebooks.hyphenate import hyphenate_word @@ -59,7 +59,7 @@ class FontLoader(object): self.face_map = font_map def font(self, text_style): - device_font = text_style.fontfacename in FONT_MAP + device_font = text_style.fontfacename in LIBERATION_FONT_MAP try: if device_font: face = self.font_map[text_style.fontfacename]