1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::io::Result;
use std::rc::Rc;

use opentype::truetype::NamingTable;
use typeface::Tape;

use crate::formats::opentype::cache::Cache;

/// Multilingual strings.
pub type Names = Rc<NamingTable>;

pub(crate) fn read<T: Tape>(cache: &mut Cache<T>) -> Result<Names> {
    Ok(cache.naming_table()?.clone())
}