MCPcopy Create free account
hub / github.com/FastLED/FastLED / measureString

Method measureString

src/fl/font/truetype.cpp.hpp:236–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236float FontRenderer::measureString(const char* str) const {
237 if (!str || !mFont) return 0.0f;
238 return measureString(fl::span<const char>(str, strlen(str)));
239}
240
241float FontRenderer::measureString(fl::span<const char> str) const {
242 if (str.empty() || !mFont) return 0.0f;

Callers

nothing calls this directly

Calls 3

strlenFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected