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

Function makeTextLayoutJSON

snap_drawing/test/src/TextLayout_Tests.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 auto font = fontManager->getFontWithNameAndSize(
77 Valdi::StringCache::getGlobal().makeString(std::string_view("Kohinoor Devanagari")), 17, 1.0, true);
78 SC_ASSERT(font.success(), font.description());
79 return font.moveValue();
80 }
81
82 Ref<Font> getSinhalaFont() {
83 auto font = fontManager->getFontWithNameAndSize(
84 Valdi::StringCache::getGlobal().makeString(std::string_view("Sinhala Sangam MN")), 17, 1.0, true);
85 SC_ASSERT(font.success(), font.description());
86 return font.moveValue();
87 }
88};
89
90class MutableInlineAttachment final : public TextInlineAttachment {

Callers 1

TESTFunction · 0.85

Calls 2

toJSONValueMethod · 0.80
TextLayoutClass · 0.50

Tested by

no test coverage detected