Class Type1Font
public class Type1Font : FontProgram
- Inheritance
-
Type1Font
- Inherited Members
Constructors
Type1Font()
protected Type1Font()
Type1Font(string)
protected Type1Font(string baseFont)
Parameters
baseFont
string
Type1Font(string, string, byte[], byte[])
protected Type1Font(string metricsPath, string binaryPath, byte[] afm, byte[] pfb)
Parameters
Methods
CreateStandardFont(string)
protected static Type1Font CreateStandardFont(string name)
Parameters
name
string
Returns
GetCharacterSet()
public virtual string GetCharacterSet()
Returns
GetFontStreamBytes()
public virtual byte[] GetFontStreamBytes()
Returns
- byte[]
GetFontStreamLengths()
public virtual int[] GetFontStreamLengths()
Returns
- int[]
GetGlyph(string)
Find glyph by glyph name.
public virtual Glyph GetGlyph(string name)
Parameters
name
stringGlyph name
Returns
- Glyph
Glyph instance if found, otherwise null.
GetKerning(Glyph, Glyph)
public override int GetKerning(Glyph first, Glyph second)
Parameters
Returns
GetPdfFontFlags()
public override int GetPdfFontFlags()
Returns
HasKernPairs()
Checks if the font has any kerning pairs.
public override bool HasKernPairs()
Returns
InitializeGlyphs(FontEncoding)
Fills missing character codes in
codeToGlyph
map.
public virtual void InitializeGlyphs(FontEncoding fontEncoding)
Parameters
fontEncoding
FontEncodingto be used to map unicode values to character codes.
IsBuiltInFont()
public virtual bool IsBuiltInFont()
Returns
IsBuiltWith(string)
public override bool IsBuiltWith(string fontProgram)
Parameters
fontProgram
string
Returns
Process()
protected virtual void Process()
SetKerning(int, int, int)
Sets the kerning between two Unicode chars.
public virtual bool SetKerning(int first, int second, int kern)
Parameters
first
intthe first unicode char.
second
intthe second unicode char.
kern
intthe kerning to apply in normalized 1000 units.