Changing font in drawString

I dont know how to chcange font so when i drawString it will draw it in changed font
50 Replies
JavaBot
JavaBot3w ago
This post has been reserved for your question.
Hey @Echo Development! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Kyo-chan
Kyo-chan3w ago
You're supposed to change the font in the GraphicsContext
Echo Development
Echo DevelopmentOP3w ago
could you tell me how to do that ???
Kyo-chan
Kyo-chan3w ago
Have you started with trying anything?
Echo Development
Echo DevelopmentOP3w ago
no because i dont know what to do
Kyo-chan
Kyo-chan3w ago
So you've been talking about drawString(). Where do you do drawString(), how do you do it?
Echo Development
Echo DevelopmentOP3w ago
i want to use drawString() with font i chosen (and thats what i cant do) for my game client
Kyo-chan
Kyo-chan3w ago
I don't care about what you want to do, I asked about what you actually do
Echo Development
Echo DevelopmentOP3w ago
wdym what i actually do? i dont understand
Kyo-chan
Kyo-chan3w ago
Like, riding a dragon. You probably want to. But you don't actually do drawString(). You say you want to use it so that it does some things. You also said that you use it already, but I imagine it doesn't do the things you wanted. So, the way you use it already, it's how?
Echo Development
Echo DevelopmentOP3w ago
ok wait using fontrenderer
Kyo-chan
Kyo-chan3w ago
That was very thorough and informative Do you want help or not?
Echo Development
Echo DevelopmentOP3w ago
yes i want yes i do*
Kyo-chan
Kyo-chan3w ago
Then when you're asked questions you're going to answer them
Echo Development
Echo DevelopmentOP3w ago
ok
Kyo-chan
Kyo-chan3w ago
I asked how do you use drawString(). Full and complete response. Now
Echo Development
Echo DevelopmentOP3w ago
ok (I dont understand what do you mean but ok...) if youre taling about how i use it here is how: i use FontRenderer fr = mc.fontRendererObj; then .drawString("(here name)", coordinate x, coordinate y, color) i already used it and now i want to use this again but with difrent font if this is not that you meant tell me what is it
Kyo-chan
Kyo-chan3w ago
Have you written any line of the program you're talking about?
Echo Development
Echo DevelopmentOP3w ago
yes i can showq you
Kyo-chan
Kyo-chan3w ago
Can you tell about that program, what it does, some lines?
Echo Development
Echo DevelopmentOP3w ago
ok first this strings i told you about draws number of fps you have or your coordinates and also my client name and now i want to use difrent font only for visuals
Kyo-chan
Kyo-chan3w ago
"fps" you have, like, in your desktop?
Echo Development
Echo DevelopmentOP3w ago
no in game
Kyo-chan
Kyo-chan3w ago
in game? Your program measures the fps of a game that runs in parallel?
Echo Development
Echo DevelopmentOP3w ago
yes
Kyo-chan
Kyo-chan3w ago
........ Dude
Echo Development
Echo DevelopmentOP3w ago
?
Kyo-chan
Kyo-chan3w ago
The point was to get you to admit you're not making a program, you're trying to make a Minecraft plugin. Which you were supposed to say from the beginning
Echo Development
Echo DevelopmentOP3w ago
what?
Kyo-chan
Kyo-chan3w ago
what what
Echo Development
Echo DevelopmentOP3w ago
so i cant do that? and everything i want is to how use difrent font
Kyo-chan
Kyo-chan3w ago
What you can't do is ask questions regarding writing text in general Java when you're trying to make a minecraft plugin And quite frankly, making things with a programming language require to understand a bunch of things. Normally someone who can do that kind of stuff would not need me to explain such an obvious thing. I think you need to progress
Echo Development
Echo DevelopmentOP3w ago
so can u help me pleasae?
Kyo-chan
Kyo-chan3w ago
I literally can't as I don't make minecraft plugins. And I would never have gotten involved, if you had done your job to specify this is specific to minecraft
Echo Development
Echo DevelopmentOP3w ago
ok but i want to only know how to change the font is it this really that difficult
Kyo-chan
Kyo-chan3w ago
How would I know? Ask people who do minecraft plugins. What's so hard to understand in the blindingly obvious?
Echo Development
Echo DevelopmentOP3w ago
do you know someoner?
ayylmao123xdd
ayylmao123xdd3w ago
show the code where you use drawstring
Kyo-chan
Kyo-chan3w ago
No, but you could have started to ask here, while nonidiotically mentioning that you're asking about minecraft. Also, it might be harder than just "changing fonts" in which case I wouldn't know that and the people who understand this technology would be unable to bear with you and how you say nothing useful
ayylmao123xdd
ayylmao123xdd3w ago
didnt daniel answer this in general btw
Kyo-chan
Kyo-chan3w ago
No, he did like me, assume people are smart and they wouldn't ask minecraft questions without saying it's about minecraft. His answer has nothing to do with minecraft
ayylmao123xdd
ayylmao123xdd3w ago
well thats kind of a bad assumption lmao
Kyo-chan
Kyo-chan3w ago
Unfortunately. But fundamentally, people who can't do that, also can't produce something with a programming language anyway
ayylmao123xdd
ayylmao123xdd3w ago
so anyway i found this link
ayylmao123xdd
ayylmao123xdd3w ago
GitHub
GitHub - Wiicart/Fonts: Brings convenient use of Unicode fonts to M...
Brings convenient use of Unicode fonts to Minecraft chat - Wiicart/Fonts
ayylmao123xdd
ayylmao123xdd3w ago
@Echo Development you can take a look at how its done here
Echo Development
Echo DevelopmentOP3w ago
ok....
ayylmao123xdd
ayylmao123xdd3w ago
idk minecraft plugins that much so ye that should be a start
JavaBot
JavaBot3w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?