Home
last modified time | relevance | path

Searched refs:descent (Results 1 - 25 of 29) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dtext_line_base_test.cpp140 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 Dtext_line_base_test.cpp137 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 Drun_impl.cpp119 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 Dtext_line_base.cpp86 double TextLineBaseImpl::GetTypographicBounds(double* ascent, double* descent, double* leading) const in GetTypographicBounds() argument
91 return textlinebase_->GetTypographicBounds(ascent, descent, leading); in GetTypographicBounds()
H A Dtext_line_base.h39 double GetTypographicBounds(double* ascent, double* descent, double* leading) const override;
H A Drun_impl.h39 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 Drun_impl.cpp122 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 Dtext_line_impl.cpp86 double TextLineImpl::GetTypographicBounds(double* ascent, double* descent, double* leading) const in GetTypographicBounds() argument
92 return textLineBase_->getTypographicBounds(ascent, descent, leading); in GetTypographicBounds()
H A Dtext_line_impl.h46 double GetTypographicBounds(double* ascent, double* descent, double* leading) const override;
H A Drun_impl.h42 float GetTypographicBounds(float* ascent, float* descent, float* leading) const override;
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_run_test.cpp171 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 Ddrawing_text_line_test.cpp415 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 Ddrawing_text_run.cpp95 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 Ddrawing_text_line.cpp292 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 Dline_metrics.h48 double descent = 0.0; member in OHOS::Rosen::SPText::LineMetrics
H A Dtext_line_base.h43 virtual double GetTypographicBounds(double* ascent, double* descent, double* leading) const = 0;
H A Drun.h38 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 Dtext_line_base.h40 virtual double GetTypographicBounds(double* ascent, double* descent, double* leading) const = 0;
H A Drun.h39 virtual float GetTypographicBounds(float* ascent, float* descent, float* leading) const = 0;
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_text_line.h181 * @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 Ddrawing_text_run.h99 * @param descent The run of descent.
105 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading);
H A Ddrawing_font.h457 /** storage for descent in font metrics */
458 float descent; member
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/run_napi/
H A Djs_run.cpp415 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 Dintf_font.h54 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 Djs_text_line.cpp350 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()

Completed in 11 milliseconds

12