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

Method withScale

snap_drawing/src/snap_drawing/cpp/Text/Font.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52const FontStyle& Font::style() const {
53 return _typeface->fontStyle();
54}
55
56Scalar Font::size() const {
57 return _size;
58}
59
60Scalar Font::resolvedSize() const {
61 return _font.getSize();
62}
63
64Ref<Font> Font::withScale(double scale) {

Callers 2

TESTFunction · 0.80

Calls 1

strongSmallRefFunction · 0.85

Tested by 1

TESTFunction · 0.64