Home
last modified time | relevance | path

Searched refs:ascent (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.cpp139 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 Dtext_line_base_test.cpp136 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 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()
124 *ascent = 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()
127 *ascent = 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.cpp170 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 Ddrawing_text_line_test.cpp414 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 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()
100 *ascent = 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.h47 double ascent = 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.h180 * @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 Ddrawing_text_run.h98 * @param ascent The run of ascent.
105 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading);
H A Ddrawing_font.h455 /** storage for ascent in font metrics */
456 float ascent; member
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/run_napi/
H A Djs_run.cpp414 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 Dintf_font.h53 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 Djs_text_line.cpp349 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()

Completed in 12 milliseconds

12