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

Function modify

scripts/hobeauxborders.py:44–55  ·  view source on GitHub ↗
(st2:dict, kwargs:dict)

Source from the content-addressed store, hash-verified

42
43
44def modify(st2:dict, kwargs:dict):
45 try:
46 txt = styles[int(st2.text)]
47 except:
48 txt = st2.text
49
50 w = kwargs.get("width", 4)
51 h = kwargs.get("height", w)
52 fs = kwargs.get("fontSize", 4)
53
54 return (hobeauxBorder(Rect(w, h), txt, st2.font_path, fs)
55 .centerZero())

Callers

nothing calls this directly

Calls 1

hobeauxBorderFunction · 0.85

Tested by

no test coverage detected