Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Snyker

Members
  • Joined

  • Last visited

  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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.