/* * Copyright (c) 2022, 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(DeprecatedFlyString font_family, Vector sources, Vector unicode_ranges); ~FontFace() = default; DeprecatedFlyString 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: DeprecatedFlyString m_font_family; Vector m_sources; Vector m_unicode_ranges; }; }