mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Parse ascent-, descent-, and line-gap-override descriptors
This commit is contained in:
parent
3a5e78780e
commit
2f7d18865d
Notes:
github-actions[bot]
2024-09-28 12:44:05 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2f7d18865d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1554
5 changed files with 100 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||
* Copyright (c) 2022-2024, Sam Atkins <sam@ladybird.org>
|
||||
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
|
@ -9,12 +9,15 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
ParsedFontFace::ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges)
|
||||
ParsedFontFace::ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges, Optional<Percentage> ascent_override, Optional<Percentage> descent_override, Optional<Percentage> line_gap_override)
|
||||
: m_font_family(move(font_family))
|
||||
, m_weight(weight)
|
||||
, m_slope(slope)
|
||||
, m_sources(move(sources))
|
||||
, m_unicode_ranges(move(unicode_ranges))
|
||||
, m_ascent_override(move(ascent_override))
|
||||
, m_descent_override(move(descent_override))
|
||||
, m_line_gap_override(move(line_gap_override))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue