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

Method withFont

snap_drawing/src/snap_drawing/cpp/Text/TextLayoutBuilder.cpp:157–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157static size_t appendUniqueColor(std::vector<std::optional<Color>>& colors, const std::optional<Color>& color) {
158 for (size_t i = 0; i < colors.size(); i++) {
159 if (colors[i] == color) {
160 return i;
161 }
162 }

Callers 3

processEllipsisMethod · 0.80
buildSegmentsMethod · 0.80

Calls 1

TextLayoutSpecsClass · 0.85

Tested by

no test coverage detected