World: r3wp
[View] discuss view related issues
older newer | first last |
Graham 14-Apr-2006 [4686x3] | I think I knew this once, but need reminding :( |
How to create a draw block dynamically with a number of different fonts. You are not allowed to create the font inside the draw block as evaluation is not permitted, but word lookup is. | |
The only way I can see is to create the word that holds the font dynamically, and use reduce to insert the new word into the draw block. | |
Gabriele 15-Apr-2006 [4689] | or use the same word but different contexts |
Graham 15-Apr-2006 [4690x3] | does draw honour the colour attribute of a font object ? Seems not. |
Quick question .. how to get the text out of an area widget formatted in the same way as it is on screen ( word wrapped etc ) ? | |
Or, is there a way to reuse the word wrapping routines that VID uses ? | |
Anton 16-Apr-2006 [4693] | I've never seen a way to do that. |
DideC 16-Apr-2006 [4694] | I think the 'textinfo function is used for that (used in ctx-text/text-edit). But we have no infos on how to use it and what it does exactly. |
Henrik 16-Apr-2006 [4695x2] | >> ? textinfo USAGE: TEXTINFO face line-info line DESCRIPTION: Sets the line text information in an object for a face. TEXTINFO is a native value. ARGUMENTS: face -- The face for which the information is defined. (Type: object) line-info -- The object where the information will be set. (Type: object) line -- The line to get information for. (Type: number any-string) |
There is a fairly detailed description of TEXTINFO in http://www.rebol.com/docs/view-system.html section 6.9.2 | |
Graham 16-Apr-2006 [4697x2] | Ahh..after I implemented my own line wrapping routine :( |
Anyway, good to know. | |
Henrik 16-Apr-2006 [4699] | does it work? |
Graham 16-Apr-2006 [4700] | What work? |
Henrik 16-Apr-2006 [4701] | your line wrapping routine |
Graham 16-Apr-2006 [4702x6] | I've got a column of text about 40 chars, and I want it to snake up and down 3 columns on a page .. and it seems to work. |
ie. the text to flow through the three columns. | |
in draw, if you place a block of text formatted with line feeds, it displays as is. | |
But in postscript, it ignores the line feed, carriage returns :( | |
A pity I can't pick up a draw object and move it around on screen :( | |
it would make page composition easier. | |
Henrik 16-Apr-2006 [4708x2] | I was messing with that once, but never got it to work properly |
layering VID faces on top of the DRAW sheet and drag them around | |
Graham 16-Apr-2006 [4710x2] | I guess I could use Frank's tiny paint program :) |
How does John's paint program do it anyway? | |
Henrik 16-Apr-2006 [4712x3] | I think he did it with DRAW directly early on, but I don't know how it works now. |
his program doesn't have elements to move around | |
how does your program work? is it a dialect that can produce DRAW and PS? | |
Graham 16-Apr-2006 [4715] | Yes. |
Henrik 16-Apr-2006 [4716] | I might need something that can do some previewing next week... |
Graham 16-Apr-2006 [4717x2] | Once I get it working, I'll show you. |
I'm just spending some time setting up my page so that it looks okay :) | |
Henrik 16-Apr-2006 [4719] | I'm going to do the same here with Johns dialect. Does yours produce PS from his dialect? |
Graham 16-Apr-2006 [4720x2] | No, it uses my dialect. |
I'm less concerned about scaling and rotations as I really only need text and lines/boxes. | |
Henrik 16-Apr-2006 [4722] | I see :-/ |
Graham 16-Apr-2006 [4723] | And you ? |
Henrik 16-Apr-2006 [4724] | well, I need some scaling and 90 degree rotation. I'm creating the number marks you use in a marathon race to put on your chest and back. |
Graham 16-Apr-2006 [4725x2] | Oh ... |
you're going to bar code the marathon runners ?? | |
Henrik 16-Apr-2006 [4727x2] | already have the number mark done, but there is a catch: the number can only be seen after printing it out, due to the construction of the program. it would be nice to be able to preview it before printing. |
yes | |
Graham 16-Apr-2006 [4729] | You've already seen my psd2draw.r script .. I just feed the same block thru my ps dialect to get the postsrcript and write that to a file. |
Henrik 16-Apr-2006 [4730x2] | then I would need to redo the barcode generator... |
I think it's best for me right now to create a makeshift preview rather than an actual preview | |
Graham 16-Apr-2006 [4732] | are John's and my ps dialects that disimilar ? |
Henrik 16-Apr-2006 [4733] | I havent' checked yours out |
Graham 16-Apr-2006 [4734] | are you on Mac still? |
Henrik 16-Apr-2006 [4735] | mac and windows |
older newer | first last |