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

LibWeb: Make canvas text preparation handle multi-code point glyphs

This commit is contained in:
Timothy Flynn 2023-02-22 11:48:05 -05:00 committed by Linus Groh
parent cb04e4e9da
commit 3d7b13ac03
2 changed files with 18 additions and 9 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/String.h>
#include <AK/Variant.h>
#include <LibGfx/AffineTransform.h>
#include <LibGfx/AntiAliasingPainter.h>
@ -90,7 +91,7 @@ private:
virtual void visit_edges(Cell::Visitor&) override;
struct PreparedTextGlyph {
unsigned int c;
String glyph;
Gfx::IntPoint position;
};