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

Method withSize

snap_drawing/src/snap_drawing/cpp/Text/Font.cpp:67–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Valdi::Result<Ref<Font>> Font::withSize(Scalar size) {
68 return withStyleAndSize(style(), size);
69}
70
71Valdi::Result<Ref<Font>> Font::withStyleAndSize(FontStyle style, Scalar size) {
72 if (_typeface->fontStyle() == style && _size == size) {

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64