pub struct Gid(pub u16);Expand description
A glyph index into a Type1Font’s /CharStrings, in declaration order.
Type 1 has no glyph-index concept of its own — glyphs are named — so this
is our numbering, fixed by the order the dictionary declared them, which is
the same convention FreeType and read-fonts use.
Not interchangeable with pdfrum_font::Gid, which indexes whatever program
a face was loaded from. The two are separate index spaces that coincide
numerically only for a face that is a Type 1 program; pdfrum-font owns
the conversion between them.
Tuple Fields§
§0: u16Trait Implementations§
impl Copy for Gid
impl Eq for Gid
Source§impl Ord for Gid
impl Ord for Gid
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Gid
impl PartialOrd for Gid
impl StructuralPartialEq for Gid
Auto Trait Implementations§
impl Freeze for Gid
impl RefUnwindSafe for Gid
impl Send for Gid
impl Sync for Gid
impl Unpin for Gid
impl UnsafeUnpin for Gid
impl UnwindSafe for Gid
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