r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[AGG] to discus new Rebol/View with AGG

Volker
20-Dec-2006
[878]
Does someone have a demo-script with agg-fonts on debian? I have 
no deep clue how to use 'draws deper features and dont want to spend 
some hours figuring that out^^
Henrik
20-Dec-2006
[879]
there is the AGG Draw test in the viewtop. it uses both VID and AGG 
fonts
Volker
20-Dec-2006
[880]
i read it does not work beacuse of absolute font-pathes. i give it 
a try
Henrik
20-Dec-2006
[881]
I thought you wanted to see it not working :-)
Volker
20-Dec-2006
[882x2]
No, wrong this time^^
No fonts, neither native nor wine
Graham
20-Dec-2006
[884x2]
Yes, I have a demo that Cyphre gave me.
http://www.compkarori.com/vanilla/display/AGG
Volker
22-Dec-2006
[886]
Is there a performance-difference in using the old face/image or 
 drawing images in the draw-block?
Cyphre
24-Dec-2006
[887]
using face/image is definitely faster
Dockimbel
26-Feb-2007
[888x2]
Is there a way in Draw/AGG to globally set TEXT rendering mode (aliased, 
antialiased, vectorial) instead of setting it each time you  call 
TEXT ?
The ANTI-ALIAS command doesn't seem to have any effect on TEXT rendering. 
Odd, the docs says otherwise : "The ANTI-ALIAS command currently 
affects the entire DRAW effect; the last value you set it to is what 
will be used for all draw commands in the block".
Steeve
26-Feb-2007
[890]
IIRC anti-alias affects only  vectorial text, not the standard one
Cyphre
27-Feb-2007
[891]
Dockimbel: You have to always specify the TEXT rendering mode. Maybe 
the text mode could be set by separate command in later versions? 
The ANTI-ALIAS command works for all vectorial shapes and doesn't 
affect TEXT in other than vectorial mode. (the docs needs to be fixed 
in this case)
Dockimbel
27-Feb-2007
[892]
Cyphre, can you tell us what changes will bring the next Draw/AGG 
releases ? Wider font support ? Dialect improvements ?
Cyphre
27-Feb-2007
[893x2]
Once the Rebol/View code merge will be at the level of View1.3.2 
we can add some bugfixes from RAMBO. I'm not sure how much new features 
would Carl like to add to R2 DRAW but I believe there will be at 
least improved and enhaced gradient support. What  else DRAW changes/features 
would you like to see in the upcomming R2 releases?
(ah, I forgot that we might also add new image filter so you can 
make hi-quality thumbs ;-))
Henrik
27-Feb-2007
[895]
yes!
Oldes
27-Feb-2007
[896x3]
What filter?
I would like to be able to work with images on linux server without 
X server running
without that I'm still forced to use PHP for image uploads
Dockimbel
27-Feb-2007
[899x2]
I'd like to have better font support (most of Windows TT fonts seems 
to not work), better font objet support (things like 'offset and 
'valign doesn't seem to work), persistent Draw settings (like Text 
rendering mode). These font issues may be due to my lack of experience 
with the new Draw/AGG, did other ppl had the same issues on windows 
?
Oldes: you could make a REBOL wrapper around the GD library (used 
by PHP for image processing).
Cyphre
27-Feb-2007
[901]
Oldes: I meant image filter with resampling so when you downscale 
image the result is much better(but costs more CPU time) than using 
bilinear filtering.
Oldes
27-Feb-2007
[902]
I cannot. As I have only Pro licence. Cyphre - if it's not working 
on server - it's useless for me. At home I can use image magic. But 
I know, that's not your fault.
Cyphre
27-Feb-2007
[903x2]
running DRAW without Xserver. This is quite possible but it all depends 
on Carl's decission in which product he want to have it. AFAIK the 
DRAW native command is in Rebol/Command(which can be run without 
Xserver) at the moment.
I believe this will be improved in R3 with better modularity.
Dockimbel
27-Feb-2007
[905]
Well...after doing some more testing on fonts, looks like it works 
correctly with all TT fonts I've just tested. I used to never set 
the rendering mode for TEXT, maybe that was the cause of my issues.
Cyphre
27-Feb-2007
[906]
Doc: the FONT rendering in R2 DRAW should handle all TTF fonts. (at 
least I havent heard about any problems from anyone). The persistent 
text mode can be added IMO even in R2. Text formating won't be probablay 
enhaced as this would take too much effort. But in R3 there will 
be rich-text dialect for that purposes. (Maybe the new rich-text 
dialect  could be backported into R2 later but it all depends...)
Oldes
27-Feb-2007
[907]
Cyphre probably remember I still would like to have bitmap fonts 
(use specified parts of image as font glyphs:-)
Pekr
27-Feb-2007
[908x2]
eeh, that debate indicates, R3 is at least one year from being findished. 
Other than that - what would be the reason to backport anything to 
R2?
Cyphre - how Carl's decision of where he wants to put draw can be 
valid for R3? Or are you talking about R2 here? I thought that with 
R3 the rather stupid product segmentation vanishes once and for all 
...
Cyphre
27-Feb-2007
[910]
Pekr, the reason for backporting is that: 1) there will be high demand 
from R2 userbase for such feature 2) it would be easy to do it. So 
my note above is very hypothetical ;)
Pekr
27-Feb-2007
[911]
well, it is just that we talk about R3 as of a beast, not being compatible 
more than from 30% to R2. If it is going to be nearly 100% compatible, 
than continued development of R2 after R3 release is total vaste 
of resources .....
Cyphre
27-Feb-2007
[912]
Pekr: I have no clue about the R3 product line/strategy, yo need 
to ask Carl about this. (I guess from Carl's blogs there will be 
more flexible aproach to build your 'own Rebol' than in R2)
Pekr
27-Feb-2007
[913]
yes, that is also my understanding. So /draw will be module, which 
you will be able to "include" (pack) into your exe. But that alone 
does not probably answer, when/where X-Win is needed?
Cyphre
27-Feb-2007
[914]
AGG based DRAW is platform independent so it doesn't need X-Win or 
any other API framework. The only dependent part is TEXT rendering(which 
is not included in the AGG). Currently it supports Win32API and FreeType2 
library to be able render text. So even if you have rebol on Linux 
you only need freetype2 lib, not Xserver in your setup. (the X-win 
dependecies are in the older Text rendering engine of R2 used for 
text in faces which will be eliminated in R3).
Henrik
27-Feb-2007
[915x2]
I'm curious, what kind of font rendering does View use?
I noticed that View produces pixel artifacts on some letters on my 
PC, but I think that's RAMBO'ed. Those artifacts are not visible 
in DRAW text.
Cyphre
27-Feb-2007
[917]
Under what OS?
Henrik
27-Feb-2007
[918x2]
XP
I think it's only visible with clear type enabled
Rebolek
27-Feb-2007
[920]
http://bolek.techno.cz/pix/view-artifacts.png
Henrik
27-Feb-2007
[921]
yep, those
Cyphre
27-Feb-2007
[922]
Hmm, iteresting. I have the cleartype turned off so I didn't know 
that. That looks like something is going wrong with the cached glyph 
bitmaps when BOLD text is used with cleartype enabled. I don't know 
the guts of old text renederer so this is just my guess.
Maxim
27-Feb-2007
[923x5]
clear type is very different in how it treats pixels... it actually 
addresses each individual  R G B channel of each pixel individually, 
so what happens is that on many faces, the anti-aliasing actually 
turns the edges as shades of colors, and not gray.
the downside is that this is optimised for working on white BG in 
all I can see, and is obviously useless unless you have an LCD monitor.
I've only noticed the artifact in rebol when text is bold... don't 
know why.
my guess is that REBOL builds its glyphs once and then any PIXEL 
that has one of the channels to on is set as all on... so we get 
bad aliasing and some dots here and there.
AGG wouldn't have this effect since it does not seem to use clear 
text.  in fact, in general I find AGG font AA pretty ugly... is there 
a way to improve this?  even if its slow?  there are some situations 
which do not mind speed (generating HQ output graphics, for example) 
 or small GUIs or when converting face looks to bitmaps before display.. 
(trades speed for ram)