Font Antialiasing?

Please post your suggestions to the server, webpage and forum in this forum!
Post Reply
USER_AVATAR
nobody
Posts: 7
Joined: Jan 20, 2013
Last login: 12 years ago
Played: 5 hours
Blocks Mined: 3,333
Achievements: 6

Font Antialiasing?

Post by nobody » Sun Jul 21, 2013 11:33 pm

I was wondering if there's a possibility of the addition of font antialiasing (for the custom chat).

This can easily be done with Graphics2D, my friend and I even have a really nice font renderer of ourselves that we'd be more than willing to let you guys use.

User avatar
Swifty
Premium 4
Location: United States, California
Accountname: _SwiftyFox
Posts: 244
Joined: Mar 27, 2013
Last login: 8 years ago
Played: 545 hours
Blocks Mined: 117,804
Achievements: 89

Re: Font Antialiasing?

Post by Swifty » Mon Jul 22, 2013 12:41 am

Que?

User avatar
Mr_Blobby
Banned
Premium 2
Accountname: blobbosezhi2
Posts: 968
Joined: Apr 15, 2011
Last login: 12 years ago
Played: 803 hours
Blocks Mined: 192,796
Achievements: 73

Re: Font Antialiasing?

Post by Mr_Blobby » Mon Jul 22, 2013 12:14 pm

Por que?

Seems rather pointless.
-Craftland Admin-
-In loving memory of Mr Blobby, departed 1999-

User avatar
nidefawl
Premium 6
Location: Germany
Posts: 718
Joined: Jan 27, 2011
Last login: 9 months ago
Played: 2,265 hours
Blocks Mined: 98,426
Achievements: 102

Re: Font Antialiasing?

Post by nidefawl » Tue Jul 23, 2013 8:32 pm

I wrote that fontrenderer myself over 2 years ago. I found that implementations of the Graphics2D class are Operating System/Virtual Machine dependent.

I get very good fonts on Windows 7. The results were a lot worse on MacOS.
Overall the results were better with the Antialiasing hint disabled.
I think antialiasing would give better results if I rendered the single Characters to a bigger texture.
Right now a single character doesn't use enough pixels to allow any interpolation between them.

Can you send me a screenshot of a font that you would think needs better antialising?

Those are the current hints that get used right now:

Code: Select all

        boolean useAA = false;
        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, useAA ? RenderingHints.VALUE_ANTIALIAS_ON : RenderingHints.VALUE_ANTIALIAS_OFF);
        g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, useAA ? RenderingHints.VALUE_TEXT_ANTIALIAS_ON : RenderingHints.VALUE_TEXT_ANTIALIAS_OFF);
        g.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_OFF);
        g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
        g.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
        g.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
        g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);
ImageImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests