#Changing font in drawString

65 messages · Page 1 of 1 (latest)

drifting anchor
#

I dont know how to chcange font so when i drawString it will draw it in changed font

pseudo deltaBOT
#

This post has been reserved for your question.

Hey @drifting anchor! 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.

dapper wigeon
#

You're supposed to change the font in the GraphicsContext

drifting anchor
#

could you tell me how to do that

dapper wigeon
#

Have you started with trying anything?

drifting anchor
dapper wigeon
#

So you've been talking about drawString().
Where do you do drawString(), how do you do it?

drifting anchor
#

i want to use drawString() with font i chosen (and thats what i cant do) for my game client

dapper wigeon
#

I don't care about what you want to do, I asked about what you actually do

drifting anchor
#

wdym what i actually do? i dont understand

dapper wigeon
#

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?

drifting anchor
#

ok wait

#

using fontrenderer

dapper wigeon
#

That was very thorough and informative

#

Do you want help or not?

drifting anchor
#

yes i want

#

yes i do*

dapper wigeon
#

Then when you're asked questions you're going to answer them

drifting anchor
#

ok

dapper wigeon
#

I asked how do you use drawString(). Full and complete response. Now

drifting anchor
#

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

dapper wigeon
#

Have you written any line of the program you're talking about?

drifting anchor
#

yes

#

i can showq you

dapper wigeon
#

Can you tell about that program, what it does, some lines?

drifting anchor
#

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

dapper wigeon
#

"fps" you have, like, in your desktop?

drifting anchor
#

no in game

dapper wigeon
#

in game? Your program measures the fps of a game that runs in parallel?

drifting anchor
#

yes

dapper wigeon
#

........ Dude

drifting anchor
#

?

dapper wigeon
#

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

drifting anchor
#

what?

dapper wigeon
#

what what

drifting anchor
#

so i cant do that?

#

and everything i want is to how use difrent font

dapper wigeon
#

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

drifting anchor
#

so can u help me pleasae?

dapper wigeon
#

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

drifting anchor
#

ok but i want to only know how to change the font

#

is it this really that difficult

dapper wigeon
#

How would I know? Ask people who do minecraft plugins.
What's so hard to understand in the blindingly obvious?

drifting anchor
#

do you know someoner?

dapper wigeon
# drifting anchor do you know someoner?

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

clever cedar
#

didnt daniel answer this in general btw

dapper wigeon
#

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

clever cedar
dapper wigeon
#

Unfortunately. But fundamentally, people who can't do that, also can't produce something with a programming language anyway

clever cedar
#

so anyway i found this link

#

@drifting anchor you can take a look at how its done here

drifting anchor
#

ok....

clever cedar
#

idk minecraft plugins that much so ye that should be a start