BaseFont Public class
Description
Summary description for BaseFont.
Diagram
flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf iTextSharp.text.pdf.BaseFont[[BaseFont]] class iTextSharp.text.pdf.BaseFont abstractStyle; end
Members
Properties
Public properties
|
Type |
Name |
Methods |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Methods
Public Static methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
Protected Static methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
Internal Static methods
|
Returns |
Name |
|---|---|
|
|
( |
Public methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
|
|
( |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
() |
|
|
() |
|
|
() |
|
|
() |
|
|
( |
|
|
( |
|
|
( |
Protected methods
|
Returns |
Name |
|---|---|
|
|
() |
|
|
( |
Internal methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
|
|
( |
|
|
(
writer,
piRef, |
Details
Summary
Summary description for BaseFont.
Nested types
Classes
-
StreamFont
Constructors
BaseFont
Source code
protected BaseFont()
Methods
CreateFont [1/7]
Source code
public static BaseFont CreateFont()
CreateFont [2/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
embedded |
CreateFont [3/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded, bool forceRead)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
embedded |
|
|
|
forceRead |
CreateFont [4/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
embedded |
|
|
|
cached |
|
|
|
ttfAfm |
|
|
|
pfb |
CreateFont [5/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
embedded |
|
|
|
cached |
|
|
|
ttfAfm |
|
|
|
pfb |
|
|
|
noThrow |
CreateFont [6/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow, bool forceRead)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
embedded |
|
|
|
cached |
|
|
|
ttfAfm |
|
|
|
pfb |
|
|
|
noThrow |
|
|
|
forceRead |
CreateFont [7/7]
Source code
public static BaseFont CreateFont(PRIndirectReference fontRef)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
fontRef |
IsVertical
Source code
public virtual bool IsVertical()
GetBaseName
Source code
protected static string GetBaseName(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
NormalizeEncoding
Source code
protected static string NormalizeEncoding(string enc)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
enc |
CreateEncoding
Source code
protected virtual void CreateEncoding()
GetRawWidth
internal abstract int GetRawWidth(int c, string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
|
|
|
name |
GetKerning
public abstract int GetKerning(int char1, int char2)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
|
|
|
char2 |
SetKerning
public abstract bool SetKerning(int char1, int char2, int kern)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
|
|
|
char2 |
|
|
|
kern |
GetWidth [1/2]
Source code
public virtual int GetWidth(int char1)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
GetWidth [2/2]
Source code
public virtual int GetWidth(string text)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
GetDescent
Source code
public virtual int GetDescent(string text)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
GetAscent
Source code
public virtual int GetAscent(string text)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
GetDescentPoint
Source code
public virtual float GetDescentPoint(string text, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
|
|
|
fontSize |
GetAscentPoint
Source code
public virtual float GetAscentPoint(string text, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
|
|
|
fontSize |
GetWidthPointKerned
Source code
public virtual float GetWidthPointKerned(string text, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
|
|
|
fontSize |
GetWidthPoint [1/2]
Source code
public virtual float GetWidthPoint(string text, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
|
|
|
fontSize |
GetWidthPoint [2/2]
Source code
public virtual float GetWidthPoint(int char1, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
|
|
|
fontSize |
ConvertToBytes [1/2]
Source code
public virtual byte ConvertToBytes(string text)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
text |
ConvertToBytes [2/2]
Source code
internal virtual byte ConvertToBytes(int char1)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
char1 |
WriteFont
internal abstract void WriteFont(PdfWriter writer, PdfIndirectReference piRef, object[] oParams)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
writer |
|
|
|
piRef |
|
|
|
oParams |
GetFullFontStream
public abstract PdfStream GetFullFontStream()
GetFontDescriptor
public abstract float GetFontDescriptor(int key, float fontSize)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
key |
|
|
|
fontSize |
SetFontDescriptor
Source code
public virtual void SetFontDescriptor(int key, float value)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
key |
|
|
|
value |
IsEmbedded
Source code
public virtual bool IsEmbedded()
IsFontSpecific
Source code
public virtual bool IsFontSpecific()
CreateSubsetPrefix
Source code
public static string CreateSubsetPrefix()
GetUnicodeDifferences
Source code
internal char GetUnicodeDifferences(int index)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
index |
GetFullFontName
Source code
public static string GetFullFontName(string name, string encoding, byte[] ttfAfm)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
ttfAfm |
GetAllFontNames
Source code
public static object GetAllFontNames(string name, string encoding, byte[] ttfAfm)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
ttfAfm |
GetAllNameEntries
Source code
public static string GetAllNameEntries(string name, string encoding, byte[] ttfAfm)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
|
|
|
encoding |
|
|
|
ttfAfm |
EnumerateTTCNames [1/2]
Source code
public static string EnumerateTTCNames(string ttcFile)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
ttcFile |
EnumerateTTCNames [2/2]
Source code
public static string EnumerateTTCNames(byte[] ttcArray)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
ttcArray |
GetUnicodeEquivalent
Source code
public virtual int GetUnicodeEquivalent(int c)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
GetCidCode
Source code
public virtual int GetCidCode(int c)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
HasKernPairs
public abstract bool HasKernPairs()
CharExists
Source code
public virtual bool CharExists(int c)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
SetCharAdvance
Source code
public virtual bool SetCharAdvance(int c, int advance)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
|
|
|
advance |
GetDocumentFonts [1/2]
Source code
public static List<object> GetDocumentFonts(PdfReader reader)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
reader |
GetDocumentFonts [2/2]
Source code
public static List<object> GetDocumentFonts(PdfReader reader, int page)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
reader |
|
|
|
page |
createBuiltInFontDictionary
Source code
internal static PdfDictionary createBuiltInFontDictionary(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
name |
GetCharBBox
Source code
public virtual int GetCharBBox(int c)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
GetFontMatrix
Source code
public virtual double GetFontMatrix()
GetRawCharBBox
protected abstract int GetRawCharBBox(int c, string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
c |
|
|
|
name |
CorrectArabicAdvance
Source code
public virtual void CorrectArabicAdvance()
AddSubsetRange
Source code
public virtual void AddSubsetRange(int[] range)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
range |
Properties
SubsetRanges
public virtual List<int> SubsetRanges { get; }
Encoding
public virtual string Encoding { get; }
FontType
public virtual int FontType { get; set; }
PostscriptFontName
public abstract string PostscriptFontName { get; set; }
Subfamily
public virtual string Subfamily { get; }
FullFontName
public abstract string FullFontName { get; }
AllNameEntries
public abstract string AllNameEntries { get; }
FamilyFontName
public abstract string FamilyFontName { get; }
CodePagesSupported
public virtual string CodePagesSupported { get; }
Widths
public virtual int Widths { get; }
Differences
public virtual string Differences { get; }
UnicodeDifferences
public virtual char UnicodeDifferences { get; }
ForceWidthsOutput
public virtual bool ForceWidthsOutput { get; set; }
DirectTextToByte
public virtual bool DirectTextToByte { get; set; }
Subset
public virtual bool Subset { get; set; }
CompressionLevel
public virtual int CompressionLevel { get; set; }
Generated with ModularDoc