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

Method FontImpl

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

Source from the content-addressed store, hash-verified

17class FontImpl : public Font {
18public:
19 FontImpl(fl::span<const u8> fontData, i32 fontIndex = 0)
20 : mFontData(fontData.begin(), fontData.end()) {
21 mValid = third_party::truetype::stbtt_InitFont(
22 &mFontInfo,
23 mFontData.data(),
24 third_party::truetype::stbtt_GetFontOffsetForIndex(mFontData.data(), fontIndex)
25 ) != 0;
26 }
27
28 ~FontImpl() FL_NOEXCEPT override = default;
29

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected