Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterwb committed Apr 22, 2021
1 parent ebddef1 commit 50762da
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[**Download**](https://github.com/runestar/fonts/releases/latest) in OpenType or TrueType

All 10 fonts with all 192 characters exactly as appears in-game
Every font with all characters exactly as appears in-game

| Name | Preview | Size | ID | Client Name | [Cache Name](https://github.com/runestar/cache-names) |
| --- | --- | --- | --- | --- | --- |
Expand Down Expand Up @@ -220,4 +220,8 @@ Supported characters:
| ý | 253 | LATIN SMALL LETTER Y WITH ACUTE |
| þ | 254 | LATIN SMALL LETTER THORN |
| ÿ | 255 | LATIN SMALL LETTER Y WITH DIAERESIS |
| Œ | 338 | LATIN CAPITAL LIGATURE OE |
| œ | 339 | LATIN SMALL LIGATURE OE |
| Ÿ | 376 | LATIN CAPITAL LETTER Y WITH DIAERESIS |
|| 8212 | EM DASH |
|| 8364 | EURO SIGN |
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from fontTools.ttLib.tables._g_a_s_p import *

logging.basicConfig(level=logging.WARNING)
revision = '1.102'
revision = '1.103'
timestamp = timestampNow()


Expand Down Expand Up @@ -112,7 +112,7 @@ def make_font(json, ttf, ttx, otf):
head.modified = head.created = timestamp
head.magicNumber = 0x5F0F3CF5
head.tableVersion = 1.0
head.fontRevision = revision
head.fontRevision = float(revision)
head.checkSumAdjustment = 0
head.unitsPerEm = max(16, 2 ** (maxPowerOfTwo(data['maxDim'] - 1) + 1))
head.xMin = head.yMin = head.xMax = head.yMax = 0 # auto
Expand Down Expand Up @@ -193,7 +193,7 @@ def make_font(json, ttf, ttx, otf):
width = glyph['width']
for i, p in enumerate(glyph['pixels']):
x += 1
if i % width is 0:
if i % width == 0:
x = 0
y -= 1
if p == 1:
Expand Down
32 changes: 32 additions & 0 deletions data/RuneScape/RuneScape-Bold-12.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,38 @@
"advance" : 10,
"leftBearing" : 1,
"pixels" : [ 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0 ]
}, {
"codePoint" : 338,
"topBearing" : 3,
"height" : 9,
"width" : 12,
"advance" : 13,
"leftBearing" : 1,
"pixels" : [ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
}, {
"codePoint" : 8212,
"topBearing" : 7,
"height" : 1,
"width" : 8,
"advance" : 10,
"leftBearing" : 1,
"pixels" : [ 1, 1, 1, 1, 1, 1, 1, 1 ]
}, {
"codePoint" : 339,
"topBearing" : 6,
"height" : 6,
"width" : 11,
"advance" : 13,
"leftBearing" : 1,
"pixels" : [ 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1 ]
}, {
"codePoint" : 376,
"topBearing" : 0,
"height" : 12,
"width" : 6,
"advance" : 8,
"leftBearing" : 1,
"pixels" : [ 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0 ]
}, {
"codePoint" : 161,
"topBearing" : 2,
Expand Down
32 changes: 32 additions & 0 deletions data/RuneScape/RuneScape-Plain-12.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,38 @@
"advance" : 10,
"leftBearing" : 1,
"pixels" : [ 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0 ]
}, {
"codePoint" : 338,
"topBearing" : 2,
"height" : 10,
"width" : 11,
"advance" : 12,
"leftBearing" : 1,
"pixels" : [ 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1 ]
}, {
"codePoint" : 8212,
"topBearing" : 7,
"height" : 1,
"width" : 6,
"advance" : 8,
"leftBearing" : 1,
"pixels" : [ 1, 1, 1, 1, 1, 1 ]
}, {
"codePoint" : 339,
"topBearing" : 6,
"height" : 6,
"width" : 9,
"advance" : 11,
"leftBearing" : 1,
"pixels" : [ 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1 ]
}, {
"codePoint" : 376,
"topBearing" : 0,
"height" : 12,
"width" : 5,
"advance" : 7,
"leftBearing" : 1,
"pixels" : [ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
}, {
"codePoint" : 161,
"topBearing" : 2,
Expand Down

0 comments on commit 50762da

Please sign in to comment.