MCPcopy Create free account
hub / github.com/coldtype/st2 / modify

Function modify

scripts/example.py:5–17  ·  view source on GitHub ↗
(st2:dict, kwargs:dict, p:P, funcs)

Source from the content-addressed store, hash-verified

3
4
5def modify(st2:dict, kwargs:dict, p:P, funcs):
6 #font = Font.Find(st2.font_path)
7 #axis1_tag = list(font.variations().values())[0].get("axisTag")
8
9 oidx = kwargs.get("idx", 0)
10
11 return (Glyphwise((st2.text+"\n")*1, lambda x:
12 Style(st2.font_path, 2, **{"wdth":ez(funcs.fe(-x.i*(11-(oidx*5))), "seio", 1)}))
13 .lead(0.1)
14 .xalign()
15 .pen()
16 .unframe()
17 .centerZero())

Callers

nothing calls this directly

Calls 1

feMethod · 0.80

Tested by

no test coverage detected