diff --git a/CommonUtil/Font8x8.cs b/CommonUtil/Font8x8.cs index cee9e6a..8fbb78c 100644 --- a/CommonUtil/Font8x8.cs +++ b/CommonUtil/Font8x8.cs @@ -18,7 +18,20 @@ using System.Collections.Generic; using System.Diagnostics; namespace CommonUtil { + /// + /// 8x8 monochrome cells. The right and bottom edges of each cell are left blank, + /// so glyphs can be packed tightly. + /// public static class Font8x8 { + /// + /// Returns an 8-byte array for the specified character. Each byte represents one + /// row. The first byte holds the top row, and the most significant bit in each + /// byte is the leftmost pixel. + /// + /// If no glyph is defined, returns the Unicode REPLACEMENT CHARACTER glyph. + /// + /// Requested character. + /// Reference to int[8] with data (do not modify contents). public static int[] GetBitData(char ch) { if (sBitData == null) { InitBitData(); diff --git a/PluginCommon/VisBitmap8.cs b/PluginCommon/VisBitmap8.cs index 8f5318e..6de27d0 100644 --- a/PluginCommon/VisBitmap8.cs +++ b/PluginCommon/VisBitmap8.cs @@ -141,8 +141,11 @@ namespace PluginCommon { } /// - /// Draws an 8x8 character on the bitmap. + /// Draws an 8x8 character cell on the bitmap. /// + /// + /// Might want a way to specify that the background shouldn't be drawn at all. + /// /// Bitma to draw on. /// Character to draw. /// X coord of upper-left pixel. @@ -168,5 +171,9 @@ namespace PluginCommon { yc++; } } + + // Character cell dimensions. + public static int CharWidth { get { return 8; } } + public static int CharHeight { get { return 8; } } } }