summaryrefslogtreecommitdiffstats
path: root/graphics/src/backend.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-20 06:22:17 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-20 06:50:36 +0200
commit5bc7cbf5bca039ec3a4cbe82b161c087a4b39680 (patch)
treedff3ec9474b4d598f73e1989681d362fd646cc2e /graphics/src/backend.rs
parent8ae4e28013ac2b4ae1c0a6d3b0672b59692e45d1 (diff)
downloadiced-5bc7cbf5bca039ec3a4cbe82b161c087a4b39680.tar.gz
iced-5bc7cbf5bca039ec3a4cbe82b161c087a4b39680.tar.bz2
iced-5bc7cbf5bca039ec3a4cbe82b161c087a4b39680.zip
Use subpixel glyph positioning and layout linearity
... for offsetting and scaling text
Diffstat (limited to '')
-rw-r--r--graphics/src/backend.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/graphics/src/backend.rs b/graphics/src/backend.rs
index ae89da06..6a082576 100644
--- a/graphics/src/backend.rs
+++ b/graphics/src/backend.rs
@@ -6,18 +6,6 @@ use iced_core::{Font, Point, Size};
use std::borrow::Cow;
-/// The graphics backend of a [`Renderer`].
-///
-/// [`Renderer`]: crate::Renderer
-pub trait Backend {
- /// Trims the measurements cache.
- ///
- /// This method is currently necessary to properly trim the text cache in
- /// `iced_wgpu` and `iced_glow` because of limitations in the text rendering
- /// pipeline. It will be removed in the future.
- fn trim_measurements(&mut self) {}
-}
-
/// A graphics backend that supports text rendering.
pub trait Text {
/// The icon font of the backend.