ParsedFontFace.cpp 568 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2022-2023, Sam Atkins <atkinssj@serenityos.org>
  3. * Copyright (c) 2023, Andreas Kling <kling@serenityos.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, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges)
  10. : m_font_family(move(font_family))
  11. , m_weight(weight)
  12. , m_slope(slope)
  13. , m_sources(move(sources))
  14. , m_unicode_ranges(move(unicode_ranges))
  15. {
  16. }
  17. }