A blocky survival game.

Reply To: Charset, Font, Color in Books

Home Forums MeseCraft Discussion Suggestions Charset, Font, Color in Books Reply To: Charset, Font, Color in Books

#4141
gd2shoe
Participant

I’m sorry, but I’m having trouble parsing.

I’m not familiar with the unicode bugs, but no, it isn’t.

Isn’t what? Isn’t a unicode bug? Isn’t incomplete unicode support in Minetest? Isn’t something else?

  • Your description seems like a bug in unicode support. At best, the font doesn’t support unicode. At worst, there’s a lack of unicode support in the server or render client.
  • A search for “unicode” at contentdb currently shows 2 mods, both uploaded or updated recently. Both of them use tga_encoder to push a texture to the client. This doesn’t sound like Minetest unicode support to me, but a workaround.
  • You seem to know how to change fonts in Minetest in a mod, and that has me curious. The api seems to only accept ‘normal’ and ‘mono’. It looks like a game might be able to ship with a replacement font and reference it in minetest.conf, but I haven’t played with this. BEWARE font licenses!

Beside, coffeeScryer did the same thing as i did but the words were displayed correctly.

I’m not familiar with whatever coffeeScryer may have done, and I don’t see it after a few searches. I’m not sure what you’re referring to, and I can’t compare yours and his to see what’s different.

To address your initial questions directly:

  • “Should san-serif be added?” — Purely a matter of opinion. I say yes, but have no strong feelings. At low res, I think sans-serif is generally better.
  • “Should the unicode character set be supported?” — If you feel like dedicating the effort to it. I think it would be better to insist that the Minetest platform adopt unicode support. This is under my belief that it doesn’t. I’d be happy to be wrong about this.
  • “Should the standard colors be supported?” — Yes. Aren’t they? I haven’t compared terminal colors to the colors offered by Minetest, but text coloring is one of the things that the engine and rederer do support. Of course, if you go the tga_encoder route, then you’ll either be at the mercy of the encoder, or you’ll need to inject color yourself (before or after the encode phase).
  • “Should the encoding of content be UTF-8?” — Preferably, yes. It’s the most common unicode encoding, and English is normally searchable even if it’s being read by a program that only understands ASCII. Any unicode text editor that can’t deal with UTF-8 is sorely lacking. (UTF-16 is annoying, and I’ve never seen UTF-32 in the wild.)