Home
last modified time | relevance | path

Searched refs:leading (Results 1 - 25 of 33) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/skia_txt/
H A Dtext_line_base_test.cpp141 double leading = 0; in HWTEST_F() local
142 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 41.936081); in HWTEST_F()
145 EXPECT_FLOAT_EQ(leading, 0.000000); in HWTEST_F()
169 double leading = 0; in HWTEST_F() local
170 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F()
173 EXPECT_FLOAT_EQ(leading, 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.cpp138 double leading = 0; in HWTEST_F() local
139 EXPECT_FLOAT_EQ(textLine_[0]->GetTypographicBounds(&ascent, &descent, &leading), 49.377823); in HWTEST_F()
142 EXPECT_FLOAT_EQ(leading, 0.000000); in HWTEST_F()
163 double leading = 0; in HWTEST_F() local
164 EXPECT_FLOAT_EQ(textLineBase->GetTypographicBounds(&ascent, &descent, &leading), 0.0); in HWTEST_F()
167 EXPECT_FLOAT_EQ(leading, 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()
121 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in GetTypographicBounds()
126 *leading = 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()
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()
124 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in GetTypographicBounds()
129 *leading = 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()
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/arkui/ace_engine/frameworks/core/animation/
H A Dscroll_motion.h27 ExtentPair(double leading, double trailing) : leading_(leading), trailing_(trailing) {} in ExtentPair() argument
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_run_test.cpp172 float leading = 0.0; in HWTEST_F() local
173 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F()
176 EXPECT_TRUE(leading >= 0); // The leading minimum is 0 in HWTEST_F()
270 float leading = 0.0; in HWTEST_F() local
271 float width = OH_Drawing_GetRunTypographicBounds(run, &ascent, &descent, &leading); in HWTEST_F()
274 EXPECT_TRUE(leading >= 0); // The leading minimum is 0 in HWTEST_F()
517 float leading = 0.0; in HWTEST_F() local
518 float width = OH_Drawing_GetRunTypographicBounds(nullptr, &ascent, &descent, &leading); in HWTEST_F()
[all...]
H A Ddrawing_text_line_test.cpp416 double leading = 0.0; in HWTEST_F() local
421 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F()
424 EXPECT_EQ(leading, 0); in HWTEST_F()
448 double leading = 0.0; in HWTEST_F() local
453 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F()
456 EXPECT_EQ(leading, 0); in HWTEST_F()
481 double leading = 0.0; in HWTEST_F() local
486 double width = OH_Drawing_TextLineGetTypographicBounds(textLine, &ascent, &descent, &leading); in HWTEST_F()
489 EXPECT_EQ(leading, 0); in HWTEST_F()
520 double leading 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()
102 *leading = 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.cpp293 double* leading) in OH_Drawing_TextLineGetTypographicBounds()
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()
292 OH_Drawing_TextLineGetTypographicBounds(OH_Drawing_TextLine* line, double* ascent, double* descent, double* leading) OH_Drawing_TextLineGetTypographicBounds() argument
/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_engine/rosen_text/skia_txt/txt/
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_graphics/drawing_ndk/include/
H A Ddrawing_text_line.h182 * @param leading Indicates the pointer to the line Spacing.
188 double* leading);
H A Ddrawing_text_run.h100 * @param leading The run of leading.
105 float OH_Drawing_GetRunTypographicBounds(OH_Drawing_Run* run, float* ascent, float* descent, float* leading);
H A Ddrawing_font.h461 /** storage for leading in font metrics */
462 float leading; member
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/run_napi/
H A Djs_run.cpp416 float leading = 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.h60 float leading; member
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/text_line_napi/
H A Djs_text_line.cpp351 double leading = 0.0; in OnGetTypographicBounds() local
352 double width = textLine_->GetTypographicBounds(&ascent, &descent, &leading); in OnGetTypographicBounds()
371 status = napi_set_named_property(env, objValue, "leading", CreateJsNumber(env, leading)); in OnGetTypographicBounds()
373 TEXT_LOGE("Failed to napi_set_named_property leading"); in OnGetTypographicBounds()

Completed in 11 milliseconds

12