mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibGfx: Remove Font::pixel_size_rounded_up()
The remaining callsites were removed in the previous commit.
This commit is contained in:
parent
788d5368a7
commit
144eac44fb
Notes:
github-actions[bot]
2025-07-15 18:06:46 +00:00
Author: https://github.com/gmta
Commit: 144eac44fb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5454
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/kalenikaliaksandr ✅
2 changed files with 0 additions and 8 deletions
|
@ -30,7 +30,6 @@ Font::Font(NonnullRefPtr<Typeface const> typeface, float point_width, float poin
|
||||||
m_y_scale = (point_height * dpi_y) / (POINTS_PER_INCH * units_per_em);
|
m_y_scale = (point_height * dpi_y) / (POINTS_PER_INCH * units_per_em);
|
||||||
|
|
||||||
m_pixel_size = m_point_height * (DEFAULT_DPI / POINTS_PER_INCH);
|
m_pixel_size = m_point_height * (DEFAULT_DPI / POINTS_PER_INCH);
|
||||||
m_pixel_size_rounded_up = static_cast<int>(ceilf(m_pixel_size));
|
|
||||||
|
|
||||||
auto const* sk_typeface = as<TypefaceSkia>(*m_typeface).sk_typeface();
|
auto const* sk_typeface = as<TypefaceSkia>(*m_typeface).sk_typeface();
|
||||||
SkFont const font { sk_ref_sp(sk_typeface), m_pixel_size };
|
SkFont const font { sk_ref_sp(sk_typeface), m_pixel_size };
|
||||||
|
@ -88,11 +87,6 @@ float Font::pixel_size() const
|
||||||
return m_pixel_size;
|
return m_pixel_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Font::pixel_size_rounded_up() const
|
|
||||||
{
|
|
||||||
return m_pixel_size_rounded_up;
|
|
||||||
}
|
|
||||||
|
|
||||||
float Font::point_size() const
|
float Font::point_size() const
|
||||||
{
|
{
|
||||||
return m_point_height;
|
return m_point_height;
|
||||||
|
|
|
@ -58,7 +58,6 @@ public:
|
||||||
|
|
||||||
float point_size() const;
|
float point_size() const;
|
||||||
float pixel_size() const;
|
float pixel_size() const;
|
||||||
int pixel_size_rounded_up() const;
|
|
||||||
FontPixelMetrics const& pixel_metrics() const { return m_pixel_metrics; }
|
FontPixelMetrics const& pixel_metrics() const { return m_pixel_metrics; }
|
||||||
u8 slope() const { return m_typeface->slope(); }
|
u8 slope() const { return m_typeface->slope(); }
|
||||||
u16 weight() const { return m_typeface->weight(); }
|
u16 weight() const { return m_typeface->weight(); }
|
||||||
|
@ -94,7 +93,6 @@ private:
|
||||||
FontPixelMetrics m_pixel_metrics;
|
FontPixelMetrics m_pixel_metrics;
|
||||||
|
|
||||||
float m_pixel_size { 0.0f };
|
float m_pixel_size { 0.0f };
|
||||||
int m_pixel_size_rounded_up { 0 };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue