/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/ |
H A D | text_line_base_test.cpp | 140 double descent = 0; in HWTEST_F() local 142 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 41.936081); in HWTEST_F() 144 EXPECT_FLOAT_EQ(descent, 3.904000); in HWTEST_F() 168 double descent = 0; in HWTEST_F() local 170 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F() 172 EXPECT_FLOAT_EQ(descent, 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 | 137 double descent = 0; in HWTEST_F() local 139 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 49.377823); in HWTEST_F() 141 EXPECT_FLOAT_EQ(descent, 3.4160001); in HWTEST_F() 162 double descent = 0; in HWTEST_F() local 164 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F() 166 EXPECT_FLOAT_EQ(descent, 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() 125 *descent = 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() 128 *descent = 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 | 171 float descent = 0.0; in HWTEST_F() local 173 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F() 175 EXPECT_TRUE(descent > 0); in HWTEST_F() 269 float descent = 0.0; in HWTEST_F() local 271 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F() 273 EXPECT_TRUE(descent > 0); in HWTEST_F() 516 float descent = 0.0; in HWTEST_F() local 518 float width = OH_Drawing_GetRunTypographicBounds(nullptr, &ascent, &descent, &leading); in HWTEST_F() 520 EXPECT_EQ(descent, 0.0); in HWTEST_F()
|
H A D | drawing_text_line_test.cpp | 415 double descent = 0.0; in HWTEST_F() local 421 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 423 EXPECT_GT(descent, 0); in HWTEST_F() 447 double descent = 0.0; in HWTEST_F() local 453 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 455 EXPECT_GT(descent, 0); in HWTEST_F() 480 double descent = 0.0; in HWTEST_F() local 486 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F() 488 EXPECT_GT(descent, 0); in HWTEST_F() 515 double descent 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() 101 *descent = 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 | 48 double descent = 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 | 181 * @param descent Indicates the pointer to the distance that remains below the baseline. 187 double OH_Drawing_TextLineGetTypographicBounds(OH_Drawing_TextLine* line, double* ascent, double* descent,
|
H A D | drawing_text_run.h | 99 * @param descent The run of descent. 105 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading);
|
H A D | drawing_font.h | 457 /** storage for descent in font metrics */ 458 float descent; member
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/run_napi/ |
H A D | js_run.cpp | 415 float descent = 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 | 54 float descent; 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 | 350 double descent = 0.0; in OnGetTypographicBounds() local 352 double width = textLine_->GetTypographicBounds(&ascent, &descent, &leading); in OnGetTypographicBounds() 366 status = napi_set_named_property(env, objValue, "descent", CreateJsNumber(env, descent)); in OnGetTypographicBounds() 368 TEXT_LOGE("Failed to napi_set_named_property descent"); in OnGetTypographicBounds()
|