kopia lustrzana https://github.com/inkstitch/inkstitch
not all guide positions are int (#3578)
linux libertine x_height is a float not an integer.pull/3583/head
rodzic
5904100b59
commit
909cae8f1b
|
@ -62,10 +62,10 @@ class LetteringSvgFontToLayers(InkstitchExtension):
|
|||
emsize = fontface.get("units-per-em")
|
||||
|
||||
# TODO: should we guarantee that <svg:font horiz-adv-x> equals <svg:font-face units-per-em> ?
|
||||
caps = int(fontface.get("cap-height", 0))
|
||||
xheight = int(fontface.get("x-height", 0))
|
||||
ascender = int(fontface.get("ascent", 0))
|
||||
descender = int(fontface.get("descent", 0))
|
||||
caps = float(fontface.get("cap-height", 0))
|
||||
xheight = float(fontface.get("x-height", 0))
|
||||
ascender = float(fontface.get("ascent", 0))
|
||||
descender = float(fontface.get("descent", 0))
|
||||
|
||||
self.svg.set("width", emsize)
|
||||
self.svg.namedview.add_guide(guidebase, True, "baseline")
|
||||
|
|
Ładowanie…
Reference in New Issue