Table of Contents

Class CidSystemInfo

Namespace
Egami.Fonts
Assembly
Egami.Fonts.dll

The character collection a CID-keyed font's CIDs belong to (its CFF ROS operator), such as Adobe-Japan1-7; PDF's CIDSystemInfo dictionary carries the same three values.

public sealed record CidSystemInfo : IEquatable<CidSystemInfo>
Inheritance
CidSystemInfo
Implements
Inherited Members

Examples

// A CIDFontType0 font with /CIDToGIDMap absent reaches glyphs by CID through the CFF charset.
CidSystemInfo? collection = cjk.CidSystemInfo;            // Adobe-Identity-0 for this font
ushort glyph = cjk.TryGetGlyphByCid(1, out ushort byCid) ? byCid : (ushort)0;
int cid = cjk.GetCid(glyph);

Constructors

CidSystemInfo(string, string, int)

The character collection a CID-keyed font's CIDs belong to (its CFF ROS operator), such as Adobe-Japan1-7; PDF's CIDSystemInfo dictionary carries the same three values.

public CidSystemInfo(string Registry, string Ordering, int Supplement)

Parameters

Registry string

The registry, such as "Adobe".

Ordering string

The ordering, such as "Japan1" or "Identity".

Supplement int

The supplement number.

Examples

// A CIDFontType0 font with /CIDToGIDMap absent reaches glyphs by CID through the CFF charset.
CidSystemInfo? collection = cjk.CidSystemInfo;            // Adobe-Identity-0 for this font
ushort glyph = cjk.TryGetGlyphByCid(1, out ushort byCid) ? byCid : (ushort)0;
int cid = cjk.GetCid(glyph);

Properties

Ordering

The ordering, such as "Japan1" or "Identity".

public string Ordering { get; init; }

Property Value

string

Registry

The registry, such as "Adobe".

public string Registry { get; init; }

Property Value

string

Supplement

The supplement number.

public int Supplement { get; init; }

Property Value

int