Newstroke: Add readable glyphs to character names
This means you don't have to keep referring to a Unicode table to know which character is where - you can see it in the list and use the symbol search system. No change to generated output (such suffixes are stripped by the fontconv.py script).
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+6604
-6604
File diff suppressed because it is too large
Load Diff
+6054
-6054
File diff suppressed because it is too large
Load Diff
+5810
-5810
File diff suppressed because it is too large
Load Diff
+5680
-5680
File diff suppressed because it is too large
Load Diff
+5588
-5588
File diff suppressed because it is too large
Load Diff
+5440
-5440
File diff suppressed because it is too large
Load Diff
+4952
-4952
File diff suppressed because it is too large
Load Diff
+1824
-1824
File diff suppressed because it is too large
Load Diff
@@ -223,7 +223,11 @@ class Glyph(NamedTuple):
|
||||
def from_sexpr(cls, sexp: Any) -> 'Glyph':
|
||||
if sexp[0] != "symbol":
|
||||
raise KicadSymError(f"Expected a symbol sexpr: {sexp}")
|
||||
name = sexp[1]
|
||||
|
||||
# If the name ends with a double underscore suffix, it's a suffix with the
|
||||
# codepoint of the glyph as a readable glyph, and we don't need it here.
|
||||
name = re.sub(r"__.*$", "", sexp[1])
|
||||
|
||||
if name[0] in Compositions.transforms:
|
||||
raise KicadSymError(f"Invalid glyph name {name}")
|
||||
|
||||
|
||||
+346
-346
File diff suppressed because it is too large
Load Diff
+192
-192
File diff suppressed because it is too large
Load Diff
+192
-192
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user