FastLED 3.9.15
Loading...
Searching...
No Matches

◆ load() [2/2]

fl::shared_ptr< Font > fl::Font::load ( fl::span< const u8 > fontData,
i32 fontIndex )
static

Definition at line 183 of file truetype.cpp.hpp.

183 {
184 auto impl = fl::make_shared<FontImpl>(fontData, fontIndex);
185 if (!impl->isValid()) {
186 return nullptr;
187 }
188 return impl;
189}
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References fl::make_shared().

+ Here is the call graph for this function: