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

Method block

ST2/typesetter.py:355–362  ·  view source on GitHub ↗
(_p)

Source from the content-addressed store, hash-verified

353 from ST2.importer import C
354
355 def block(_p):
356 return (C.P(_p.ambit(
357 tx=not self.st2.block_horizontal_metrics,
358 ty=not self.st2.block_vertical_metrics)
359 .inset(self.st2.block_inset_x, self.st2.block_inset_y))
360 #.skew(0.5, 0)
361 #.translate(0.2, 0)
362 .cond(self.st2.block_diff, lambda p: p.difference(_p.copy())))
363
364 if self.st2.combine_glyphs:
365 p = block(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected