Search Results for

    Show / Hide Table of Contents

    Class PolygonFont2d

    This class represents an outline font, where the outline is composed of polygons. Each font is a list of GeneralPolygon2D objects, so each outline may have 1 or more holes. (In fact, the mapping is [string,list_of_gpolygons], so you can actually keep entire strings together if desired)

    Inheritance
    Object
    PolygonFont2d
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: g3
    Assembly: cs.temp.dll.dll
    Syntax
    public class PolygonFont2d

    Constructors

    PolygonFont2d()

    Declaration
    public PolygonFont2d()

    Fields

    Characters

    Declaration
    public Dictionary<string, PolygonFont2d.CharacterInfo> Characters
    Field Value
    Type Description
    Dictionary<String, PolygonFont2d.CharacterInfo>

    MaxBounds

    Declaration
    public AxisAlignedBox2d MaxBounds
    Field Value
    Type Description
    AxisAlignedBox2d

    Methods

    AddCharacter(String, GeneralPolygon2d[])

    Declaration
    public void AddCharacter(string s, GeneralPolygon2d[] polygons)
    Parameters
    Type Name Description
    String s
    GeneralPolygon2d[] polygons

    GetCharacter(Char)

    Declaration
    public List<GeneralPolygon2d> GetCharacter(char c)
    Parameters
    Type Name Description
    Char c
    Returns
    Type Description
    List<GeneralPolygon2d>

    GetCharacter(String)

    Declaration
    public List<GeneralPolygon2d> GetCharacter(string s)
    Parameters
    Type Name Description
    String s
    Returns
    Type Description
    List<GeneralPolygon2d>

    GetCharacterBounds(Char)

    Declaration
    public AxisAlignedBox2d GetCharacterBounds(char c)
    Parameters
    Type Name Description
    Char c
    Returns
    Type Description
    AxisAlignedBox2d

    HasCharacter(Char)

    Declaration
    public bool HasCharacter(char c)
    Parameters
    Type Name Description
    Char c
    Returns
    Type Description
    Boolean

    ReadFont(Stream)

    Declaration
    public static PolygonFont2d ReadFont(Stream s)
    Parameters
    Type Name Description
    Stream s
    Returns
    Type Description
    PolygonFont2d

    ReadFont(String)

    Declaration
    public static PolygonFont2d ReadFont(string filename)
    Parameters
    Type Name Description
    String filename
    Returns
    Type Description
    PolygonFont2d

    Restore(PolygonFont2d, BinaryReader)

    Declaration
    public static void Restore(PolygonFont2d font, BinaryReader reader)
    Parameters
    Type Name Description
    PolygonFont2d font
    BinaryReader reader

    Store(PolygonFont2d, BinaryWriter)

    Declaration
    public static void Store(PolygonFont2d font, BinaryWriter writer)
    Parameters
    Type Name Description
    PolygonFont2d font
    BinaryWriter writer
    In This Article
    Back to top ViRGIS VR GIS