Skip to content

Commit

Permalink
Merge pull request #85 from kas-gui/work2
Browse files Browse the repository at this point in the history
Remove traits TextApi, TextApiExt, EditableTextApi
  • Loading branch information
dhardy authored Mar 12, 2024
2 parents b527338 + 8828bb3 commit 6e391f8
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 328 deletions.
2 changes: 1 addition & 1 deletion src/display/glyph_pos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl TextDisplay {
///
/// This may be used as follows:
/// ```no_run
/// # use kas_text::{Glyph, Text, TextApi, TextApiExt, Vec2};
/// # use kas_text::{Glyph, Text, Vec2};
/// # fn draw(_: Vec<(f32, Glyph)>) {}
/// let mut text = Text::new("Some example text");
/// text.prepare();
Expand Down
4 changes: 2 additions & 2 deletions src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub trait FormattableText: std::cmp::PartialEq + std::fmt::Debug {
/// It is expected that [`FontToken::start`] of yielded items is strictly
/// increasing; if not, formatting may not be applied correctly.
///
/// The default [font size][crate::TextApi::set_font_size] (`dpem`) is passed
/// The default [font size][crate::Text::set_font_size] (`dpem`) is passed
/// as a reference.
///
/// For plain text this iterator will be empty.
Expand Down Expand Up @@ -82,7 +82,7 @@ pub trait FormattableTextDyn: std::fmt::Debug {
/// It is expected that [`FontToken::start`] of yielded items is strictly
/// increasing; if not, formatting may not be applied correctly.
///
/// The default [font size][crate::TextApi::set_font_size] (`dpem`) is passed
/// The default [font size][crate::Text::set_font_size] (`dpem`) is passed
/// as a reference.
///
/// For plain text this iterator will be empty.
Expand Down
Loading

0 comments on commit 6e391f8

Please sign in to comment.