summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
Diffstat (limited to 'src/library')
-rw-r--r--src/library/text/mod.rs2
-rw-r--r--src/library/text/shaping.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library/text/mod.rs b/src/library/text/mod.rs
index 934f5e15..c9bf2e57 100644
--- a/src/library/text/mod.rs
+++ b/src/library/text/mod.rs
@@ -22,7 +22,7 @@ pub use shift::*;
use std::borrow::Cow;
-use ttf_parser::Tag;
+use rustybuzz::Tag;
use crate::font::{FontMetrics, FontStretch, FontStyle, FontWeight, VerticalFontMetric};
use crate::library::prelude::*;
diff --git a/src/library/text/shaping.rs b/src/library/text/shaping.rs
index 16989acf..487b9090 100644
--- a/src/library/text/shaping.rs
+++ b/src/library/text/shaping.rs
@@ -1,7 +1,7 @@
use std::ops::Range;
use std::str::FromStr;
-use rustybuzz::{Feature, UnicodeBuffer};
+use rustybuzz::{Feature, Tag, UnicodeBuffer};
use super::*;
use crate::font::{Font, FontVariant};
@@ -407,7 +407,7 @@ fn shape_segment<'a>(
});
// Shape!
- let buffer = rustybuzz::shape(font.ttf(), &ctx.tags, buffer);
+ let buffer = rustybuzz::shape(font.rusty(), &ctx.tags, buffer);
let infos = buffer.glyph_infos();
let pos = buffer.glyph_positions();