Skip to content

Commit

Permalink
upgrade to monobit 0.37.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robhagemans committed Mar 4, 2023
1 parent 3a0a3ec commit 2f4e737
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions monobit/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function showFont() {
import monobit
font, *_ = monobit.load(path)
raster = monobit.chart.chart(font, columns=32)
raster = monobit.chart(font, columns=32)
#raster = monobit.render(font, sample, direction='ltr f')
# scale for crisper result on JS canvas
Expand Down Expand Up @@ -352,13 +352,13 @@ async function setupPyodide() {
let pyodide = await loadPyodide();
await pyodide.loadPackage("micropip");
const micropip = pyodide.pyimport("micropip");
// do not await optional format dependencies
await Promise.all([
micropip.install("setuptools"),
micropip.install("lzma"),
micropip.install("monobit", /*keep_going*/ true, /*deps*/ false),
]);
micropip.install("lzma")
console.log('Pyodide setup complete.')
clearCanvas();
showFont();
return pyodide;
}

Expand Down

0 comments on commit 2f4e737

Please sign in to comment.