/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/ |
H A D | text_line_base_test.cpp | 139 double ascent = 0; in HWTEST_F() local 142 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 41.936081); in HWTEST_F() 143 EXPECT_FLOAT_EQ(ascent, 14.848000); in HWTEST_F() 167 double ascent = 0; in HWTEST_F() local 170 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F() 171 EXPECT_FLOAT_EQ(ascent, 0.0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | text_line_base_test.cpp | 136 double ascent = 0; in HWTEST_F() local 139 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 49.377823); in HWTEST_F() 140 EXPECT_FLOAT_EQ(ascent, 12.992); in HWTEST_F() 161 double ascent = 0; in HWTEST_F() local 164 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F() 165 EXPECT_FLOAT_EQ(ascent, 0.0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/ |
H A D | run_impl.cpp | 119 float RunImpl::GetTypographicBounds(float* ascent, float* descent, float* leading) const in GetTypographicBounds() argument 121 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in GetTypographicBounds() 124 *ascent = 0.0; in GetTypographicBounds() 129 return run_->GetTypographicBounds(ascent, descent, leading); in GetTypographicBounds()
|
H A D | text_line_base.cpp | 86 double TextLineBaseImpl::GetTypographicBounds(double* ascent, double* descent, double* leading) const
in GetTypographicBounds() argument 91 return textlinebase_->GetTypographicBounds(ascent, descent, leading);
in GetTypographicBounds()
|
H A D | text_line_base.h | 39 double GetTypographicBounds(double* ascent, double* descent, double* leading) const override;
|
H A D | run_impl.h | 39 float GetTypographicBounds(float* ascent, float* descent, float* leading) const override;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/impl/ |
H A D | run_impl.cpp | 122 float RunImpl::GetTypographicBounds(float* ascent, float* descent, float* leading) const in GetTypographicBounds() argument 124 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in GetTypographicBounds() 127 *ascent = 0.0; in GetTypographicBounds() 132 return runBase_->getTypographicBounds(ascent, descent, leading); in GetTypographicBounds()
|
H A D | text_line_impl.cpp | 86 double TextLineImpl::GetTypographicBounds(double* ascent, double* descent, double* leading) const
in GetTypographicBounds() argument 92 return textLineBase_->getTypographicBounds(ascent, descent, leading);
in GetTypographicBounds()
|
H A D | text_line_impl.h | 46 double GetTypographicBounds(double* ascent, double* descent, double* leading) const override;
|
H A D | run_impl.h | 42 float GetTypographicBounds(float* ascent, float* descent, float* leading) const override;
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_text_run_test.cpp | 170 float ascent = 0.0; in HWTEST_F() local 173 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F() 174 EXPECT_TRUE(ascent > 0); in HWTEST_F() 268 float ascent = 0.0; in HWTEST_F() local 271 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F() 272 EXPECT_TRUE(ascent > 0); in HWTEST_F() 515 float ascent = 0.0; in HWTEST_F() local 518 float width = OH_Drawing_GetRunTypographicBounds(nullptr, &ascent, &descent, &leading); in HWTEST_F() 519 EXPECT_EQ(ascent, 0.0); in HWTEST_F()
|
H A D | drawing_text_line_test.cpp | 414 double ascent = 0.0; in HWTEST_F() local 421 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 422 EXPECT_GT(ascent, 0); in HWTEST_F() 446 double ascent = 0.0; in HWTEST_F() local 453 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 454 EXPECT_GT(ascent, 0); in HWTEST_F() 479 double ascent = 0.0; in HWTEST_F() local 486 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 487 EXPECT_GT(ascent, 0); in HWTEST_F() 510 double ascent in HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_run.cpp | 95 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading) in OH_Drawing_GetRunTypographicBounds() argument 97 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in OH_Drawing_GetRunTypographicBounds() 100 *ascent = 0; in OH_Drawing_GetRunTypographicBounds() 105 return reinterpret_cast<AdapterTxt::RunImpl*>(run)->GetTypographicBounds(ascent, descent, leading); in OH_Drawing_GetRunTypographicBounds()
|
H A D | drawing_text_line.cpp | 292 double OH_Drawing_TextLineGetTypographicBounds(OH_Drawing_TextLine* line, double* ascent, double* descent, in OH_Drawing_TextLineGetTypographicBounds() argument 295 if (line == nullptr || ascent == nullptr || descent == nullptr || leading == nullptr) { in OH_Drawing_TextLineGetTypographicBounds() 304 return lineImpl->GetTypographicBounds(ascent, descent, leading); in OH_Drawing_TextLineGetTypographicBounds()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/skia_txt/txt/ |
H A D | line_metrics.h | 47 double ascent = 0.0; member in OHOS::Rosen::SPText::LineMetrics
|
H A D | text_line_base.h | 43 virtual double GetTypographicBounds(double* ascent, double* descent, double* leading) const = 0;
|
H A D | run.h | 38 virtual float GetTypographicBounds(float* ascent, float* descent, float* leading) const = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/export/rosen_text/ |
H A D | text_line_base.h | 40 virtual double GetTypographicBounds(double* ascent, double* descent, double* leading) const = 0;
|
H A D | run.h | 39 virtual float GetTypographicBounds(float* ascent, float* descent, float* leading) const = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_text_line.h | 180 * @param ascent Indicates the distance that the pointer points to remain above the baseline. 187 double OH_Drawing_TextLineGetTypographicBounds(OH_Drawing_TextLine* line, double* ascent, double* descent,
|
H A D | drawing_text_run.h | 98 * @param ascent The run of ascent. 105 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading);
|
H A D | drawing_font.h | 455 /** storage for ascent in font metrics */ 456 float ascent; member
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/run_napi/ |
H A D | js_run.cpp | 414 float ascent = 0.0;
in OnGetTypographicBounds() local 417 float width = run_->GetTypographicBounds(&ascent, &descent, &leading);
in OnGetTypographicBounds() 418 return GetTypographicBoundsAndConvertToJsValue(env, ascent, descent, leading, width);
in OnGetTypographicBounds()
|
/foundation/graphic/graphic_3d/lume/LumeFont/api/ |
H A D | intf_font.h | 53 float ascent; member 56 * the global font height, compute: descent - ascent.
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/text_line_napi/ |
H A D | js_text_line.cpp | 349 double ascent = 0.0; in OnGetTypographicBounds() local 352 double width = textLine_->GetTypographicBounds(&ascent, &descent, &leading); in OnGetTypographicBounds() 361 status = napi_set_named_property(env, objValue, "ascent", CreateJsNumber(env, ascent)); in OnGetTypographicBounds() 363 TEXT_LOGE("Failed to napi_set_named_property ascent"); in OnGetTypographicBounds()
|