mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +00:00
LibGfx: Inline Font::pixel_metrics()
Calls to this method were showing up in profiles.
This commit is contained in:
parent
df20ac0f3c
commit
5ac067c804
Notes:
github-actions[bot]
2025-06-17 15:04:44 +00:00
Author: https://github.com/gmta
Commit: 5ac067c804
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5115
2 changed files with 1 additions and 6 deletions
|
@ -83,11 +83,6 @@ NonnullRefPtr<Font> Font::with_size(float point_size) const
|
||||||
return scaled_with_size(point_size);
|
return scaled_with_size(point_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::FontPixelMetrics Font::pixel_metrics() const
|
|
||||||
{
|
|
||||||
return m_pixel_metrics;
|
|
||||||
}
|
|
||||||
|
|
||||||
float Font::pixel_size() const
|
float Font::pixel_size() const
|
||||||
{
|
{
|
||||||
return m_pixel_size;
|
return m_pixel_size;
|
||||||
|
|
|
@ -59,7 +59,7 @@ public:
|
||||||
float point_size() const;
|
float point_size() const;
|
||||||
float pixel_size() const;
|
float pixel_size() const;
|
||||||
int pixel_size_rounded_up() const;
|
int pixel_size_rounded_up() const;
|
||||||
Gfx::FontPixelMetrics pixel_metrics() const;
|
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(); }
|
||||||
bool contains_glyph(u32 code_point) const { return m_typeface->glyph_id_for_code_point(code_point) > 0; }
|
bool contains_glyph(u32 code_point) const { return m_typeface->glyph_id_for_code_point(code_point) > 0; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue