MCPcopy Create free account
hub / github.com/Tencent/tgfx / SetFallbackTypefaces

Method SetFallbackTypefaces

src/layers/TextLayer.cpp:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81static std::vector<std::shared_ptr<Typeface>> FallbackTypefaces = {};
82
83void TextLayer::SetFallbackTypefaces(std::vector<std::shared_ptr<Typeface>> typefaces) {
84 std::lock_guard<std::mutex> lock(TypefaceMutex);
85 FallbackTypefaces = std::move(typefaces);
86}
87
88std::vector<std::shared_ptr<Typeface>> GetFallbackTypefaces() {
89 std::lock_guard<std::mutex> lock(TypefaceMutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected