forked from nanoframework/nanoFramework.IoT.Device
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IFont.cs
31 lines (27 loc) · 1002 Bytes
/
IFont.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Iot.Device.Ssd13xx
{
/// <summary>
/// Base class for font implementation.
/// </summary>
public abstract class IFont
{
/// <summary>
/// Gets font width.
/// </summary>
public virtual byte Width { get; private set; }
/// <summary>
/// Gets font height.
/// </summary>
public virtual byte Height { get; private set; }
/// <summary>
/// Get the binary representation of the ASCII character from the font table.
/// </summary>
/// <param name="character">Character to look up.</param>
/// <returns>Array of bytes representing the binary bit pattern of the character.</returns>
public abstract byte[] this[char character] { get; }
}
}