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
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Internal properties
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
Methods
Protected Static methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
Internal methods
|
Returns |
Name |
|---|---|
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
() |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
(
writer,
piref, |
Protected methods
|
Returns |
Name |
|---|---|
|
|
(
fontDescriptor, |
|
|
( |
|
|
() |
|
|
( |
|
|
( |
Protected internal methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
Public methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
( |
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 |
|---|---|---|
|
|
ttFile |
|
|
|
enc |
|
|
|
emb |
|
|
|
ttfAfm |
|
|
|
justNames |
|
|
|
forceRead |
Methods
GetTTCName
Source code
protected static string GetTTCName(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
FillTables
Source code
internal void FillTables()
GetNames
Source code
internal string GetNames(int id)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
id |
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 |
|---|---|---|
|
|
ttfAfm |
|
|
|
preload |
ReadStandardString
Source code
protected virtual string ReadStandardString(int length)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
length |
ReadUnicodeString
Source code
protected virtual string ReadUnicodeString(int length)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
length |
ReadGlyphWidths
Source code
protected virtual void ReadGlyphWidths()
GetGlyphWidth
Source code
protected internal virtual int GetGlyphWidth(int glyph)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
glyph |
ReadCMaps
Source code
internal void ReadCMaps()
ReadFormat12
Source code
internal Dictionary<int, int> ReadFormat12()
ReadFormat0
Source code
internal Dictionary<int, int> ReadFormat0()
ReadFormat4
Source code
internal Dictionary<int, int> ReadFormat4()
ReadFormat6
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 |
|---|---|---|
|
|
char1 |
|
|
|
char2 |
GetRawWidth
Source code
internal override int GetRawWidth(int c, string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
|
|
|
name |
GetFontDescriptor [1/2]
Source code
public virtual PdfDictionary GetFontDescriptor(PdfIndirectReference fontStream, string subsetPrefix, PdfIndirectReference cidset)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
fontStream |
|
|
|
subsetPrefix |
|
|
|
cidset |
GetFontBaseType
Source code
protected virtual PdfDictionary GetFontBaseType(PdfIndirectReference fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte[] shortTag)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
fontDescriptor |
|
|
|
subsetPrefix |
|
|
|
firstChar |
|
|
|
lastChar |
|
|
|
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 |
|---|---|---|
|
|
glyphs |
|
|
|
subsetp |
CompactRanges
Source code
protected static int CompactRanges(List<int[]> ranges)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
ranges |
AddRangeUni
Source code
public virtual void AddRangeUni(Dictionary<int, int[]> longTag, bool includeMetrics, bool subsetp)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
longTag |
|
|
|
includeMetrics |
|
|
|
subsetp |
WriteFont
Source code
internal override void WriteFont(PdfWriter writer, PdfIndirectReference piref, object[] parms)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
writer |
|
|
|
piref |
|
|
|
parms |
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 |
|---|---|---|
|
|
key |
|
|
|
fontSize |
GetMetricsTT
Source code
public virtual int GetMetricsTT(int c)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
HasKernPairs
Source code
public override bool HasKernPairs()
SetKerning
Source code
public override bool SetKerning(int char1, int char2, int kern)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
|
|
|
char2 |
|
|
|
kern |
GetRawCharBBox
Source code
protected override int GetRawCharBBox(int c, string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
|
|
|
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