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

Method registerTypeface

valdi/src/valdi/snap_drawing/SnapDrawingViewManager.cpp:581–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void SnapDrawingViewManager::registerTypeface(const Valdi::StringBox& fontFamily,
582 FontStyle fontStyle,
583 bool canUseAsFallback,
584 const Valdi::BytesView& data) {
585 _resources->getFontManager()->registerTypeface(fontFamily, fontStyle, canUseAsFallback, data);
586}
587
588const Ref<Resources>& SnapDrawingViewManager::getResources() const {
589 return _resources;

Callers 2

doRegisterFontFunction · 0.45

Calls 1

getFontManagerMethod · 0.45

Tested by

no test coverage detected