TrueTypeFont Public class
Diagram
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph iTextSharp.text.pdf
iTextSharp.text.pdf.TrueTypeFont[[TrueTypeFont]]
iTextSharp.text.pdf.BaseFont[[BaseFont]]
class iTextSharp.text.pdf.BaseFont abstractStyle;
end
iTextSharp.text.pdf.BaseFont --> iTextSharp.text.pdf.TrueTypeFont
Members
Properties
Public properties
Internal properties
Methods
Protected Static methods
Internal methods
Protected methods
Protected internal methods
Public methods
Details
Inheritance
Nested types
Classes
FontHeader
HorizontalHeader
WindowsMetrics
Constructors
TrueTypeFont [1/2]
Source code
protected TrueTypeFont()
TrueTypeFont [2/2]
Source code
internal TrueTypeFont(string ttFile, string enc, bool emb, byte[] ttfAfm, bool justNames, bool forceRead)
Arguments
Type | Name | Description |
---|
string | ttFile | |
string | enc | |
bool | emb | |
byte``[] | ttfAfm | |
bool | justNames | |
bool | forceRead | |
Methods
GetTTCName
Source code
protected static string GetTTCName(string name)
Arguments
Type | Name | Description |
---|
string | name | |
FillTables
Source code
internal void FillTables()
GetNames
Source code
internal string GetNames(int id)
Arguments
GetAllNames
Source code
internal string GetAllNames()
CheckCff
Source code
internal void CheckCff()
Process
Source code
internal void Process(byte[] ttfAfm, bool preload)
Arguments
Type | Name | Description |
---|
byte``[] | ttfAfm | |
bool | preload | |
ReadStandardString
Source code
protected virtual string ReadStandardString(int length)
Arguments
Type | Name | Description |
---|
int | length | |
ReadUnicodeString
Source code
protected virtual string ReadUnicodeString(int length)
Arguments
Type | Name | Description |
---|
int | length | |
ReadGlyphWidths
Source code
protected virtual void ReadGlyphWidths()
GetGlyphWidth
Source code
protected internal virtual int GetGlyphWidth(int glyph)
Arguments
Type | Name | Description |
---|
int | glyph | |
ReadCMaps
Source code
internal void ReadCMaps()
Source code
internal Dictionary<int, int> ReadFormat12()
Source code
internal Dictionary<int, int> ReadFormat0()
Source code
internal Dictionary<int, int> ReadFormat4()
Source code
internal Dictionary<int, int> ReadFormat6()
ReadKerning
Source code
internal void ReadKerning()
GetKerning
Source code
public override int GetKerning(int char1, int char2)
Arguments
Type | Name | Description |
---|
int | char1 | |
int | char2 | |
GetRawWidth
Source code
internal override int GetRawWidth(int c, string name)
Arguments
Type | Name | Description |
---|
int | c | |
string | name | |
GetFontDescriptor [1/2]
Source code
public virtual PdfDictionary GetFontDescriptor(PdfIndirectReference fontStream, string subsetPrefix, PdfIndirectReference cidset)
Arguments
GetFontBaseType
Source code
protected virtual PdfDictionary GetFontBaseType(PdfIndirectReference fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte[] shortTag)
Arguments
Type | Name | Description |
---|
PdfIndirectReference | fontDescriptor | |
string | subsetPrefix | |
int | firstChar | |
int | lastChar | |
byte``[] | shortTag | |
GetFullFont
Source code
public virtual byte GetFullFont()
GetSubSet
Source code
protected internal virtual byte GetSubSet(HashSet2<int> glyphs, bool subsetp)
Arguments
Type | Name | Description |
---|
HashSet2 <int > | glyphs | |
bool | subsetp | |
CompactRanges
Source code
protected static int CompactRanges(List<int[]> ranges)
Arguments
Type | Name | Description |
---|
List <int``[] > | ranges | |
AddRangeUni
Source code
public virtual void AddRangeUni(Dictionary<int, int[]> longTag, bool includeMetrics, bool subsetp)
Arguments
Type | Name | Description |
---|
Dictionary <int , int``[] > | longTag | |
bool | includeMetrics | |
bool | subsetp | |
WriteFont
Source code
internal override void WriteFont(PdfWriter writer, PdfIndirectReference piref, object[] parms)
Arguments
ReadCffFont
Source code
public virtual byte ReadCffFont()
GetFullFontStream
Source code
public override PdfStream GetFullFontStream()
GetFontDescriptor [2/2]
Source code
public override float GetFontDescriptor(int key, float fontSize)
Arguments
Type | Name | Description |
---|
int | key | |
float | fontSize | |
GetMetricsTT
Source code
public virtual int GetMetricsTT(int c)
Arguments
HasKernPairs
Source code
public override bool HasKernPairs()
SetKerning
Source code
public override bool SetKerning(int char1, int char2, int kern)
Arguments
Type | Name | Description |
---|
int | char1 | |
int | char2 | |
int | kern | |
GetRawCharBBox
Source code
protected override int GetRawCharBBox(int c, string name)
Arguments
Type | Name | Description |
---|
int | c | |
string | name | |
IsWinAnsiSupported
Source code
internal bool IsWinAnsiSupported()
Properties
Rf
public virtual RandomAccessFileOrArray Rf { get; }
FileName
public virtual string FileName { get; }
Cff
public virtual bool Cff { get; }
DirectoryOffset
public virtual int DirectoryOffset { get; }
BaseFont
internal string BaseFont { get; }
PostscriptFontName
public override string PostscriptFontName { get; set; }
CodePagesSupported
public override string CodePagesSupported { get; }
FullFontName
public override string FullFontName { get; }
Subfamily
public override string Subfamily { get; }
AllNameEntries
public override string AllNameEntries { get; }
FamilyFontName
public override string FamilyFontName { get; }
MaxGlyphId
public int MaxGlyphId { get; }
Generated with ModularDoc