#Custom Font

1 messages · Page 1 of 1 (latest)

drowsy tusk
#

I dont know how to drawString with custom font

crystal orbitBOT
#

<@&987246399047479336> please have a look, thanks.

drowsy tusk
#

but i want custom font from internet i want Jersey15

#

i already downloaded it and put it in my folder

magic dome
#

what kind of ui lib are we talking about?

#

swing? javafx? just rendering on a bufferedimage?

#

or 3d stuff? libgdx perhaps?

drowsy tusk
#

wdym

vital zenith
#

where do you want to display custom font?
do you have a gui?

drowsy tusk
#

yes

#

in this

vital zenith
#

which library do you use for your gui?

drowsy tusk
worldly coral
#

Well which classes are you using?

#

OpenFX/Swing/Wicket/Vaadin/... ?

vital zenith
#

I would guess you are using swing which would use stuff like JFrame, JPanel etc

magic dome
#

just share the imports of one of ur gui classes

#

first lines

drowsy tusk
#

can you tell me how i can check that like i know its lame or something like this but im doing client for mc

#

kk

magic dome
#

minecraft, ah

drowsy tusk
#

package echo.ui;

import echo.utils.Wrapper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiIngame;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.ResourceLocation;

import java.awt.Color;
import java.awt.Font;
import java.awt.FontFormatException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

import echo.font.CustomFontLoader;
import echo.font.TrueTypeFont;
import echo.modules.Module;
import echo.modules.ModuleManager;

import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;

import com.mojang.realmsclient.gui.ChatFormatting;

magic dome
#

u want to have the font inside mc or in ur client?

#

aren't mc clients illegal? @vital zenith

drowsy tusk
#

i want to drawStringWithShadow on my screen in left cornder with coordinates

magic dome
vital zenith
worldly coral
drowsy tusk
#

can u explain me what are you talking about i dont understand what do you mean "with class is it on"

magic dome
#

afaik mc mods are okay, but not making unofficial clients

vital zenith
magic dome
magic dome
drowsy tusk
#

its not

magic dome
#

ur making a minecraft client

#

not just a mc mod

drowsy tusk
#

and

#

you know lunar or feather

magic dome
#

and that's against minecrafts ToS

drowsy tusk
#

its all legal

magic dome
#

possibly mojang doesnt sanction them, but they are against their rules as well

vital zenith
#

and lunar "client" is actually an all-in-one modpack

drowsy tusk
#

and i want to make something like lunar

#

with minecraft mods

#

like displaying coordinaTES

#

and that s why i want to use custom font its all for visuals

#

so can u help me?

magic dome
#

can u share a full screenshot of ur GUI so we can get a better understanding of what it is and what it is not?

drowsy tusk
#

ok

vital zenith
#

I think this is actually fair, it isnt really clear in the eula, this is the important part i guess:

Remember that a Mod means something that is your original work and that does not contain a substantial part of our code or content. You only own what you created; you do not own our code or content.

magic dome
#

we want to be on the safe side here

drowsy tusk
magic dome
#

we don't risk getting our 35k+ people server shut down bc of one individual who needs help making sth for mc that may or may not be okay

vital zenith
drowsy tusk
#

but im not asking for somethinagainst the rules all i want is help with using font

magic dome
#

does ur "client" run minecraft or only forward to the real minecraft client

drowsy tusk
#

ok

#

thats coordinates

magic dome
#

what is fr

drowsy tusk
drowsy tusk
magic dome
#

so its a minecraft specific thing

drowsy tusk
#

yes

magic dome
#

either case, we cant help u with that unless u can clear all the doubts

#

u haven't really explained much about what ur project is

#

other than saying it's a mc client

drowsy tusk
#

i will tell you

#

wait brb im going for launch

magic dome
#

does mc play within ur gui or do u forward to the normal mc launcher when someone presses the play button in ur gui?

#

if u only offer setuo utility but the game plays in the official gui and client, it's okay as i understand it

vital zenith
#

basically prove that you arent doing sketchy things

magic dome
#

otherwise, if ur gui renders mc, u could easily cheat for example and hence why modified clients aren't allowed

#

like, playing mc itself is only allowed within the official gui/launcher/client

#

if u offer some form of setup/utility extra client as step beforehand, that's okay

#

as long as it then only forwards to the real client

#

but judging from ur imports it's sounds like ur client is running mc

#

and hence not allowed

vital zenith
#

yeah, if you would create a mod then you would probably rather use something like forge or fabric

drowsy tusk
#

so if im doing so it displays coordinates in bottom right so its against the rules?

magic dome
#

yes

#

if ur code runs mc, its against rules already

#

even if u dont add any features

drowsy tusk
#

but im asking for help with font but font isnt against the rules so youcan help me

magic dome
#

ofc if u don't add anything bad chances are mojang likely wont do much against u. but thats the point where u wont get help from people who want to stay safe anymore

drowsy tusk
#

or am i wrong

magic dome
#

we cant support u progressing in this project

drowsy tusk
#

ok but im not asking for coding fore me

#

i just want to tell me how do make difrtent font

#

and thats all legal

magic dome
#

u need to find someone who knows about this minecraft api that ur using - not a general java dev

magic dome
drowsy tusk
#

but font is not illeagal

vital zenith
#

thats like saying "opening a lock" isnt illegal, thus help me break into someones house

magic dome
#

i understand ur frustration. but these are our rules, kindly understand when given a "no"

drowsy tusk
#

ok...

#

so ty i guess

magic dome
#

we would be supporting u on ur journey on making sth that technically violates minecraft tos, which is explicitly against discord tos and any server allowing such content can be shutdown by discord. which is not sth we want to risk

#

(even if the risk is likely small in ur case)

drowsy tusk
#

ok ty have a nice day