From 7ef6cb31df0fe1ebec99b1077053a586a349f530 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Sep 2022 11:22:45 +0200 Subject: Bump ttf-parser --- src/library/text/mod.rs | 2 +- src/library/text/shaping.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/library') 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(); -- cgit v1.2.3