Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Changing the in-game font?


ZeoWorks
 Share

Recommended Posts

Hey guys, I was just wondering is it possible to change the font used to display Player and NPC names in the client through visual basic 6? and if so, how?

_Here is an example of the display name font I want to change:_
![](http://i50.tinypic.com/2ynfk3m.png)

Edit: i've checked through the client itself but I can't seem to find how, please help?

Many thanks! :)
~ZeoWorks
Link to comment
Share on other sites

@TheChoosenOne:

> find this client side
> ```
> GameFont = CreateFont(size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Georgia")
>
> ```Change the "Georgia" to what ever you want.
> (Need to be confirmed by some one)

Thank you for TheChoosenOne, but changing that doesn't seem to work.  Also, the code I have is:
```
GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font)
```I tried changing "Font" into something like "Minion Pro" but it didn't work.

Changing the Font variables in the "ModConstants" doesn't seem to work either.
Even when I add the code:
```
Call SetFont(FONT_NAME, FONT_SIZE)
```into the sub DrawText under Modtext, it only works for a few minutes then the client goes CRAZY.

Can someone help? Thanks! :)
Link to comment
Share on other sites

@Soul:

> Just read this tutorial (don't just copy it step for step, make sure you read the directions, they tell you how to change the font): [Memory Leak-Free Text Rendering](http://www.touchofdeathforums.com/smf2/index.php/topic,71691.0.html).

Thank you again Soul, everythings looking great again! This forum would be lost without you. ^_^
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...