Commit ea340123 authored by Etienne Nadji's avatar Etienne Nadji
Browse files

Better kerning for character style

	modifié :         styles.py
parent 2bc76d58
......@@ -939,7 +939,7 @@ class CharacterStyle(StyleAbstract):
StyleAbstract._quick_setup(self, kwargs)
self.font["space_width"] = dimensions.Dim(1, "pcdecim")
self.font["kerning"] = dimensions.Dim(0, "pc")
self.font["kerning"] = None
def fromxml(self, xml):
is_character = StyleAbstract.fromxml(self, xml, True)
......@@ -983,8 +983,7 @@ class CharacterStyle(StyleAbstract):
xml.attrib["wordTrack"] = self.font["space_width"].toxmlstr()
if self.font["kerning"] is not None:
if self.font["kerning"].value:
xml.attrib["KERN"] = self.font["kerning"].toxmlstr(True)
xml.attrib["KERN"] = self.font["kerning"].toxmlstr(True)
#--- Scales -----------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment