outlined fonts / (un-)antialiased fonts

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

outlined fonts / (un-)antialiased fonts

Postby Injector » Tue Jul 27, 2004 08:59

Hello everybody,

is it possible to automatically apply an outline to rendered font glyphs? If so, how?
Also, (how) can I tell freetype/CEGUI that I want certain fonts not to be antialiased?

Any help greatly appreciated.

Injector

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

outlined fonts / (un-)antialiased fonts

Postby CrazyEddie » Tue Jul 27, 2004 09:36

is it possible to automatically apply an outline to rendered font glyphs? If so, how?

I think the only time this would be easy is if FreeType supported it, which AFAIK it doesn't. You'd have to fake it somehow :?

Also, (how) can I tell freetype/CEGUI that I want certain fonts not to be antialiased?

I'll add an option for this to the Font class. Expect it in CVS by around Friday.

HTH

CE.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

outlined fonts / (un-)antialiased fonts

Postby CrazyEddie » Fri Jul 30, 2004 12:12

Support for non-antialiased fonts is now in the system. Though IMO this looks a bit iffy!

In the font definition XML file you now have an optional 'AntiAliased' attribute which can be set to "true" or "false".

For direct creation there is the NoAntiAlias creation flag.

For post creation modification there is a Font::setAntiAliased(bool setting); method (in addition to an isAntiAliased() query).

Hope this is useful for you :D

CE.

User avatar
Injector
Just popping in
Just popping in
Posts: 18
Joined: Wed Jan 12, 2005 12:06

outlined fonts / (un-)antialiased fonts

Postby Injector » Fri Jul 30, 2004 14:52

Once again: Thank you very much.

Personally I just think that anti-aliasing only looks good when the font is rendered in a reasonable size. Small fonts (say for a console system/command shell) look better unantialiased, imho.

Injector


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 17 guests