/* * Copyright (c) 2024, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Gfx { class FontData { public: static NonnullOwnPtr create_from_byte_buffer(ByteBuffer&&); static NonnullOwnPtr create_from_resource(Core::Resource const&); ReadonlyBytes bytes() const; private: FontData(ByteBuffer&& byte_buffer); FontData(NonnullRefPtr resource); Variant> m_data; }; }