Aust1n46 / VentureChat

GNU General Public License v3.0
39 stars 49 forks source link

[Feature request] Unicode support #4

Closed Fer-Jg closed 2 years ago

Fer-Jg commented 2 years ago

Support for unicode chars to use with resource packs For example: \uEffb becomes image ... So I can do something like image using only Venture :)

zefir-git commented 2 years ago

You could simply copy-paste the raw character. \uEffb is

Fer-Jg commented 2 years ago

Where can I get that? xd When copy-pasting it, it literally just gives the "\uEffb" anywhere I paste it

zefir-git commented 2 years ago

Where can I get that? xd When copy-pasting it, it literally just gives the "\uEffb" anywhere I paste it

The format is \uXXXX where XXXX is the Unicode HEX code. You might be able to find the character that corresponds to a given code using a Unicode table, but I find it easier to use the browser's dev tools (F12) and to type console.log("\uXXXX")

On a side noteIt seems many servers are now using custom texture packs with fonts for special characters. Be advised that players can copy these characters and use them on signs, in books, on anvils and possibly in chat if you don't have a plugin to limit that. If your font has huge images (e.g. the server's logo), if sent in chat it might cover several lines of messages.
Fer-Jg commented 2 years ago

Thanks, it actually worked c: