font.json

3.0 kB · json · 242 lines

1[2  {3    "fn": "font::glyph",4    "in": {5      "c": "a"6    },7    "out": [8      "01110",9      "10001",10      "11111",11      "10001",12      "00000"13    ],14    "note": "the five bitmap rows of the rounded lowercase a"15  },16  {17    "fn": "font::raster::raster",18    "in": {19      "text": "42"20    },21    "out": [22      [23        1,24        0,25        0,26        0,27        1,28        0,29        1,30        1,31        1,32        1,33        134      ],35      [36        1,37        0,38        0,39        0,40        1,41        0,42        0,43        0,44        0,45        0,46        147      ],48      [49        1,50        1,51        1,52        1,53        1,54        0,55        1,56        1,57        1,58        1,59        160      ],61      [62        0,63        0,64        0,65        0,66        1,67        0,68        1,69        0,70        0,71        0,72        073      ],74      [75        0,76        0,77        0,78        0,79        1,80        0,81        1,82        1,83        1,84        1,85        186      ]87    ],88    "note": "the text as one 0/1 grid, its trimmed glyphs a blank column apart"89  },90  {91    "fn": "font::path",92    "in": {93      "c": "M"94    },95    "out": [96      [97        4,98        099      ],100      [101        3,102        0103      ],104      [105        2,106        0107      ],108      [109        1,110        0111      ],112      [113        0,114        0115      ],116      [117        0,118        1119      ],120      [121        0,122        2123      ],124      [125        0,126        3127      ],128      [129        0,130        4131      ],132      [133        1,134        4135      ],136      [137        2,138        4139      ],140      [141        3,142        4143      ],144      [145        4,146        4147      ],148      [149        1,150        2151      ],152      [153        2,154        2155      ],156      [157        3,158        2159      ],160      [161        4,162        2163      ]164    ],165    "note": "the tuple-list crossing: the stroke order as (row, col) pairs"166  },167  {168    "fn": "font::animate::animate",169    "in": {170      "text": "MRLY",171      "pad": 1172    },173    "out": {174      "rows": 7,175      "cols": 25,176      "fps": 25,177      "frames": 51,178      "last": [179        26,180        27,181        28,182        29,183        30,184        32,185        33,186        34,187        35,188        36,189        38,190        44,191        48,192        51,193        53,194        55,195        57,196        63,197        69,198        73,199        76,200        78,201        80,202        82,203        88,204        94,205        95,206        96,207        97,208        98,209        101,210        103,211        105,212        107,213        113,214        123,215        126,216        128,217        130,218        132,219        138,220        139,221        140,222        141,223        142,224        144,225        145,226        146,227        147,228        148229      ]230    },231    "note": "the board, the rate, the frame count and the finished frame"232  },233  {234    "fn": "font::map",235    "in": {},236    "out": {237      "sha256": "735caa450d1d4ecd0251fd7991999cb51b3a7780efcc0b47364c7c05ca48fdd7",238      "len": 108239    },240    "note": "sha256 of serde's json of the whole table, which pins all 108 glyphs"241  }242]