cryptovoxels / issues

🐞 Bugs and issues to be resolved on cryptovoxels
5 stars 1 forks source link

Add sweet pixel fonts #86

Closed bnolan closed 4 years ago

bnolan commented 4 years ago

Add munro pixel font.

https://gist.github.com/bnolan/4b355696a0ca66a705c65a17c2b73455

I compiled munro.ttf using these steps:

https://forum.babylonjs.com/t/adding-a-new-font-for-meshwriter/2453/25 https://github.com/briantbutton/meshwriter-font

I had to edit the const converage in index.js of meshwriter-font to use the default-coverage in config.js.

You'll need to follow the instructions in here somewhere to compile a new meshwriter.js and stick it in vendor.

https://forum.babylonjs.com/t/adding-a-new-font-for-meshwriter/2453/25

We only want two fonts - the pixel font and the Helvetica font.

Then you'll want to configure polytext-worker to use munro - cruise around the world and take some screenshots and see if the discord wants us to change all the polytext to pixelfonts - or should we make it opt-in, in which case we want to add a dropdown to polytext.tsx where we can choose 'helvetica' or 'munro' as the font.

bnolan commented 4 years ago

If you're having trouble with the meshwriter code - try this:

https://github.com/ycw/Babylon.Font

bnolan commented 4 years ago

Done!