| 282 | } |
| 283 | |
| 284 | static 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 | |
| 292 | static std::vector<std::vector<GlyphInfo*>> ApplyLayoutToGlyphInfos( |
| 293 | const TextLayout& layout, std::vector<GlyphInfo>* glyphInfos, tgfx::Rect* bounds, |
no outgoing calls
no test coverage detected