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

Method setTextAlign

snap_drawing/src/snap_drawing/cpp/Layers/TextLayer.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 const sk_sp<SkTextBlob>& textBlob,
234 std::optional<Color> textColor) {
235 auto resolvedPaint = _textPaint;
236 if (_gradientWrapper.hasGradient()) {
237 applyGradientToTextPaint(resolvedPaint);
238 } else {
239 if (textColor) {
240 resolvedPaint.setColor(textColor.value());
241 }
242 }
243
244 drawingContext.canvas()->drawTextBlob(textBlob, 0, 0, resolvedPaint.getSkValue());

Callers 1

TextLayerClass.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected