Search Results for

    Show / Hide Table of Contents

    Class TrueTypeFontSubSet

    Inheritance
    object
    TrueTypeFontSubSet
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public class TrueTypeFontSubSet

    Constructors

    TrueTypeFontSubSet(string, byte[], Dictionary<int, int[]>, uint)

    Create a class to extact the subset stream of a font, given the glyphs used

    Declaration
    public TrueTypeFontSubSet(string fontname, byte[] rfarray, Dictionary<int, int[]> glyphsUsed, uint directoryOffset)
    Parameters
    Type Name Description
    string fontname
    byte[] rfarray
    Dictionary<int, int[]> glyphsUsed
    uint directoryOffset

    Fields

    directoryOffset

    Declaration
    protected uint directoryOffset
    Field Value
    Type Description
    uint

    fontPtr

    Declaration
    protected int fontPtr
    Field Value
    Type Description
    int

    glyfTableRealSize

    Declaration
    protected int glyfTableRealSize
    Field Value
    Type Description
    int

    glyphsInList

    Declaration
    protected List<int> glyphsInList
    Field Value
    Type Description
    List<int>

    glyphsUsed

    Declaration
    protected Dictionary<int, int[]> glyphsUsed
    Field Value
    Type Description
    Dictionary<int, int[]>

    locaShortTable

    Declaration
    protected bool locaShortTable
    Field Value
    Type Description
    bool

    locaTable

    Declaration
    protected int[] locaTable
    Field Value
    Type Description
    int[]

    locaTableRealSize

    Declaration
    protected int locaTableRealSize
    Field Value
    Type Description
    int

    newGlyfTable

    Declaration
    protected byte[] newGlyfTable
    Field Value
    Type Description
    byte[]

    newLocaTable

    Declaration
    protected int[] newLocaTable
    Field Value
    Type Description
    int[]

    newLocaTableOut

    Declaration
    protected byte[] newLocaTableOut
    Field Value
    Type Description
    byte[]

    outFont

    Declaration
    protected byte[] outFont
    Field Value
    Type Description
    byte[]

    rfarray

    Declaration
    protected byte[] rfarray
    Field Value
    Type Description
    byte[]

    tableGlyphOffset

    Declaration
    protected int tableGlyphOffset
    Field Value
    Type Description
    int

    tables

    Declaration
    protected SortedList<string, TableData> tables
    Field Value
    Type Description
    SortedList<string, TableData>

    Methods

    AssembleFont()

    Declaration
    protected void AssembleFont()

    ByteArrayToInt(byte[], int, int)

    Declaration
    public static int ByteArrayToInt(byte[] b1, int index, int alen)
    Parameters
    Type Name Description
    byte[] b1
    int index
    int alen
    Returns
    Type Description
    int

    ByteArrayToShort(byte[], int, int)

    Declaration
    public static short ByteArrayToShort(byte[] b1, int index, int alen)
    Parameters
    Type Name Description
    byte[] b1
    int index
    int alen
    Returns
    Type Description
    short

    ByteArrayToUInt(byte[], int, int)

    Converts a byte array to an uint value

    Declaration
    public static uint ByteArrayToUInt(byte[] b1, int index, int alen)
    Parameters
    Type Name Description
    byte[] b1
    int index
    int alen
    Returns
    Type Description
    uint

    ByteArrayToUShort(byte[], int, int)

    Declaration
    public static ushort ByteArrayToUShort(byte[] b1, int index, int alen)
    Parameters
    Type Name Description
    byte[] b1
    int index
    int alen
    Returns
    Type Description
    ushort

    CalculateChecksum(byte[])

    Declaration
    protected int CalculateChecksum(byte[] b)
    Parameters
    Type Name Description
    byte[] b
    Returns
    Type Description
    int

    CheckGlyphComposite(int)

    Declaration
    protected void CheckGlyphComposite(int glyph)
    Parameters
    Type Name Description
    int glyph

    CreateNewGlyphTables()

    Declaration
    protected void CreateNewGlyphTables()

    CreateTableDirectory()

    Declaration
    protected void CreateTableDirectory()

    Execute()

    Declaration
    public byte[] Execute()
    Returns
    Type Description
    byte[]

    FlatGlyphs()

    Declaration
    protected void FlatGlyphs()

    GetPostcriptName(int)

    Declaration
    public string GetPostcriptName(int offset)
    Parameters
    Type Name Description
    int offset
    Returns
    Type Description
    string

    LocaTobytes()

    Declaration
    protected void LocaTobytes()

    ReadBytes(int, byte[], int, int)

    Declaration
    public void ReadBytes(int nindex, byte[] b, int off, int len)
    Parameters
    Type Name Description
    int nindex
    byte[] b
    int off
    int len

    ReadLoca()

    Declaration
    protected void ReadLoca()

    WriteFontInt(int)

    Declaration
    protected void WriteFontInt(int n)
    Parameters
    Type Name Description
    int n

    WriteFontShort(int)

    Declaration
    protected void WriteFontShort(int n)
    Parameters
    Type Name Description
    int n

    WriteFontString(string)

    Declaration
    protected void WriteFontString(string s)
    Parameters
    Type Name Description
    string s
    In this article
    Back to top Generated by DocFX