mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
LibGfx: Inline Font::pixel_metrics()
Calls to this method were showing up in profiles.
This commit is contained in:
parent
df20ac0f3c
commit
5ac067c804
|
|
@ -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…
Reference in New Issue
Block a user