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:
parent
972c7cf9f4
commit
79dfe9846d
3 changed files with 14 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue