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

World: r3wp

[View] discuss view related issues

Geomol
24-Mar-2008
[7381x2]
If i1 is your original image, you can do:


i2: copy/part to-image layout [origin 0 image i1 as-pair i1/size/1 
100] 200x100

This will resize height to 100 and crop width to 200.
If you use DRAW, as Henrik suggest, the result will look prettier.
Henrik
24-Mar-2008
[7383x2]
maybe not, since downscaling in R2 DRAW does not support filtering. 
that's only possible in R3 DRAW.
upscaling will work, however.
Geomol
24-Mar-2008
[7385]
That's not what I see. Try:

i1: to-image layout [origin 0 box 300x150 red "An image"]

i2: copy/part to-image layout [origin 0 image i1 as-pair i1/size/1 
100] 200x100

view layout [image i1 image i2 box 300x100 effect [draw [image i1 
0x0 300x0 300x100 0x100]]]
Henrik
24-Mar-2008
[7386x3]
The eye is cheating you here. In fact it's just fuzzy, not antialiased. 
I've investigated this closely.
do http://www.hmkdesign.dk/rebol/thumbtest/thumbtest.r<--- try this 
and you'll see it.
(and that's why R2 DRAW is largely worthless for creating thumbnails. 
R3 is however very good at it. :-))
Geomol
24-Mar-2008
[7389]
ok, good info! :-)
Will
24-Mar-2008
[7390]
Yes, good info! Thank you Geomol & Henrik 8)
BrianH
26-Mar-2008
[7391]
Calling all gurus: Now that the R2 mezzanine source is in DevBase, 
we can fix VID2.


Anyone who has developed extensive patches for bugs in VID2, we could 
use your help in fixing them for real. Particularly since any fixes 
might break your patches - we really want to avoid breaking existing 
code when we don't have to. We need input from anyone who understands 
VID2 well enough to know what is wrong with it. We will not be changing 
the basic semantic model of VID2 though - that's what RebGUI and 
VID3 are for.


Anyone who wants to help, join the R2-Beta world if you haven't already.
Pekr
26-Mar-2008
[7392]
post to ml too, please ...
RobertS
27-Mar-2008
[7393]
I would like to participate but an not sure what to turn to: for 
now I am using 2.7.6 and only have a couple of quirks.  Is there 
a link to dev base?
BrianH
28-Mar-2008
[7394]
Are you on the R2-Beta world? That is where the work is happening.
RobertS
29-Mar-2008
[7395x2]
not at altme
I am working most every day in R 276 now ...
NormanDep
30-Mar-2008
[7397]
Is Font redering involved for Linux in the  testings?  Latest news 
on AGG fonts for linux was that it was not working, although I had 
it working once in a special /view version.. Looks now its not fixed 
yet.. No problem, but would be nice to have some kind of official 
statement in the docs for /view /sdk how that works/is fixed/not 
works.
Graham
30-Mar-2008
[7398x2]
Fonts work on Debian distros.  I tested on Ubuntu.
On distros where it is not working, we are waiting on Cyphre to fix 
this.
NormanDep
30-Mar-2008
[7400]
Yes Graham it works here too ;-) but must be explicit defined with 
make font:
rebol []

fnt1: make face/font [
        name: "/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf"
        size: 32
]
fnt2: make face/font [
        name: "/usr/X11R6/lib/X11/fonts/TTF/Vera.ttf"
        size: 32]

view layout [
        origin 0
        box 400x100 effect [
                draw [
                        pen black
                        font fnt1
                        text anti-aliased 0x0 "Rebol Rulez!"
                        pen blue silver
                        fill-pen red
                        line-pattern 10 10
                        line-width 2
                        font fnt2
                        text vectorial 0x30 "Rebol Rulez!"
                ]
        ]
]



I took me some time to find this Issue again...
Graham
30-Mar-2008
[7401]
Yes, you have to specify the path to the font.
NormanDep
30-Mar-2008
[7402]
[Cyphre example]..other applications dont work because of the font 
path issue ..indeed ;-)
Graham
30-Mar-2008
[7403x2]
Which other applications?
If they're Rebol source .. they can be fixed correct?
NormanDep
30-Mar-2008
[7405x2]
this "path" is not documented anywehere...
;-) Thats the issue... the source ;-)
Graham
30-Mar-2008
[7407x2]
Perhaps we need a font map ?
Isn't there a standard way on Linux to specify the font cache?  Perhaps 
Rebol could read this...
NormanDep
30-Mar-2008
[7409x2]
[mmmm..think....think...]
I could emagine parsing the xorg.conf and look for the font paths...
Graham
30-Mar-2008
[7411]
fonts.cache ?
NormanDep
30-Mar-2008
[7412x5]
but thats only for X11
fonts.cache?.. Mmmm..checking..
Yes then you have indeed a font map...
And what about the system fonts for rebol? Will these be ttf one 
day...or is that moved to R3 finaly?
Graham... Is your Synapse-char project still active?
Graham
30-Mar-2008
[7417x3]
The chat?  No, that has died.
For reasons I don't understand .. it stopped working and I didn't 
have time to debug it.
The source is still downloadable if anyone wants to figure out why 
it no longer works.
NormanDep
30-Mar-2008
[7420]
aa pitty.. because there is quiet some code in there.. but i still 
have it here..for examples ;-)
Graham
30-Mar-2008
[7421x2]
I'm sure it will run again with a new database ...
Maybe the amount of data it was transferring was killing Beer .. 
not sure.
NormanDep
30-Mar-2008
[7423]
because its a nice competitor for altme..(its code is open and adjustable 
;-)
Graham
30-Mar-2008
[7424x4]
All it needs is to work!
Since it uses the LNS syntax, it should be possible to port it to 
LNS.
But LNS at present can't act as client and server whereas some of 
the things I was doing was using exactly that .. acting as both client 
and server.
For peer to peer file transfer.
RobertS
30-Mar-2008
[7428]
Can you tell me how to get to the R2 beta world as I am currently 
spending more time in 276 than I do in the alpha ?
Graham
30-Mar-2008
[7429]
there's no activity now on the R2 beta world
RobertS
30-Mar-2008
[7430]
But I thought there was (somewhere) for View quirks under 2.7.6