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

Method cap_height

assets/generate-language-tiles.py:126–128  ·  view source on GitHub ↗
(self, size, weight)

Source from the content-addressed store, hash-verified

124 return w - track
125
126 def cap_height(self, size, weight):
127 ft, _, _, _ = self._font(weight)
128 return getattr(ft["OS/2"], "sCapHeight", 700) * size / ft["head"].unitsPerEm
129
130 def outline(self, text, size, weight, start_x, baseline_y, track=TRACK):
131 ft, cmap, glyphs, hmtx = self._font(weight)

Callers 2

mainFunction · 0.95
custom_glyphFunction · 0.80

Calls 1

_fontMethod · 0.95

Tested by

no test coverage detected