Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Default font for GUI text

From: henrikmk:gm:ail at: 9-Nov-2010 15:21

On Thu, Nov 4, 2010 at 6:09 AM, Duke Normandin <dukeofperl-ml1.net> wrote:
> The default GUI font used in REBOL 2.7.7 running on my Linux box seems > to need anti-aliasing; and to be bigger (for me). Any way to configure > that?
Why AA is not possible needs an explanation: The REBOL 2 graphics engine is actually two engines: One that has always been there and provides basic text, square shapes, some fixed functions as well as a simple effects pipeline for false color, contrast, tint, blur, etc, as well as event processing. This is the engine used for the GUI (VID) and it cannot do anti-aliasing and is rigid and limited. It will not be developed any more. The other engine is the AGG, Anti-Grain Graphics engine, which provides freeform drawing capabilities and can render complex shapes. It's accessed by using it as an effect of the first engine, or by using the DRAW function directly on an image. It provides fairly OK anti-aliasing and many font effects. Unfortunately it does no typography, so you can't center or adjust text easily. There are hacks, but they are complex and slow. REBOL 3 solves this by throwing out the first mentioned engine and using an improved AGG for everything with more complete font rendering possibilities, including rich text. Using a different underlying general model for graphics (graphical object blocks, GOBs), it's also much faster. This doesn't help you now, but REBOL 3 is where nearly all the energy is put now, so it will be more interesting for you to use in a few months, when the graphics version will be available under Linux. -- Regards, Henrik Mikael Kristensen