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

Method getCompatibleFont

snap_drawing/src/snap_drawing/cpp/Text/FontManager.cpp:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267Valdi::Result<Valdi::Ref<Font>> FontManager::getCompatibleFont(const Ref<Font>& originalFont,
268 const char** bcp47,
269 size_t bcp47Count,
270 Character character) {
271 return getCompatibleFont(originalFont->typeface()->familyName(),
272 originalFont->style(),
273 originalFont->size(),
274 originalFont->scale(),
275 bcp47,
276 bcp47Count,
277 character);
278}
279
280Ref<FontFamily> FontManager::resolveFallbackFontFamilyForCharacter(std::unique_lock<Valdi::Mutex>& /*lock*/,
281 Character character) {

Calls 4

scaleMethod · 0.80
endMethod · 0.65
sizeMethod · 0.45
findMethod · 0.45

Tested by 1