Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI ignores anti-aliasing setting of client machine (Windows 7) #801

Closed
germanicianus opened this issue Mar 16, 2018 · 3 comments
Closed
Labels
bug S5 mini severity 5 - mini - cosmetic problem like misspelled words or misaligned text

Comments

@germanicianus
Copy link
Contributor

Despite anti-aliasing is disabled on the client machine, the UI has it enabled. Compare the following two cutouts of one screenshot. It's already visible at original size and cannot be overlooked when enlarged to 200 %.

Some Chinese characters (complete translation not available yet) are anti-aliased, some are not which makes the anti-aliased characters unclear the label lines wiggly. This may be a font issue where some characters are taken from the primary font, but others are not available and are taken from a substitute font.

font-anti-aliasing_comparison

@germanicianus germanicianus changed the title UI ignores ant-aliasing setting on client machine (Windows 7) UI ignores ant-aliasing setting of client machine (Windows 7) Mar 16, 2018
@micheljung
Copy link
Member

Not that I'm an expert in this, but JavaFX doesn't use the OS' font rendering (after all, it's platform independent and aims to look the same on all OS').

See also: How to force anti-aliasing in JavaFX fonts and JavaFX Font Rendering Bug & Workaround (Linux)

@germanicianus
Copy link
Contributor Author

germanicianus commented Mar 17, 2018

I'm coming from Swing, so I am neither an expert in this :) . It's just a minor glitch which we should track that it doesn't get lost. In the end it's currently just a bit strange to the eye for Asian characters. Maybe we find some time to have a look at it :) .

Swing respects the OS' settings - shot on my machine:
swing_dialog

@germanicianus germanicianus changed the title UI ignores ant-aliasing setting of client machine (Windows 7) UI ignores anti-aliasing setting of client machine (Windows 7) Mar 18, 2018
@germanicianus
Copy link
Contributor Author

germanicianus commented Mar 19, 2018

So JavaFX' goal is different from the Swing goal which tries to mimic the OS Look'n'Feel as well as possible.

I've tried the following options and also searched the net, but I only was able to change the anti-aliasing, but not to disable it completely. At least the colored (sub-pixel) anti-aliasing can be changed to gray-anti-aliasing.

-Dprism.lcdtext=false
-Dprism.subpixeltext=false
-Dprism.text=t2k

But I've also found an interesting article titled JavaFx 8 command line options.

@germanicianus germanicianus added the S5 mini severity 5 - mini - cosmetic problem like misspelled words or misaligned text label Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug S5 mini severity 5 - mini - cosmetic problem like misspelled words or misaligned text
Projects
None yet
Development

No branches or pull requests

3 participants