mahjong icon indicating copy to clipboard operation
mahjong copied to clipboard

Improve tile legibility

Open Pomax opened this issue 4 years ago • 5 comments

  • [ ] use PNG instead of JPG
  • [ ] 2x res for high dpi?
  • [ ] sharpen numbers/letters

Pomax avatar Jun 23 '21 16:06 Pomax

Hi Pomax

Use an SVG file instead, that's what I'm using right now! Simply scale the SVG to the same size 549X400 and it works great. And it never loses quality.

Thank you

lexterror avatar Oct 14 '21 22:10 lexterror

Its especially crisp on mobile devices

http://electrolex.myartsonline.com/MJ/MJ/MJ/img/tiles/default-tileset.svg

As far as I remember we just needed a new bird

Thank you

lexterror avatar Oct 14 '21 22:10 lexterror

If you send me a really high DPI scan of your bird tile I could create an exact replica in vector format and it would not infringe on copyright. And you would have a complete vector tileset... Also you could easily adjust the colors in Inkscape for all the tiles.

lexterror avatar Oct 14 '21 22:10 lexterror

That's an option, but then it'd make far more sense to do the entire tileset, not just bamboo 1.

Also, while one might think that SVG solves the legibility problem, at small sizes the opposite is true. Entire books have been writing about the problem of rasterizing at orders of magnitude smaller than the graphics scale (i.e. the scale required for all coordinates in the vector data to be pure integers), the best known probably being http://rastertragedy.com, but the tl;dr is that SVG can be scaled up beautifully, but not scaled down without turning into a hot mess because there's no path hinting built into the SVG specification.

I like the idea of turning the existing tileset into SVG form, and I own several good typefaces for the lettering on them, but the smaller the images get (especially on the sidebar for example), the more the SVG form will be just as accurate as the bitmap form. That said, might still be worth doing to see which looks best across the various scales.

Pomax avatar Oct 17 '21 16:10 Pomax