Struct tex_glyphs::encodings::FontInfoStore
source · pub struct FontInfoStore<S: AsRef<str>, F: FnMut(&str) -> S> { /* private fields */ }
Expand description
A font info store takes care of parsing the pdftex.map
file and the .enc
and .pfb
files
to obtain information about fonts.
Implementations§
source§impl<S: AsRef<str>, F: FnMut(&str) -> S> FontInfoStore<S, F>
impl<S: AsRef<str>, F: FnMut(&str) -> S> FontInfoStore<S, F>
sourcepub fn new(get: F) -> Self
pub fn new(get: F) -> Self
Create a new font info store. The function get
is used to obtain the
full file paths of files based on their names; the canonical
implementation would be to call kpsewhich
.
sourcepub fn display_encoding<S2: AsRef<str>>(
&mut self,
name: S2
) -> Option<impl Display + '_>
pub fn display_encoding<S2: AsRef<str>>( &mut self, name: S2 ) -> Option<impl Display + '_>
Displays the FontInfo
and GlyphList
of a font as a Markdown table, as it would
appear in patches.md
.
Trait Implementations§
Auto Trait Implementations§
impl<S, F> RefUnwindSafe for FontInfoStore<S, F>where
F: RefUnwindSafe,
impl<S, F> Send for FontInfoStore<S, F>where
F: Send,
impl<S, F> Sync for FontInfoStore<S, F>where
F: Sync,
impl<S, F> Unpin for FontInfoStore<S, F>where
F: Unpin,
impl<S, F> UnwindSafe for FontInfoStore<S, F>where
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more