1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibGfx+LibAccelGfx+LibWeb: Use RefPtr for font in DrawGlyphOrEmoji

This commit is contained in:
Aliaksandr Kalenik 2023-12-09 23:14:07 +01:00 committed by Andreas Kling
parent 451df70275
commit 0d03257e69
5 changed files with 11 additions and 11 deletions

View file

@ -78,13 +78,13 @@ enum class IncludeLeftBearing {
struct DrawGlyph {
FloatPoint position;
u32 code_point;
Font const* font;
NonnullRefPtr<Font const> font;
};
struct DrawEmoji {
FloatPoint position;
Gfx::Bitmap const* emoji;
Font const* font;
NonnullRefPtr<Font const> font;
};
using DrawGlyphOrEmoji = Variant<DrawGlyph, DrawEmoji>;