Home
last modified time | relevance | path

Searched refs:ascent (Results 1 - 25 of 93) sorted by relevance

1234

/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()
/third_party/skia/third_party/externals/harfbuzz/util/
H A Dview-cairo.hh110 font_extents.ascent = scalbn ((double) hb_extents.ascender, scale_bits); in render()
116 double ascent = y_sign * font_extents.ascent; in render() local
119 double leading = ascent + descent + line_gap; in render()
154 w - ascent, /* We currently always stack lines right to left */ in render()
160 y_sign < 0 ? descent : ascent); in render()
H A Dview-options.hh52 double ascent, descent, line_gap; member
68 switch (sscanf (arg, "%lf%*[ ,]%lf%*[ ,]%lf", &e.ascent, &e.descent, &e.line_gap)) { in parse_font_extents()
112 {"font-extents", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) &parse_font_extents, "Set font ascent/descent/line-gap (default: auto)","one to three numbers"}, in add_options()
/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()
/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()
/third_party/skia/modules/skottie/src/text/
H A DSkottieShaper.cpp147 const auto ascent = this->ascent(); in finalize() local
163 // the first line top (ascent) to the last line bottom (descent). in finalize()
164 const auto typographical_top = fBox.fTop + ascent, in finalize()
182 v_offset -= ascent; in finalize()
234 const auto max_offset = fBox.height() + this->ascent(); // NB: ascent is negative in shapeLine()
266 float ascent = 0; in commitFragementedRun() local
271 ascent = metrics.fAscent; in commitFragementedRun()
296 advance, ascent, in commitFragementedRun()
328 SkScalar ascent() const { ascent() function in skottie::__anon18587::final
[all...]
/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...]
/third_party/icu/icu4c/source/samples/layout/
H A DFontMap.cpp264 le_int32 ascent, descent, leading; in getMaxMetrics() local
274 ascent = fFontInstances[i]->getAscent(); in getMaxMetrics()
278 if (ascent > fAscent) { in getMaxMetrics()
279 fAscent = ascent; in getMaxMetrics()
H A Dpflow.c116 le_int32 ascent = 0; in pf_create() local
191 if (pAscent > ascent) { in pf_create()
192 ascent = pAscent; in pf_create()
218 flow->fLineHeight = ascent + descent + leading; in pf_create()
219 flow->fAscent = ascent; in pf_create()
H A Dparagraph.cpp93 le_int32 ascent = 0; in Paragraph() local
136 if (pAscent > ascent) { in Paragraph()
137 ascent = pAscent; in Paragraph()
163 fLineHeight = ascent + descent + leading; in Paragraph()
164 fAscent = ascent; in Paragraph()
/third_party/skia/third_party/externals/icu/source/samples/layout/
H A DFontMap.cpp264 le_int32 ascent, descent, leading; in getMaxMetrics() local
274 ascent = fFontInstances[i]->getAscent(); in getMaxMetrics()
278 if (ascent > fAscent) { in getMaxMetrics()
279 fAscent = ascent; in getMaxMetrics()
H A Dparagraph.cpp93 le_int32 ascent = 0; in Paragraph() local
136 if (pAscent > ascent) { in Paragraph()
137 ascent = pAscent; in Paragraph()
163 fLineHeight = ascent + descent + leading; in Paragraph()
164 fAscent = ascent; in Paragraph()
H A Dpflow.c114 le_int32 ascent = 0; in pf_create() local
189 if (pAscent > ascent) { in pf_create()
190 ascent = pAscent; in pf_create()
216 flow->fLineHeight = ascent + descent + leading; in pf_create()
217 flow->fAscent = ascent; in pf_create()
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
H A Dglx_usefont.c52 prefix, ch->ascent, ch->descent, (unsigned int) ch->attributes); in dump_char_struct()
58 printf("ascent = %d, descent = %d\n", font->ascent, font->descent); in dump_font_struct()
242 max_height = fs->max_bounds.ascent + fs->max_bounds.descent; in glXUseXFont()
324 height = ch->ascent + ch->descent; in glXUseXFont()
333 y = ch->ascent; in glXUseXFont()
/third_party/mesa3d/src/glx/
H A Dxfont.c56 prefix, ch->ascent, ch->descent, (unsigned int) ch->attributes); in dump_char_struct()
62 printf("ascent = %d, descent = %d\n", font->ascent, font->descent); in dump_font_struct()
244 max_height = fs->max_bounds.ascent + fs->max_bounds.descent; in DRI_glXUseXFont()
325 height = ch->ascent + ch->descent; in DRI_glXUseXFont()
333 y = ch->ascent; in DRI_glXUseXFont()
/third_party/skia/modules/skparagraph/src/
H A DTextLineBaseImpl.cpp74 double TextLineBaseImpl::getTypographicBounds(double* ascent, double* descent, double* leading) const in getTypographicBounds() argument
80 return fVisitorTextLine->getTypographicBounds(ascent, descent, leading); in getTypographicBounds()
H A DRunBaseImpl.cpp323 float RunBaseImpl::getTypographicBounds(float* ascent, float* descent, float* leading) const in getTypographicBounds() argument
325 if (ascent == nullptr || descent == nullptr || leading == nullptr) { in getTypographicBounds()
329 *ascent = 0.0; in getTypographicBounds()
334 *ascent = std::abs(fVisitorRun->ascent()); in getTypographicBounds()
H A DRun.h116 SkScalar ascent() const { return fFontMetrics.fAscent + fBaselineShift; } in ascent() function in skia::textlayout::Run
163 auto ascent = ascentStyle == LineMetricStyle::Typographic ? this->ascent() in calculateHeight() local
167 return descent - ascent; in calculateHeight()
542 fRawAscent = std::min(fRawAscent, run->ascent()); in InternalLineMetrics()
595 (ascentStyle == LineMetricStyle::Typographic ? run->ascent() : run->correctAscent()) + delta(); in InternalLineMetrics()
617 SkScalar ascent() const { return fAscent; } in InternalLineMetrics() function
/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()
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/holiday/
H A DHolidayBorderPanel.java419 int ascent = fm.getAscent(); in paint()
430 if (ascent > thickness) in paint()
431 adjustment = (ascent - thickness) / 2; in paint()
480 g.drawString(text, offset, ascent); in paint()
/third_party/skia/third_party/externals/freetype/src/pcf/
H A Dpcf.h87 FT_Byte ascent; member
98 FT_Short ascent; member

Completed in 15 milliseconds

1234