Skip to content

Commit 2c12525

Browse files
committed
Compatibility with recent updates
1 parent 9c50ef2 commit 2c12525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/font.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ impl<T: FontTableProvider> Font<T> {
10691069
}
10701070
}
10711071

1072-
pub fn cff_table(&mut self) -> Result<Option<Rc<tables::CFF>>, ParseError> {
1072+
pub fn cff_table(&mut self) -> Result<Option<Arc<tables::CFF>>, ParseError> {
10731073
let provider = &self.font_table_provider;
10741074
self.cff_cache.get_or_load(|| {
10751075
let cff_data = provider.read_table_data(tag::CFF).map(Box::from)?;
@@ -1082,7 +1082,7 @@ impl<T: FontTableProvider> Font<T> {
10821082
})
10831083
}
10841084

1085-
pub fn cff2_table(&mut self) -> Result<Option<Rc<tables::CFF2>>, ParseError> {
1085+
pub fn cff2_table(&mut self) -> Result<Option<Arc<tables::CFF2>>, ParseError> {
10861086
let provider = &self.font_table_provider;
10871087
self.cff2_cache.get_or_load(|| {
10881088
let cff_data = provider.read_table_data(tag::CFF2).map(Box::from)?;

0 commit comments

Comments
 (0)