mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +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_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();
|
||||
SkFont const font { sk_ref_sp(sk_typeface), m_pixel_size };
|
||||
|
@ -88,11 +87,6 @@ float Font::pixel_size() const
|
|||
return m_pixel_size;
|
||||
}
|
||||
|
||||
int Font::pixel_size_rounded_up() const
|
||||
{
|
||||
return m_pixel_size_rounded_up;
|
||||
}
|
||||
|
||||
float Font::point_size() const
|
||||
{
|
||||
return m_point_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue