1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Break long line

This commit is contained in:
Guillaume Ayoub 2016-10-30 21:17:15 +01:00 committed by GitHub
parent fd69b3656d
commit ade095ad88

View File

@ -877,7 +877,8 @@ def create_layout(text, style, context, max_width):
attr = PANGO_ATTR_FONT_FEATURES_CACHE.get(features)
if attr is None:
try:
attr = pango.pango_attr_font_features_new(features.encode('ascii'))
attr = pango.pango_attr_font_features_new(
features.encode('ascii'))
except AttributeError:
LOGGER.warning(
'OpenType features are not available with Pango < 1.38')