Skip to content

Commit 2ce4e9e

Browse files
committed
add Font4x5
1 parent a437976 commit 2ce4e9e

File tree

2 files changed

+422
-0
lines changed

2 files changed

+422
-0
lines changed

modules/Font4x5.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright (c) 2020 Gordon Williams, Pur3 Ltd and MaBe. See the file LICENSE for copying permission. */
2+
/*
3+
4+
Usage:
5+
6+
```
7+
require("Font4x5").add(Graphics);
8+
g.setFont4x5();
9+
g.drawString("ESPRUINO ROCKS !");
10+
```
11+
*/
12+
exports.add = function(graphics) {
13+
graphics.prototype.setFont4x5 = function() {
14+
this.setFontCustom(atob("AAAAdBgGAfV8CfyBIiQKrcAMAA6IARcAFXVARxAAwABCEAAIAAGTAPx+BHwAvXoK1+DhPg7W4P1uCEPg/X4O1+ACgACoAIqIBSlAIqIIVQC9VAfR4P1UB0VA/FwP1qD9KAdGYPk+AHwAEHwPk2D4Qg+j4PweB0XA/RAHTeD9FgTWQIfgD4fg8HwPi+DZNgwfAJ1yD8QAwQYI/ABEEACEIIIAB9Hg/VQHRUD8XA/WoP0oB0Zg+T4AfAAQfA+TYPhCD6Pg/B4HRcD9EAdN4P0WBNZAh+APh+DwfA+L4Nk2DB8AnXICfiAGwAj8gIYQAA=="),' ',4,5);
15+
};
16+
};

0 commit comments

Comments
 (0)