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

LibGfx: Generalize glyph placement in Painter

This commit is contained in:
Stephan Unverwerth 2021-01-03 17:31:18 +01:00 committed by Andreas Kling
parent 972c7cf9f4
commit 79dfe9846d
3 changed files with 14 additions and 6 deletions

View file

@ -70,8 +70,11 @@ private:
class Glyph {
public:
Glyph(const GlyphBitmap& glyph_bitmap)
Glyph(const GlyphBitmap& glyph_bitmap, int left_bearing, int advance, int ascent)
: m_glyph_bitmap(glyph_bitmap)
, m_left_bearing(left_bearing)
, m_advance(advance)
, m_ascent(ascent)
{
}