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