fix: pretty print sets
This commit is contained in:
+10
-10
@@ -1,10 +1,10 @@
|
||||
index, length, name
|
||||
48, 10, NUMBERS
|
||||
65, 26, UPPERCASE LETTERS
|
||||
97, 26, LOWERCASE LETTERS
|
||||
1, 15, SYMBOLS
|
||||
24, 4, ARROWS
|
||||
179, 40, BARS
|
||||
224, 16, GREEK
|
||||
128, 28, ACCENTS
|
||||
176, 3, SHADES
|
||||
index,length,name
|
||||
48,10,NUMBERS
|
||||
65,26,UPPERCASE LETTERS
|
||||
97,26,LOWERCASE LETTERS
|
||||
1,15,SYMBOLS
|
||||
24,4,ARROWS
|
||||
179,40,BARS
|
||||
224,16,GREEK
|
||||
128,28,ACCENTS
|
||||
176,3,SHADES
|
||||
|
||||
|
@@ -16,9 +16,7 @@ class GlyphSet:
|
||||
line = f"{pretty_hex(self.index)}, {self.length}"
|
||||
if not last:
|
||||
line += ","
|
||||
else:
|
||||
line += " "
|
||||
return line + f" // {self.name}"
|
||||
return line.ljust(12) + f"// {self.name}"
|
||||
|
||||
@classmethod
|
||||
def export_glsl(cls, name: str, sets: list[GlyphSet], indent: int = 4) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user