[justify-demo] Fix crash if font has no variation axis
This commit is contained in:
parent
ab249fd24b
commit
5c334b9686
|
@ -186,9 +186,10 @@ class Line:
|
||||||
if not ret:
|
if not ret:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self._variation = hb.variation_t()
|
if tag:
|
||||||
self._variation.tag = tag
|
self._variation = hb.variation_t()
|
||||||
self._variation.value = value
|
self._variation.tag = tag
|
||||||
|
self._variation.value = value
|
||||||
self._words = makewords(buf, self._font, text)
|
self._words = makewords(buf, self._font, text)
|
||||||
|
|
||||||
if shrink and advance > self._target_advance + wiggle:
|
if shrink and advance > self._target_advance + wiggle:
|
||||||
|
|
Loading…
Reference in New Issue