1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 14:57:34 +00:00

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
parent 0f6dd8c62b
commit 344374588b
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'),