Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: FontPack.h
- Revision:
- 0:e4ea0ca99174
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/FontPack.h Thu Nov 04 23:00:34 2010 +0000
@@ -0,0 +1,33 @@
+namespace FontPack {
+
+
+typedef struct {
+ int nCols;
+ const char* col;
+ char getCol(int i) {
+ return col[i];
+ }
+} FontPackChar;
+
+
+
+
+/*
+FN: writeChar
+Function takes the char to write to the map, the map to write to,
+and where in the map to start the writing.
+RETURN: index in map after inserting char (the caret)
+*/
+int writeChar(char a, char map[], int index, int col = 0);
+/*FN: blank
+Inserts a blank.
+RETURN: index in map after inserting blank
+*/
+int blank(int index);
+
+/*
+FN: getChar
+RETURN: a struct encapsulating the requested char.
+*/
+FontPackChar getChar(char a);
+}
\ No newline at end of file