Skip to content

Commit 8f27022

Browse files
authored
Merge pull request #699 from kas-gui/push-oxuvxkspzwuy
Update kas-text
2 parents ca9ec37 + b2dcf9b commit 8f27022

18 files changed

Lines changed: 219 additions & 234 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ resolver = "2"
175175

176176
[patch.crates-io.kas-text]
177177
git = "https://github.com/kas-gui/kas-text.git"
178-
rev = "9797e78ad4664ae5055e8dab6067e40b215f6b3e"
178+
rev = "efe15a6040edde83b64cb668c64da63b164abfd7"
179179

180180
[patch.crates-io.impl-tools-lib]
181181
git = "https://github.com/kas-gui/impl-tools.git"

crates/kas-core/src/draw/draw.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use super::{AnimationState, color::Rgba};
99
#[allow(unused)] use super::{DrawRounded, DrawRoundedImpl};
1010
use super::{DrawShared, DrawSharedImpl, ImageId, PassId, PassType, SharedState, WindowCommon};
1111
use crate::geom::{Offset, Quad, Rect, Vec2};
12-
use crate::text::{TextDisplay, format};
12+
use crate::text::{Forme, format};
1313
use crate::theme::ColorsLinear;
1414
use std::any::Any;
1515
use std::time::Instant;
@@ -132,7 +132,7 @@ impl<'a, DS: DrawSharedImpl> DrawIface<'a, DS> {
132132
&mut self,
133133
pos: Vec2,
134134
bounding_box: Quad,
135-
text: &TextDisplay,
135+
text: &Forme,
136136
theme: &ColorsLinear,
137137
col: Rgba,
138138
) {
@@ -268,7 +268,7 @@ pub trait Draw {
268268
&mut self,
269269
pos: Vec2,
270270
bounding_box: Quad,
271-
text: &TextDisplay,
271+
text: &Forme,
272272
theme: &ColorsLinear,
273273
tokens: &[(u32, format::Colors)],
274274
) {
@@ -285,7 +285,7 @@ pub trait Draw {
285285
&mut self,
286286
pos: Vec2,
287287
bounding_box: Quad,
288-
text: &TextDisplay,
288+
text: &Forme,
289289
theme: &ColorsLinear,
290290
decorations: &[(u32, format::Decoration)],
291291
) {

crates/kas-core/src/draw/draw_shared.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use super::{DrawImpl, PassId};
99
use crate::ActionRedraw;
1010
use crate::config::RasterConfig;
1111
use crate::geom::{Quad, Size, Vec2};
12-
use crate::text::{TextDisplay, format};
12+
use crate::text::{Forme, format};
1313
use crate::theme::ColorsLinear;
1414
use std::any::Any;
1515
use std::num::NonZeroU32;
@@ -200,7 +200,7 @@ pub trait DrawSharedImpl: Any {
200200
pass: PassId,
201201
pos: Vec2,
202202
bounding_box: Quad,
203-
text: &TextDisplay,
203+
text: &Forme,
204204
theme: &ColorsLinear,
205205
tokens: &[(u32, format::Colors)],
206206
);
@@ -215,7 +215,7 @@ pub trait DrawSharedImpl: Any {
215215
pass: PassId,
216216
pos: Vec2,
217217
bounding_box: Quad,
218-
text: &TextDisplay,
218+
text: &Forme,
219219
theme: &ColorsLinear,
220220
decorations: &[(u32, format::Decoration)],
221221
);

crates/kas-core/src/text/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::num::NonZeroU32;
1010
use super::fonts::FontSelector;
1111
use crate::draw::color::{Rgba, Rgba8Srgb};
1212
use crate::theme::ColorsLinear;
13-
pub use kas_text::format::FontToken;
13+
pub use kas_text::FontToken;
1414

1515
#[cfg(feature = "markdown")] mod markdown;
1616
#[cfg(feature = "markdown")] pub use markdown::Markdown;
@@ -171,7 +171,7 @@ pub trait FormattableText: std::cmp::PartialEq {
171171
///
172172
/// These tokens are used to select the font and font size.
173173
/// Each text object has a configured
174-
/// [font size][super::ConfiguredDisplay::set_font_size] and [`FontSelector`]; these
174+
/// [font size][super::ConfiguredForme::set_font_size] and [`FontSelector`]; these
175175
/// values are passed as a reference (`dpem` and `font`).
176176
///
177177
/// The iterator is expected to yield a stream of tokens such that

0 commit comments

Comments
 (0)