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

[EO-Bugfix] Text drawing width.


emblem
 Share

Recommended Posts

This fixes text centering so it actually works correctly. No, it didn't work before.
I found out the problem when I tried to change the text and everything was magically no longer centered.

**Replace this:**
```
Public Sub SetFont(ByVal Font As String, ByVal Size As Byte)
    GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font)
    frmMainGame.Font = Font
    frmMainGame.FontSize = Size - 4
End Sub

```
**With this:**
```
Public Sub SetFont(ByVal Font As String, ByVal Size As Byte)
    GameFont = CreateFont(Size, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Font)
    frmMainGame.Font = Font
    frmMainGame.FontSize = Size - 5
End Sub

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