ParsedFontFace.cpp 1.3 KB

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2022-2024, Sam Atkins <sam@ladybird.org>
  3. * Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <LibWeb/CSS/ParsedFontFace.h>
  8. namespace Web::CSS {
  9. 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)
  10. : m_font_family(move(font_family))
  11. , m_font_named_instance(move(font_named_instance))
  12. , m_weight(weight)
  13. , m_slope(slope)
  14. , m_width(width)
  15. , m_sources(move(sources))
  16. , m_unicode_ranges(move(unicode_ranges))
  17. , m_ascent_override(move(ascent_override))
  18. , m_descent_override(move(descent_override))
  19. , m_line_gap_override(move(line_gap_override))
  20. , m_font_display(font_display)
  21. , m_font_language_override(font_language_override)
  22. , m_font_feature_settings(move(font_feature_settings))
  23. , m_font_variation_settings(move(font_variation_settings))
  24. {
  25. }
  26. }