Allow - in font names.

This commit is contained in:
Florian Bruhin 2014-09-18 13:25:52 +02:00
parent e33e37a344
commit b2340611f2

View File

@ -657,7 +657,7 @@ class Font(BaseType):
(?P<size>[0-9]+((\.[0-9]+)?[pP][tT]|[pP][xX]))
)\ # size/weight/style are space-separated
)* # 0-inf size/weight/style tags
(?P<family>[A-Za-z, "]*)$ # mandatory font family""", re.VERBOSE)
(?P<family>[A-Za-z, "-]*)$ # mandatory font family""", re.VERBOSE)
def validate(self, value):
if not value: