GithubHelp home page GithubHelp logo

Font issue? about endlessclient HOT 24 CLOSED

dgadelha avatar dgadelha commented on September 24, 2024
Font issue?

from endlessclient.

Comments (24)

dgadelha avatar dgadelha commented on September 24, 2024

Oh, also tried to set BackColor to Transparent, and it got worse.

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

Are you developing in a VM? That's the only time I've had that issue (MessageBox that you screencapped), because hardware acceleration is disabled. Development in a VM is not supported.

Also if you're on Win10 I haven't tested anything for that yet, and I know there are other graphics driver issues reported on eoserv.net for the regular client. I have an AMD GPU (I think the issues were for NVIDIA cards)

The font bug, I haven't come across - but it may be related to the above issues that I mentioned. One of my friends changed the development to use System.Drawing for font rendering which might cause some unknown issues.

Checking out your pull request for testing, I noticed that the font rendered improperly for me when set to "Segoe UI" but "Segoe UI Regular" worked fine. I'm guessing you may have a missing font (which is weird since I think Microsoft Sans Serif is standard in Windows...)

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

I'm developing on a real machine, with an old graphics card. That's why it won't run on HiDef

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

Do you have up-to-date drivers? Also what OS are you on (can't tell from the screenshot) and what GPU is it exactly? You should be able to see GPU info in dxdiag.exe

I'd like to investigate this since it's very likely an issue with how I do fonts but it seems tied to your specific system

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

Latest supported graphics version.

dx1

dx2

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

The font on EOScrollingDialog works great, can you check how to implement everywhere?
Look below, text on text box is "bugged" and, at EOScrollingDialog isn't. The issue can be on your XNAControls.XNALabel.

eo

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

Value of Game.DrawText() on XNALabel's GenerateImage:

As you see, even the text being Magenta, it looks shitty and looks like it has a Black background.
This can be related to HiDef, as I said, 'cause it's related to XNAFramework.Game.DrawText, but I think we can work on a fix for this, or test if on MonoGame this resolves.

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

I think EOScrollingDialog uses XNA / SpriteFont to render fonts, which might have an effect. XNALabel uses System.Drawing. I'm going to build out a Windows 10 VM to investigate and test this, but it may take a couple of days. I also don't see why your GPU shouldn't be able to handle rendering the game in HiDef.

Also see this topic on eoserv.net - apparently Windows 10 and NVIDIA don't play nicely yet. (or requires a patch)

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

Well, bad thing is that original EO client works good, while this doesn't.

from endlessclient.

Rubes avatar Rubes commented on September 24, 2024

I'm getting this issue too on Windows 7. An older version of the client that I had on my computer works, though.

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

I guess label should be changed to confirmed then.

from endlessclient.

Rubes avatar Rubes commented on September 24, 2024

Yeah. The client I have from 5/13/15 displays everything correctly but the newest version doesn't. I've fiddled with it a lot and still end up with a choppy outline.

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

Hmmm. That's annoying. I think the only thing I've changed since then is removing the Text Rendering Hint because I couldn't see a purpose to it. That might be what's causing it.

I still don't have a system I can test this on, since it works fine on my computer. Hopefully when I upgrade to Win10 it breaks for me too.

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

News?

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

I haven't had a chance to play around on Win10 yet. I'm hesitant to upgrade my primary dev environment because I've heard there are other issues with it.

I'll have a dedicated Win10 machine pretty soon that I can test this on and hopefully resolve.

from endlessclient.

squiblez avatar squiblez commented on September 24, 2024

If I'm not mistaken, this client was based on EODev no? I had this issue on 3 ATI machines, and an Intel. But I also tested it on an older nVidea budget GPU that didn't have the same problem. I also have it happening now on Windows 7, with my R7 260x but not on an HD6450 1gb.

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

If I'm not mistaken, this client was based on EODev no?

Not at all, it's built from scratch from the ground up. I used Hotdog's and Exile's sources as a reference for some rendering related things, and decompiled some of the EOSERV# libraries for packet things, but everything else I wrote myself.

I had this issue on 3 ATI machines, and an Intel. But I also tested it on an older nVidea budget GPU that didn't have the same problem. I also have it happening now on Windows 7, with my R7 260x but not on an HD6450 1gb.

Interesting. My build is getting outdated, I run an XFX Radeon HD 6770 GPU and an AMD Phenom II X2 560 CPU, Win8.1 x64 w/ VS2013.

I'll see about changing to using SpriteFont instead of System.Drawing for XNALabel. I'm thinking more and more that's probably the cause - perhaps newer graphics hardware just won't work with that method of font rendering.

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

Good news everyone, I've successfully reproduced the font error on my Windows 10/VS2015 system! So I can actually work on this bug now.

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

Lol, finally, Windows 10 FTL XD

from endlessclient.

Rubes avatar Rubes commented on September 24, 2024

Can't wait till this gets fixed, good luck

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

I'm getting pretty close. It involved a pretty big refactor of XNAControls. I'm cleaning up a few remaining display bugs but should have it in within the next couple of days.

from endlessclient.

Rubes avatar Rubes commented on September 24, 2024

Looking forward to the update!

from endlessclient.

dgadelha avatar dgadelha commented on September 24, 2024

yay!

from endlessclient.

ethanmoffat avatar ethanmoffat commented on September 24, 2024

Still a few remaining display bugs to clean up but the majority of work for this is done. Other remaining bugs are most likely due to issues with XNAControls.

Commit 9679936

from endlessclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.