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
PolygonFont2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class PolygonFont2d
Constructors
PolygonFont2d()
Declaration
Fields
Characters
Declaration
public Dictionary<string, PolygonFont2d.CharacterInfo> Characters
Field Value
MaxBounds
Declaration
public AxisAlignedBox2d MaxBounds
Field Value
Methods
AddCharacter(String, GeneralPolygon2d[])
Declaration
public void AddCharacter(string s, GeneralPolygon2d[] polygons)
Parameters
GetCharacter(Char)
Declaration
public List<GeneralPolygon2d> GetCharacter(char c)
Parameters
Type |
Name |
Description |
Char |
c |
|
Returns
GetCharacter(String)
Declaration
public List<GeneralPolygon2d> GetCharacter(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
GetCharacterBounds(Char)
Declaration
public AxisAlignedBox2d GetCharacterBounds(char c)
Parameters
Type |
Name |
Description |
Char |
c |
|
Returns
HasCharacter(Char)
Declaration
public bool HasCharacter(char c)
Parameters
Type |
Name |
Description |
Char |
c |
|
Returns
ReadFont(Stream)
Declaration
public static PolygonFont2d ReadFont(Stream s)
Parameters
Type |
Name |
Description |
Stream |
s |
|
Returns
ReadFont(String)
Declaration
public static PolygonFont2d ReadFont(string filename)
Parameters
Type |
Name |
Description |
String |
filename |
|
Returns
Restore(PolygonFont2d, BinaryReader)
Declaration
public static void Restore(PolygonFont2d font, BinaryReader reader)
Parameters
Store(PolygonFont2d, BinaryWriter)
Declaration
public static void Store(PolygonFont2d font, BinaryWriter writer)
Parameters