mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
38daf2e2fa
commit
18aa74a33b
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
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}")
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user