#Improve obfuscated text so it looks the way it used to

66 messages · Page 1 of 1 (latest)

shut flint
#

Ever since 1.13.1, obfuscated text (§k if you're more familiar than that) uses characters from GNU Unifont as well as those from the standard Minecraft font. Not only do I personally think this looks worse, it also eats up loads of RAM since every single character ends up cached, hurting performance. (https://bugs.mojang.com/browse/MC-277733) If only the characters from the actual Minecraft font were displayed in obfuscated text, this would considerably improve how obfuscated text both looks and runs.

Attached image shows how obfuscated text looks in different version ranges. The 1.7-1.12.2 look is what we're after - it includes all the accented and non-Latin characters that Minecraft defines textures for, while excluding everything that uses the fallback font.

shut flint
#

Implementation detail: perhaps there could be a way to define in font files where obfuscated characters can pull from and where they can't.

wide mantle
#

yummy ram

#

this can be done with mixins

rose owl
#

Should be a trivial client side mod

#

Id do it but I am still fixing my Kotlin mixin plugin

shut flint
#

interesting

high palm
#

I guess it’s time to take a look at fonts and formatting

high palm
#

@shut flint is there a preferred/target version?

shut flint
#

latest I suppose

#

1.21.4

high palm
#

Alright

high palm
#

I couldn't get the new obfuscated text to look exactly like the 1.7-1.12.2 version because of the changes to how obfuscated text works, but I think this looks decent

shut flint
#

Oh wow

high palm
#

I don't see the hundred files of atlas mentioned in the bug report, so I think I succeeded

#

(Space and unifont both look identical to default)

shut flint
#

opening the languages menu and scrolling through it should populate the unifont atlases I think

high palm
#

I'm running a new instance of Minecraft without my changes to see what is generated

#

Without changes:

high palm
shut flint
#

i forget, how long does review usually take

deep jay
shut flint
#

right

deep jay
#

(if everything goes as expected and the review doesn't find any issues w the mod)

high palm
#

I will let you know when it is approved

deep jay
#

thx 🔥

high palm
deep jay
#

awesome mod :3

#

btw, what's the difference between MIT-0 and CC-0?

high palm
#

Uh, I'm not a legal expert so I can't answer that properly

#

I don't actually know because I don't use CC-0 as a license

floral rain
# deep jay btw, what's the difference between MIT-0 and CC-0?

MIT allows you to do basically anything you want but requires attribution (and also contains a warranty disclaimer). CC-0 releases the work into the public domain in countries where one can do that and serves as a public domain equivlent license in countries where one cannot.

#

In short, you have zero obligations under CC0, and the obligation of attribution under MIT.

deep jay
floral rain
#

ahh, sry

deep jay
#

but rather Mit Zero (aka. MIT No Attribution)

#

which is the one the mod is using

floral rain
#

MIT 0 is a public domain equivlent license without the actual releasing that CC0 attempts to do

#

so you retain copyright but you essentially give up all your rights

#

whereas cc0 actually attempts to give up your copyright where you can

#

the difference is one that is important to lawyers and law-nerds and not really anyone else

deep jay
#

I see

#

very interesting

#

thanks!

shut flint
#

there is a bug where the missing glyph is displayed if something of width 9 is obfuscated:

#

/tellraw @p {"text": "ⓝ", "obfuscated": true}

#

after closer inspection, it seems like the game doesn't pick anything from the accented or nonlatin_european font files anymore

#

which it probably should be able to

#

we do just get the one atlas though

shut flint
#

opened some reports on github

high palm
#

I basically stop all unicode fonts from being candidates for obfuscated text so I’ll probably go back and only remove certain vanilla ones

shut flint
#

specifically blocking unifont should work I think?

high palm
#

Awesome I've run into a problem

#

I can't figure out how to get the font id from code

waxen python
#

this is pretty important

#

if you sign away your rights to the work in some jurisdictions like Germany the license is not valid

#

so it essentially is ARR in some countries

#

so with MIT-0 it's perfectly safe but CC0 isn't

shut flint
# high palm I can't figure out how to get the font id from code

instead of hardcoding it would it be possible to somehow add support for a new parameter in font json files that would effectively dictate whether obfuscated text can use characters from this font, and then just bundle a modified default.json inside the mod that sets it to false for unifont

floral rain
#

But some European countries do have interesting copyright laws so who knows