/* * Copyright (c) 2022-2023, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::CSS { class FontFace { public: struct Source { AK::URL url; // FIXME: Do we need to keep this around, or is it only needed to discard unwanted formats during parsing? Optional format; }; FontFace(FlyString font_family, Vector sources, Vector unicode_ranges); ~FontFace() = default; FlyString font_family() const { return m_font_family; } Vector const& sources() const { return m_sources; } Vector const& unicode_ranges() const { return m_unicode_ranges; } // FIXME: font-style, font-weight, font-stretch, font-feature-settings private: FlyString m_font_family; Vector m_sources; Vector m_unicode_ranges; }; }