2022-03-28 20:30:26 +01:00
|
|
|
/*
|
2023-02-18 15:13:29 +00:00
|
|
|
* Copyright (c) 2022-2023, Sam Atkins <atkinssj@serenityos.org>
|
2023-05-24 15:35:04 +02:00
|
|
|
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
2022-03-28 20:30:26 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2024-05-07 09:18:37 -06:00
|
|
|
#include <LibWeb/CSS/ParsedFontFace.h>
|
2022-03-28 20:30:26 +01:00
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
2024-05-07 09:18:37 -06:00
|
|
|
ParsedFontFace::ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges)
|
2022-03-28 20:30:26 +01:00
|
|
|
: m_font_family(move(font_family))
|
2023-05-24 15:35:04 +02:00
|
|
|
, m_weight(weight)
|
|
|
|
, m_slope(slope)
|
2022-03-28 20:30:26 +01:00
|
|
|
, m_sources(move(sources))
|
2022-03-31 16:39:52 +01:00
|
|
|
, m_unicode_ranges(move(unicode_ranges))
|
2022-03-28 20:30:26 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|