MCPcopy Create free account
hub / github.com/antvis/F2Native / MeasureTextWidth

Method MeasureTextWidth

core/android/BitmapCanvasContext.cpp:390–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388void BitmapCanvasContext::SetShadowBlur(float v) {}
389
390float BitmapCanvasContext::MeasureTextWidth(const std::string &text) {
391 TraceCommand("MeasureTextWidth: " + text);
392 env_ = GetJniEnvSafe();
393 F2SafeCallFloatMethod(env_, canvasContext_->obj(), measureTextWidth_, jni::StringToJavaString(env_, text).obj());
394}
395
396float BitmapCanvasContext::MeasureTextHeight(const std::string &text) {
397 TraceCommand("MeasureTextHeight: " + text);

Callers 3

RenderMethod · 0.45
PreDrawFlagContentMethod · 0.45
GetTextWidthMethod · 0.45

Calls 3

GetJniEnvSafeFunction · 0.85
StringToJavaStringFunction · 0.85
objMethod · 0.45

Tested by

no test coverage detected