summaryrefslogtreecommitdiffstats
path: root/core/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-04-14 13:43:10 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-14 13:43:10 +0200
commit105b8bd5ad6ade1f203a0d8b0b93bd06f61f621a (patch)
tree4a5efa021b0dbe7d87ff57993c118753a32ea241 /core/src/text.rs
parentee105e3bee1bc676dcf3324693984ccda8e4e733 (diff)
parentdbbbadfc950dfdfd02c7abbbf993e0685ca0f64a (diff)
downloadiced-105b8bd5ad6ade1f203a0d8b0b93bd06f61f621a.tar.gz
iced-105b8bd5ad6ade1f203a0d8b0b93bd06f61f621a.tar.bz2
iced-105b8bd5ad6ade1f203a0d8b0b93bd06f61f621a.zip
Merge pull request #2382 from iced-rs/wgpu/better-architecture
Improved architecture for `iced_wgpu` and `iced_tiny_skia`
Diffstat (limited to 'core/src/text.rs')
-rw-r--r--core/src/text.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/src/text.rs b/core/src/text.rs
index 3f1d2c77..b30feae0 100644
--- a/core/src/text.rs
+++ b/core/src/text.rs
@@ -11,7 +11,6 @@ pub use paragraph::Paragraph;
use crate::alignment;
use crate::{Color, Pixels, Point, Rectangle, Size};
-use std::borrow::Cow;
use std::hash::{Hash, Hasher};
/// A paragraph.
@@ -192,9 +191,6 @@ pub trait Renderer: crate::Renderer {
/// Returns the default size of [`Text`].
fn default_size(&self) -> Pixels;
- /// Loads a [`Self::Font`] from its bytes.
- fn load_font(&mut self, font: Cow<'static, [u8]>);
-
/// Draws the given [`Paragraph`] at the given position and with the given
/// [`Color`].
fn fill_paragraph(