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

LibGfx: Add Emoji::emoji_for_code_points(Span<u32> const&)

Not all emojis are just one code point, so the existing API is not
sufficient: Emoji::emoji_for_code_point(u32).
The file name for such emojis is simply each U+XXXX separated by an
underscore.
This commit is contained in:
Linus Groh 2022-02-22 21:38:37 +00:00
parent 1752f7720e
commit 514f3e9c74
2 changed files with 22 additions and 7 deletions

View file

@ -1,11 +1,13 @@
/*
* Copyright (c) 2019-2020, Sergey Bugaev <bugaevc@serenityos.org>
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <AK/Types.h>
namespace Gfx {
@ -14,7 +16,8 @@ class Bitmap;
class Emoji {
public:
static const Gfx::Bitmap* emoji_for_code_point(u32 code_point);
static Gfx::Bitmap const* emoji_for_code_point(u32 code_point);
static Gfx::Bitmap const* emoji_for_code_points(Span<u32> const&);
};
}