Home
last modified time | relevance | path

Searched refs:line_height (Results 1 – 18 of 18) sorted by relevance

/third_party/flutter/skia/modules/skottie/src/text/
DTextValue.cpp28 const skjson::NumberValue* line_height = (*jtxt)["lh"]; in FromJSON() local
29 if (!font_name || !text || !text_size || !line_height) { in FromJSON()
41 v->fLineHeight = **line_height; in FromJSON()
/third_party/skia/modules/skottie/src/text/
DTextValue.cpp25 const skjson::NumberValue* line_height = (*jtxt)["lh"]; in Parse() local
26 if (!font_name || !text || !text_size || !line_height) { in Parse()
38 v->fLineHeight = **line_height; in Parse()
/third_party/gstreamer/gstreamer/scripts/
Dgst-plot-timeline.py157 line_height = num_syscalls * PIXELS_PER_LINE
159 if time_height > line_height:
165 metrics.height = line_height
/third_party/gstreamer/gstplugins_bad/ext/ttml/
Dgstttmlrender.c107 guint line_height; member
1940 guint line_height, guint baseline_offset) in gst_ttml_render_draw_text() argument
2035 block_metrics.line_height, block_metrics.baseline_offset); in gst_ttml_render_render_block_elements()
2044 bg_height = block_metrics.line_height; in gst_ttml_render_render_block_elements()
2144 line->y += (i * metrics.line_height); in gst_ttml_render_layout_blocks()
2239 if (block->style_set->line_height < 0) { /* lineHeight="normal" case */ in gst_ttml_render_get_block_metrics()
2256 ret.line_height = (guint) ceil (max_text_height * 1.25); in gst_ttml_render_get_block_metrics()
2257 ret.baseline_offset = (guint) ((max_text_height + ret.line_height) / 2.0) in gst_ttml_render_get_block_metrics()
2267 ret.line_height = (guint) ceil (font_size * block->style_set->line_height); in gst_ttml_render_get_block_metrics()
2268 ret.baseline_offset = (guint) ((font_size + ret.line_height) / 2.0) in gst_ttml_render_get_block_metrics()
Dsubtitle.h382 gdouble line_height; member
Dsubtitle.c72 ret->line_height = -1; in gst_subtitle_style_set_new()
Dttmlparse.c478 style_set->line_height = -1; in ttml_update_style_set()
480 style_set->line_height = g_ascii_strtod (attr, NULL) / 100.0; in ttml_update_style_set()
/third_party/flutter/skia/third_party/externals/imgui/
Dimgui_draw.cpp2634 const float line_height = size; in CalcTextSizeA() local
2660 text_size.y += line_height; in CalcTextSizeA()
2693 text_size.y += line_height; in CalcTextSizeA()
2715 text_size.y += line_height; in CalcTextSizeA()
2751 const float line_height = FontSize * scale; in RenderText() local
2757 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText()
2758 while (y + line_height < clip_rect.y && s < text_end) in RenderText()
2762 y += line_height; in RenderText()
2775 y_end += line_height; in RenderText()
2807 y += line_height; in RenderText()
[all …]
Dimgui_widgets.cpp148 const float line_height = GetTextLineHeight(); in TextUnformatted() local
159 int lines_skippable = (int)((clip_rect.Min.y - text_pos.y) / line_height); in TextUnformatted()
171 pos.y += lines_skipped * line_height; in TextUnformatted()
178 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextUnformatted()
191 line_rect.Min.y += line_height; in TextUnformatted()
192 line_rect.Max.y += line_height; in TextUnformatted()
193 pos.y += line_height; in TextUnformatted()
206 pos.y += lines_skipped * line_height; in TextUnformatted()
355 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in BulletTextV() local
356 …size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label_size.y))… in BulletTextV()
[all …]
Dimgui.cpp2130 static void SetCursorPosYAndSetupDummyPrevLine(float pos_y, float line_height) in SetCursorPosYAndSetupDummyPrevLine() argument
2137 …window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those field… in SetCursorPosYAndSetupDummyPrevLine()
2138 …window->DC.PrevLineSize.y = (line_height - GImGui->Style.ItemSpacing.y); // If we end up needin… in SetCursorPosYAndSetupDummyPrevLine()
2692 const float line_height = ImMax(window->DC.CurrentLineSize.y, size.y); in ItemSize() local
2697 …window->DC.CursorPos.y = (float)(int)(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y… in ItemSize()
2702 window->DC.PrevLineSize.y = line_height; in ItemSize()
/third_party/mesa3d/src/imgui/
Dimgui_draw.cpp2646 const float line_height = size; in CalcTextSizeA() local
2672 text_size.y += line_height; in CalcTextSizeA()
2705 text_size.y += line_height; in CalcTextSizeA()
2727 text_size.y += line_height; in CalcTextSizeA()
2763 const float line_height = FontSize * scale; in RenderText() local
2769 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText()
2770 while (y + line_height < clip_rect.y && s < text_end) in RenderText()
2774 y += line_height; in RenderText()
2787 y_end += line_height; in RenderText()
2819 y += line_height; in RenderText()
[all …]
Dimgui_widgets.cpp150 const float line_height = GetTextLineHeight(); in TextUnformatted() local
161 int lines_skippable = (int)((clip_rect.Min.y - text_pos.y) / line_height); in TextUnformatted()
173 pos.y += lines_skipped * line_height; in TextUnformatted()
180 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextUnformatted()
193 line_rect.Min.y += line_height; in TextUnformatted()
194 line_rect.Max.y += line_height; in TextUnformatted()
195 pos.y += line_height; in TextUnformatted()
208 pos.y += lines_skipped * line_height; in TextUnformatted()
357 …const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadd… in BulletTextV() local
358 …size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label_size.y))… in BulletTextV()
[all …]
Dimgui.cpp2186 static void SetCursorPosYAndSetupDummyPrevLine(float pos_y, float line_height) in SetCursorPosYAndSetupDummyPrevLine() argument
2193 …window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those field… in SetCursorPosYAndSetupDummyPrevLine()
2194 …window->DC.PrevLineSize.y = (line_height - GImGui->Style.ItemSpacing.y); // If we end up needin… in SetCursorPosYAndSetupDummyPrevLine()
2751 const float line_height = ImMax(window->DC.CurrentLineSize.y, size.y); in ItemSize() local
2756 …window->DC.CursorPos.y = (float)(int)(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y… in ItemSize()
2761 window->DC.PrevLineSize.y = line_height; in ItemSize()
/third_party/flutter/engine/flutter/third_party/txt/src/txt/
Dparagraph_txt.h207 double line_height = 0; member
Dparagraph_txt.cc514 strut->line_height = 0; in ComputeStrut()
570 strut->line_height = strut->ascent + strut->descent + strut->leading; in ComputeStrut()
/third_party/skia/third_party/externals/imgui/
Dimgui_draw.cpp3429 const float line_height = size; in CalcTextSizeA() local
3455 text_size.y += line_height; in CalcTextSizeA()
3488 text_size.y += line_height; in CalcTextSizeA()
3510 text_size.y += line_height; in CalcTextSizeA()
3548 const float line_height = FontSize * scale; in RenderText() local
3554 if (y + line_height < clip_rect.y && !word_wrap_enabled) in RenderText()
3555 while (y + line_height < clip_rect.y && s < text_end) in RenderText()
3559 y += line_height; in RenderText()
3572 y_end += line_height; in RenderText()
3606 y += line_height; in RenderText()
[all …]
Dimgui_widgets.cpp177 const float line_height = GetTextLineHeight(); in TextEx() local
184 int lines_skippable = (int)((window->ClipRect.Min.y - text_pos.y) / line_height); in TextEx()
198 pos.y += lines_skipped * line_height; in TextEx()
205 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height)); in TextEx()
217 line_rect.Min.y += line_height; in TextEx()
218 line_rect.Max.y += line_height; in TextEx()
219 pos.y += line_height; in TextEx()
234 pos.y += lines_skipped * line_height; in TextEx()
1283 …const float line_height = ImMax(ImMin(window->DC.CurrLineSize.y, g.FontSize + g.Style.FramePadding… in Bullet() local
1284 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize, line_height)); in Bullet()
[all …]
Dimgui.cpp2287 static void SetCursorPosYAndSetupForPrevLine(float pos_y, float line_height) in SetCursorPosYAndSetupForPrevLine() argument
2297 …window->DC.CursorPosPrevLine.y = window->DC.CursorPos.y - line_height; // Setting those fields so… in SetCursorPosYAndSetupForPrevLine()
2298 …window->DC.PrevLineSize.y = (line_height - g.Style.ItemSpacing.y); // If we end up needing mo… in SetCursorPosYAndSetupForPrevLine()
2306 const int row_increase = (int)((off_y / line_height) + 0.5f); in SetCursorPosYAndSetupForPrevLine()
7497 const float line_height = ImMax(window->DC.CurrLineSize.y, size.y + offset_to_match_baseline_y); in ItemSize() local
7504 …window->DC.CursorPos.y = IM_FLOOR(window->DC.CursorPos.y + line_height + g.Style.ItemSpacing.y); … in ItemSize()
7509 window->DC.PrevLineSize.y = line_height; in ItemSize()