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
Methods
Public Static methods
Protected Static methods
Internal Static methods
Public methods
Protected methods
Internal methods
Details
Summary
Summary description for BaseFont.
Nested types
Classes
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 |
---|
string | name | |
string | encoding | |
bool | embedded | |
CreateFont [3/7]
Source code
public static BaseFont CreateFont(string name, string encoding, bool embedded, bool forceRead)
Arguments
Type | Name | Description |
---|
string | name | |
string | encoding | |
bool | embedded | |
bool | 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 |
---|
string | name | |
string | encoding | |
bool | embedded | |
bool | cached | |
byte``[] | ttfAfm | |
byte``[] | 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 |
---|
string | name | |
string | encoding | |
bool | embedded | |
bool | cached | |
byte``[] | ttfAfm | |
byte``[] | pfb | |
bool | 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 |
---|
string | name | |
string | encoding | |
bool | embedded | |
bool | cached | |
byte``[] | ttfAfm | |
byte``[] | pfb | |
bool | noThrow | |
bool | forceRead | |
CreateFont [7/7]
Source code
public static BaseFont CreateFont(PRIndirectReference fontRef)
Arguments
IsVertical
Source code
public virtual bool IsVertical()
GetBaseName
Source code
protected static string GetBaseName(string name)
Arguments
Type | Name | Description |
---|
string | name | |
NormalizeEncoding
Source code
protected static string NormalizeEncoding(string enc)
Arguments
Type | Name | Description |
---|
string | enc | |
CreateEncoding
Source code
protected virtual void CreateEncoding()
GetRawWidth
internal abstract int GetRawWidth(int c, string name)
Arguments
Type | Name | Description |
---|
int | c | |
string | name | |
GetKerning
public abstract int GetKerning(int char1, int char2)
Arguments
Type | Name | Description |
---|
int | char1 | |
int | char2 | |
SetKerning
public abstract bool SetKerning(int char1, int char2, int kern)
Arguments
Type | Name | Description |
---|
int | char1 | |
int | char2 | |
int | kern | |
GetWidth [1/2]
Source code
public virtual int GetWidth(int char1)
Arguments
Type | Name | Description |
---|
int | char1 | |
GetWidth [2/2]
Source code
public virtual int GetWidth(string text)
Arguments
Type | Name | Description |
---|
string | text | |
GetDescent
Source code
public virtual int GetDescent(string text)
Arguments
Type | Name | Description |
---|
string | text | |
GetAscent
Source code
public virtual int GetAscent(string text)
Arguments
Type | Name | Description |
---|
string | text | |
GetDescentPoint
Source code
public virtual float GetDescentPoint(string text, float fontSize)
Arguments
Type | Name | Description |
---|
string | text | |
float | fontSize | |
GetAscentPoint
Source code
public virtual float GetAscentPoint(string text, float fontSize)
Arguments
Type | Name | Description |
---|
string | text | |
float | fontSize | |
GetWidthPointKerned
Source code
public virtual float GetWidthPointKerned(string text, float fontSize)
Arguments
Type | Name | Description |
---|
string | text | |
float | fontSize | |
GetWidthPoint [1/2]
Source code
public virtual float GetWidthPoint(string text, float fontSize)
Arguments
Type | Name | Description |
---|
string | text | |
float | fontSize | |
GetWidthPoint [2/2]
Source code
public virtual float GetWidthPoint(int char1, float fontSize)
Arguments
Type | Name | Description |
---|
int | char1 | |
float | fontSize | |
ConvertToBytes [1/2]
Source code
public virtual byte ConvertToBytes(string text)
Arguments
Type | Name | Description |
---|
string | text | |
ConvertToBytes [2/2]
Source code
internal virtual byte ConvertToBytes(int char1)
Arguments
Type | Name | Description |
---|
int | char1 | |
WriteFont
internal abstract void WriteFont(PdfWriter writer, PdfIndirectReference piRef, object[] oParams)
Arguments
GetFullFontStream
public abstract PdfStream GetFullFontStream()
GetFontDescriptor
public abstract float GetFontDescriptor(int key, float fontSize)
Arguments
Type | Name | Description |
---|
int | key | |
float | fontSize | |
SetFontDescriptor
Source code
public virtual void SetFontDescriptor(int key, float value)
Arguments
Type | Name | Description |
---|
int | key | |
float | 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 |
---|
int | index | |
GetFullFontName
Source code
public static string GetFullFontName(string name, string encoding, byte[] ttfAfm)
Arguments
Type | Name | Description |
---|
string | name | |
string | encoding | |
byte``[] | ttfAfm | |
GetAllFontNames
Source code
public static object GetAllFontNames(string name, string encoding, byte[] ttfAfm)
Arguments
Type | Name | Description |
---|
string | name | |
string | encoding | |
byte``[] | ttfAfm | |
GetAllNameEntries
Source code
public static string GetAllNameEntries(string name, string encoding, byte[] ttfAfm)
Arguments
Type | Name | Description |
---|
string | name | |
string | encoding | |
byte``[] | ttfAfm | |
EnumerateTTCNames [1/2]
Source code
public static string EnumerateTTCNames(string ttcFile)
Arguments
Type | Name | Description |
---|
string | ttcFile | |
EnumerateTTCNames [2/2]
Source code
public static string EnumerateTTCNames(byte[] ttcArray)
Arguments
Type | Name | Description |
---|
byte``[] | ttcArray | |
GetUnicodeEquivalent
Source code
public virtual int GetUnicodeEquivalent(int c)
Arguments
GetCidCode
Source code
public virtual int GetCidCode(int c)
Arguments
HasKernPairs
public abstract bool HasKernPairs()
CharExists
Source code
public virtual bool CharExists(int c)
Arguments
SetCharAdvance
Source code
public virtual bool SetCharAdvance(int c, int advance)
Arguments
Type | Name | Description |
---|
int | c | |
int | advance | |
GetDocumentFonts [1/2]
Source code
public static List<object> GetDocumentFonts(PdfReader reader)
Arguments
GetDocumentFonts [2/2]
Source code
public static List<object> GetDocumentFonts(PdfReader reader, int page)
Arguments
createBuiltInFontDictionary
Source code
internal static PdfDictionary createBuiltInFontDictionary(string name)
Arguments
Type | Name | Description |
---|
string | name | |
GetCharBBox
Source code
public virtual int GetCharBBox(int c)
Arguments
GetFontMatrix
Source code
public virtual double GetFontMatrix()
GetRawCharBBox
protected abstract int GetRawCharBBox(int c, string name)
Arguments
Type | Name | Description |
---|
int | c | |
string | name | |
CorrectArabicAdvance
Source code
public virtual void CorrectArabicAdvance()
AddSubsetRange
Source code
public virtual void AddSubsetRange(int[] range)
Arguments
Type | Name | Description |
---|
int``[] | 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