MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getDefaultFont

Method getDefaultFont

snap_drawing/src/snap_drawing/cpp/Text/FontManager.cpp:373–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 return getFontWithTypefaceAndSize(lock, typeface.value(), fontSize, scale, respectDynamicType);
372}
373
374Valdi::Result<Valdi::Ref<Font>> FontManager::getFontForName(const String& fontName, double scale) {
375 auto components = fontName.split(' ', true);
376
377 if (components.size() == 1) {
378 auto guard = lock();
379 if (components[0] == "title1") {

Callers 7

preprocess_fontMethod · 0.80
TextLayoutEmojiTextFunction · 0.80
TextLayoutArabicTextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected