FastLED 3.10.8
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_NO_EXCEPT
Definition shared_ptr.h:423

References fl::FL_NO_EXCEPT, and fl::adl_barrier::make_shared().

+ Here is the call graph for this function: