MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / centered

Method centered

assets/generate-language-tiles.py:143–145  ·  view source on GitHub ↗
(self, text, size, weight, center_x, baseline_y, track=TRACK)

Source from the content-addressed store, hash-verified

141 return sink.getCommands()
142
143 def centered(self, text, size, weight, center_x, baseline_y, track=TRACK):
144 w = self.measure(text, size, weight, track)
145 return self.outline(text, size, weight, center_x - w / 2, baseline_y, track)
146
147
148def si_glyph(slug):

Callers 2

mainFunction · 0.95
custom_glyphFunction · 0.80

Calls 2

measureMethod · 0.95
outlineMethod · 0.95

Tested by

no test coverage detected