Class PCScreenFont
Represents a font in the PC Screen Font (PCF) format.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Graphics.Fonts
Assembly: Cosmos.System2.dll
Syntax
public class PCScreenFont : Font
Constructors
| Improve this Doc View SourcePCScreenFont(Byte, Byte, Byte[], List<UnicodeMapping>)
Initializes a new instance of the PCScreenFont class.
Declaration
public PCScreenFont(byte width, byte height, byte[] data, List<UnicodeMapping> unicodeMappings)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | width | The width of a single character in pixels |
System.Byte | height | The height of a single character in pixels |
System.Byte[] | data | The PCF data. |
System.Collections.Generic.List<UnicodeMapping> | unicodeMappings | The mappings of Unicode characters to font indexes. |
Properties
| Improve this Doc View SourceDefault
Declaration
public static PCScreenFont Default { get; }
Property Value
Type | Description |
---|---|
PCScreenFont |
Methods
| Improve this Doc View SourceCreateVGAFont()
Converts the PC screen font to a VGA font.
Declaration
public byte[] CreateVGAFont()
Returns
Type | Description |
---|---|
System.Byte[] |
LoadFont(Byte[])
Loads the given PC Screen Font using the given raw data array.
Declaration
public static PCScreenFont LoadFont(byte[] fontData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | fontData | The raw PCF data. |
Returns
Type | Description |
---|---|
PCScreenFont |
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | Thrown when a PCF version 2 file is provided. |
System.ArgumentException | Thrown when the provided font data is incorrect. |
System.ArgumentNullException | Thrown when |