LibGfx: Rename FontMetrics => FontPixelMetrics

Let's make it clear in the type name that this contains pixel metrics.
Also rename Font::metrics() => Font::pixel_metrics().
This commit is contained in:
Andreas Kling 2022-03-28 12:03:44 +02:00
commit 344374588b
Notes: sideshowbarker 2024-07-17 16:32:31 +09:00
9 changed files with 24 additions and 24 deletions

View file

@ -372,9 +372,9 @@ Font const& Font::bold_variant() const
return *m_bold_variant;
}
FontMetrics Font::metrics() const
FontPixelMetrics Font::pixel_metrics() const
{
return FontMetrics {
return FontPixelMetrics {
.size = (float)presentation_size(),
.x_height = (float)x_height(),
.advance_of_ascii_zero = (float)glyph_width('0'),