pub enum CharacterCollection {
AdobeJapan1,
AdobeGB1,
AdobeCNS1,
AdobeKorea1,
}Expand description
One of the four Adobe predefined character collections supported by this renderer.
The variant selects which crate::fonts::cid_mappings lookup table is
consulted to map a CID to a Unicode code point for the substituted-glyph
paint path.
Variants§
AdobeJapan1
Adobe-Japan1 (Japanese): JIS X 0208 / 0212, kana, kanji.
AdobeGB1
Adobe-GB1 (Simplified Chinese): GB 2312 + extensions.
AdobeCNS1
Adobe-CNS1 (Traditional Chinese): CNS 11643, Big5.
AdobeKorea1
Adobe-Korea1 (Korean): KS X 1001.
Implementations§
Source§impl CharacterCollection
impl CharacterCollection
Sourcepub fn cid_to_unicode(self, cid: u16) -> Option<u32>
pub fn cid_to_unicode(self, cid: u16) -> Option<u32>
Look up the Unicode code point for a CID under this collection.
Returns None for CIDs not in the collection’s mapping table — the
renderer should fall back to a .notdef paint preserving the advance
width.
Trait Implementations§
Source§impl Clone for CharacterCollection
impl Clone for CharacterCollection
Source§fn clone(&self) -> CharacterCollection
fn clone(&self) -> CharacterCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CharacterCollection
Source§impl Debug for CharacterCollection
impl Debug for CharacterCollection
impl Eq for CharacterCollection
Source§impl Hash for CharacterCollection
impl Hash for CharacterCollection
Source§impl Ord for CharacterCollection
impl Ord for CharacterCollection
Source§fn cmp(&self, other: &CharacterCollection) -> Ordering
fn cmp(&self, other: &CharacterCollection) -> Ordering
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 PartialEq for CharacterCollection
impl PartialEq for CharacterCollection
Source§impl PartialOrd for CharacterCollection
impl PartialOrd for CharacterCollection
impl StructuralPartialEq for CharacterCollection
Auto Trait Implementations§
impl Freeze for CharacterCollection
impl RefUnwindSafe for CharacterCollection
impl Send for CharacterCollection
impl Sync for CharacterCollection
impl Unpin for CharacterCollection
impl UnsafeUnpin for CharacterCollection
impl UnwindSafe for CharacterCollection
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.