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
commit 0d03257e69
Notes: sideshowbarker 2024-07-17 09:49:33 +09:00
5 changed files with 11 additions and 11 deletions

View file

@ -224,7 +224,7 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
return DrawGlyph {
.position = point,
.code_point = code_point,
.font = &font,
.font = font,
};
}
@ -233,7 +233,7 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
return DrawEmoji {
.position = point,
.emoji = emoji,
.font = &font,
.font = font,
};
}
@ -242,7 +242,7 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
return DrawGlyph {
.position = point,
.code_point = code_point,
.font = &font,
.font = font,
};
}
@ -251,7 +251,7 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
return DrawGlyph {
.position = point,
.code_point = 0xFFFD,
.font = &font,
.font = font,
};
}