mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:27:34 +00:00
LibGfx: Add Font::width(u32* codepoints, size_t)
This allows you to measure the width of a UTF-32 sequence.
This commit is contained in:
parent
4ced126704
commit
35875b68f5
2 changed files with 11 additions and 0 deletions
|
@ -95,6 +95,7 @@ public:
|
|||
|
||||
int width(const StringView&) const;
|
||||
int width(const Utf8View&) const;
|
||||
int width(const u32* codepoints, size_t) const;
|
||||
|
||||
String name() const { return m_name; }
|
||||
void set_name(const StringView& name) { m_name = name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue