summaryrefslogtreecommitdiff
path: root/src/library/text
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-30 11:22:45 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-30 11:23:09 +0200
commit7ef6cb31df0fe1ebec99b1077053a586a349f530 (patch)
treec4527c31521859bcb9c8ca5eafb14e6efb613bb0 /src/library/text
parent9db89b376da33f99867ca511fe701e067432196d (diff)
Bump ttf-parser
Diffstat (limited to 'src/library/text')
-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();