MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / glyph

Method glyph

src/graphics/text.rs:119–121  ·  view source on GitHub ↗
(&self, ch: char)

Source from the content-addressed store, hash-verified

117 }
118
119 pub fn glyph(&self, ch: char) -> Option<&SpriteFontGlyph> {
120 self.cache.get(&ch)
121 }
122
123 pub fn line_height(&self) -> f32 {
124 self.ascent - self.descent + self.line_gap

Callers 1

text_segmentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected