#custom font

1 messages · Page 1 of 1 (latest)

tidal lilyBOT
#
**Someone will come and help soon!**

💬 While you wait, take this time to provide more context and details. What are you trying to achieve overall - maybe there's an easier way to solve this problem

🙇 If it's been 30 minutes and you're still waiting for someone to help, hit the Summon Helpers button to call the official helpers here

✅ Once your question has been resolved (or you no longer need it), hit the Resolve Question button or run /resolve

real panther
#

I think a good way would be to extract the vanilla assets, and see how it’s done there

proper quarry
#

like in the versions folder ?

real panther
#

Yeah, if you extract the version jar it gives you a bunch of Java classes and two folders: “data” and “assets”, where you can find the vanilla datapack and resource pack

proper quarry
#

found the bitmaps

#

and that

real panther
#

So yeah you can use any texture for those, they can have colours as well. As long as each character isn’t bigger than 128x128 or something

proper quarry
#

alright

real panther
#

Probably the include/default

proper quarry
#

gives me this gigantic thing

real panther
#

Yes, that’s the one

#

So that giant block of text is all the characters that are in your sprite sheet

#

The \u… is the Unicode code for the character, but I’m pretty sure you can also use just “a”, “b”, etc.

proper quarry
#

alr

#

so I can just copy that one in my ressourcepack right ?

real panther
#

Yes you can, and if you put it in a different namespace you can use it alongside the default font

proper quarry
real panther
#

If you use something like ‘{“text”:”a”,”font”:”namespace:font”}’, you can select your custom font

proper quarry
#

I use the namespace gun

real panther
#

That should work just fine, then the font is gun:emoji

proper quarry
#

so then I need to refer the .png after that I guess ?

real panther
#

Yes

real panther
proper quarry
#

so I need to delete the other blocks then

real panther
#

You probably won’t need those no

proper quarry
#

like this then

real panther
#

The nonlatin European is just weird characters like ß (queue the Germans taking over the thread)

real panther
# proper quarry

Yes so that one has all the ascii characters like the alphabet, 0-9, etc

proper quarry
#

alr

#

I already use the gun:emoji somewhere in my code but do I need to use the unicode or just the letter

real panther
#

So like, if you do [“a”] instead of the whole block, then the letter a will look like the full image

real panther
proper quarry
#

alright

#

gonna try it then

#

nope

#

doesnt work

real panther
#

What does your font look like now?

proper quarry
#

just an empty character

#

the whites

real panther
#

Hmm, and what does the JSON look like?

proper quarry
#

this one ?

real panther
#

Yeah

proper quarry
#

alr

#

it broke my lore x)

real panther