Jump to content

Snyker

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Snyker

  1. Oh damn it's work i just removed the font/ .... 😭 Thank you so much
  2. Ok so i try many things but no one worked... TTF file are placed on the same path of the json. All i try : 1.a) I follow what you said and replacing the default.json (in my modid/font/ AND minecraft/font) with the forge order to AFTER and BEFORE (notworking) : { "providers": [ { "type": "ttf", "file": "pixorcore:font_bitcell.ttf", //or minecraft:font_bitcell.ttf "shift": [0.0, -1.0], "size": 15, "oversample": 2.0 } ] } 1.b) I setup the Style to conform like EnchantmentNames : private static final ResourceLocation RHEAD = new ResourceLocation(Constants.MODID, "font/font_bitcell"); //ttf font private static final ResourceLocation RHEAD = new ResourceLocation(Constants.MODID, "font/bitcell"); //json public static final Style HEAD_STYLE = Style.EMPTY.withFont(RHEAD); 1.c) And applying it on my TextComponent#withStyle, the render is better but didn't work. i draw with the default font a text to debug and he didn't change at all. 2.a) Creating new "bitcell.json" in my modid/font with the content : (See 1.a) 2.b) I testing both path files like 1.b 2.c) Result are the same 1.c, nothing work Maybe i made some mistake with json files or other ? But i have trying everything i can, like changing path, name, path modid/minecraft i have always squares draw. i tested another font and its the same result.
  3. I think this isn't possible cause to load a ttf font you need to use the json file and you need to replace the "default.json" file ... and i want to keep the default font. I will try but i'm pretty sure this will not work Thanks for you repost you give me a little hope haha
  4. Hello, I am reaching out to you because I am unable to solve an update problem. I had a system for adding fonts (ttf) to Minecraft that worked very well for versions prior to 1.18. However, when I migrated to 1.18.2 and added new fonts, I am no longer able to "display" the characters, it only shows black squares. I hope someone can help me, you can see below all the code. I'm sure it's something simple but I really can't figure it out... (The code is really big) Result of my BufferedImage (GlyphPage) (it works fine, but it seems like it can't load the texture or something...) And this the result in game: Thanks for helping me...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.