MCPcopy Create free account
hub / github.com/crawl/crawl / string_width

Method string_width

crawl-ref/source/fontwrapper-ft.cc:507–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507unsigned int FTFontWrapper::string_width(const formatted_string &str, bool logical)
508{
509 string temp = str.tostring();
510 return string_width(temp.c_str(), logical);
511}
512
513unsigned int FTFontWrapper::string_width(const char *text, bool logical)
514{

Callers 9

cursortoMethod · 0.80
do_layoutMethod · 0.80
_calc_columnsMethod · 0.80
pack_buffersMethod · 0.80
wrap_text_to_sizeMethod · 0.80
_renderMethod · 0.80
_get_preferred_sizeMethod · 0.80
loading_screen_openFunction · 0.80
SpellLibraryMenuMethod · 0.80

Calls 4

next_glyphFunction · 0.85
utf8towcFunction · 0.85
tostringMethod · 0.80
device_to_logicalMethod · 0.45

Tested by

no test coverage detected