MCPcopy Create free account
hub / github.com/Tencent/libpag / FindMiniAscent

Function FindMiniAscent

src/rendering/renderers/TextRenderer.cpp:284–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284static float FindMiniAscent(const std::vector<GlyphInfo*>& line) {
285 float minAscent = 0;
286 for (auto& info : line) {
287 minAscent = std::min(minAscent, info->bounds.top);
288 }
289 return minAscent;
290}
291
292static std::vector<std::vector<GlyphInfo*>> ApplyLayoutToGlyphInfos(
293 const TextLayout& layout, std::vector<GlyphInfo>* glyphInfos, tgfx::Rect* bounds,

Callers 1

ApplyLayoutToGlyphInfosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected