pnorman / spirit

Creative Commons Zero v1.0 Universal
11 stars 1 forks source link

Build our own fontstack #22

Open pnorman opened 1 year ago

pnorman commented 1 year ago

Right now we're using a limited fontstack from go-spatial.github.io based on Open Sans Regular. This doesn't work well, as it has a limited selection of characters and is outside our control. Instead, we want a fontstack based on Noto.

bdon commented 1 year ago

Some potential overlap with https://github.com/maplibre/font-maker/issues/16

pnorman commented 1 year ago

Some potential overlap with maplibre/font-maker#16

I switched to using the font-maker release zip hosted on the OSM dev server for now. It's not ideal, but gets me to the right font.

astridx commented 3 months ago

@pnorman Do you think my version is something you want to build on: https://github.com/astridx/spirit Diff: https://github.com/pnorman/spirit/compare/main...astridx:spirit:fonts?expand=1

pnorman commented 3 months ago

@pnorman Do you think my version is something you want to build on: https://github.com/astridx/spirit Diff: https://github.com/pnorman/spirit/compare/main...astridx:spirit:fonts?expand=1

It's using fontnik, which hasn't been touched in 10 years. I'd strongly prefer one of the more recent options - I haven't researched what they are, but I know people are using some.

astridx commented 3 months ago

Thank you for your answer. It does not use https://github.com/mapbox/fontnik?tab=readme-ov-file but https://www.npmjs.com/package/fontnik (https://github.com/mapbox/node-fontnik), which was last changed last year.

pnorman commented 3 months ago

How does that compare with https://github.com/maplibre/font-maker or https://maplibre.org/font-maker/? Those are what #maplibre on the OSMUS discord is recommending