Patchouli

Patchouli

168M Downloads

Add night mode and support for custom font

Aythx opened this issue ยท 2 comments

commented

Patchouli Book's background is way too bright that makes me almost afraid of reading them, especially AT NIGHT.
It will be much better if it could have a dark background or a night mode.

I tried edit font/unicode_font.json a bit and it will be able to display custom font. Have it tested in modpacks and just works well.

{ "providers": [ { "type": "ttf", "file": "minecraft:biliw.otf", "shift": [0, 0], "size": 12.0, "oversample": 12.0 } ] } { "_comment": "Same as assets/minecraft/font/default.json, but without all the bitmap fonts (so the unicode font is all that is available)", "providers": [ { "type": "legacy_unicode", "sizes": "minecraft:font/glyph_sizes.bin", "template": "minecraft:font/unicode_page_%s.png" } ] }

Here are some images of the font i use, this font support both English and Simplified Chinese. I think it's much easier to read compare to unicode font.
If possible, add some client side configs so that players can choose which font should be displayed in patchouli books.

custom font
font 2

commented

If possible, add some client side configs so that players can choose which font should be displayed in patchouli books.

the user can just do this with their own resource pack, I don't see why a config is needed. I can make a wiki page about how to do that, if it makes it easier.

commented

If possible, add some client side configs so that players can choose which font should be displayed in patchouli books.

the user can just do this with their own resource pack, I don't see why a config is needed. I can make a wiki page about how to do that, if it makes it easier.

So, how would one do that? I'd really like to add a custom font to the book.