MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / bounds

Method bounds

src/SB/Core/x/xFont.cpp:617–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617basic_rect<F32> xfont::bounds(char c) const
618{
619 font_data& fd = active_fonts[id];
620 U32 char_index = fd.char_index[c];
621
622 if (fd.char_index[c] == 0xFF)
623 {
624 // non-matching: scheduling
625 return basic_rect<F32>::m_Null;
626 }
627
628 basic_rect<F32> r = fd.bounds[char_index];
629 r.scale(width, height);
630 return r;
631}
632
633basic_rect<F32> xfont::bounds(const char* text) const
634{

Callers 5

render_timerFunction · 0.80
updateMethod · 0.80
parse_next_text_jotFunction · 0.80
parse_tag_open_curlyFunction · 0.80
parse_tag_newlineFunction · 0.80

Calls 1

boundsFunction · 0.85

Tested by

no test coverage detected