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:
parent
fd69b3656d
commit
ade095ad88
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user