mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
LibGfx: Generalize glyph placement in Painter
This commit is contained in:
parent
972c7cf9f4
commit
79dfe9846d
Notes:
sideshowbarker
2024-07-18 22:17:48 +09:00
Author: https://github.com/sunverwerth
Commit: 79dfe9846d
Pull-request: https://github.com/SerenityOS/serenity/pull/4712
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