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

Method make

snap_drawing/src/snap_drawing/cpp/Text/TextShaper.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace snap::drawing {
13
14Ref<TextShaper> TextShaper::make(bool enableCache) {
15 auto strategy = enableCache ? WordCachingTextShaperStrategy::PrioritizeCorrectness :
16 WordCachingTextShaperStrategy::DisableCache;
17 auto harfbuzzShaper = Valdi::makeShared<TextShaperHarfbuzz>();
18 return Valdi::makeShared<WordCachingTextShaper>(harfbuzzShaper, strategy);
19}
20
21} // namespace snap::drawing

Callers 1

buildMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected