mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
More font handling cleanup
Group all fields we need to determine a physical font into one FontRequest structure and use that throughout. That way adding more fields will require less changes.
This commit is contained in:
parent
05204a3185
commit
f0289192b7
5 changed files with 42 additions and 63 deletions
|
@ -285,7 +285,7 @@ pub enum HighLevelRenderingPrimitive {
|
|||
/// Expected rendering variables:
|
||||
/// * [`RenderingVariable::Color`]: The color to use for rendering the glyphs.
|
||||
/// * [`RenderingVariable::TextCursor`]: Draw a text cursor.
|
||||
Text { text: crate::SharedString, font_family: crate::SharedString, font_size: f32 },
|
||||
Text { text: crate::SharedString, font_request: super::font::FontRequest },
|
||||
/// Renders a path specified by the `elements` parameter. The path will be scaled to fit into the given
|
||||
/// `width` and `height`. If the `stroke_width` is greater than zero, then path will also be outlined.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue