/src/serenity/Userland/Libraries/LibWeb/CSS/ParsedFontFace.cpp
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2022-2024, Sam Atkins <sam@ladybird.org> |
3 | | * Copyright (c) 2023, Andreas Kling <kling@serenityos.org> |
4 | | * |
5 | | * SPDX-License-Identifier: BSD-2-Clause |
6 | | */ |
7 | | |
8 | | #include <LibWeb/CSS/ParsedFontFace.h> |
9 | | |
10 | | namespace Web::CSS { |
11 | | |
12 | | ParsedFontFace::ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Optional<int> width, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges, Optional<Percentage> ascent_override, Optional<Percentage> descent_override, Optional<Percentage> line_gap_override, FontDisplay font_display, Optional<FlyString> font_named_instance, Optional<FlyString> font_language_override, Optional<OrderedHashMap<FlyString, i64>> font_feature_settings, Optional<OrderedHashMap<FlyString, double>> font_variation_settings) |
13 | 0 | : m_font_family(move(font_family)) |
14 | 0 | , m_font_named_instance(move(font_named_instance)) |
15 | 0 | , m_weight(weight) |
16 | 0 | , m_slope(slope) |
17 | 0 | , m_width(width) |
18 | 0 | , m_sources(move(sources)) |
19 | 0 | , m_unicode_ranges(move(unicode_ranges)) |
20 | 0 | , m_ascent_override(move(ascent_override)) |
21 | 0 | , m_descent_override(move(descent_override)) |
22 | 0 | , m_line_gap_override(move(line_gap_override)) |
23 | 0 | , m_font_display(font_display) |
24 | 0 | , m_font_language_override(font_language_override) |
25 | 0 | , m_font_feature_settings(move(font_feature_settings)) |
26 | 0 | , m_font_variation_settings(move(font_variation_settings)) |
27 | 0 | { |
28 | 0 | } |
29 | | |
30 | | } |