morepretty

This commit is contained in:
Ryan Oldenburg 2021-10-27 16:44:22 -05:00
parent a718fb6b1b
commit 4a0d9c29b8
5 changed files with 17 additions and 14 deletions

View file

@ -808,7 +808,9 @@ proc parseKernTable(buf: string, offset: int): KernTable =
else:
failUnsupported("Kern version")
proc parseCFFIndexOffsets(buf: string, start: var int, stripZero = false): seq[(int, int)] =
proc parseCFFIndexOffsets(
buf: string, start: var int, stripZero = false
): seq[(int, int)] =
proc getOffset(buf: string, offset, offSize: int): int =
var v = 0

View file

@ -32,6 +32,7 @@ import chroma, pixie, pixie/fileformats/bmp
block:
for bits in [32, 24]:
let image =
decodeBmp(readFile("tests/fileformats/bmp/knight." & $bits & ".master.bmp"))
let image = decodeBmp(readFile(
"tests/fileformats/bmp/knight." & $bits & ".master.bmp"
))
writeFile("tests/fileformats/bmp/knight." & $bits & ".bmp", encodeBmp(image))