• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

AltME groups: search

Help · search scripts · search articles · search mailing list

results summary

worldhits
r4wp0
r3wp35
total:35

results window for this page: [start: 1 end: 35]

world-name: r3wp

Group: View ... discuss view related issues [web-public]
Oldes:
6-Dec-2006
there is support for ttf already, but you must have the font installed, 
why you cannot just give the path to font and use it?
Cyphre:
6-Dec-2006
Rebolek: My idea is to be able for example read installed ttf font 
and store it using some native function in DRAW format. Then you 
can embedded any font in your app.
Cyphre:
6-Dec-2006
But DRAW needs to somehow interpret the parsed font data to be able 
rasterize it. Ofcourse it would need some additional code but most 
of the things we need for the ability to embed any ttf font is there.
Jerry:
21-Dec-2006
To condense the font data, there is a better way. Almost every Chinese 
character consists of many parts. if reusing the parts, a Chinese 
TTF file can be condensed from 4 MB to 100 KB. However, doing that 
would need lots of analysis of Chinese characters. That's would not 
be easy. Also needed is a part-combining engine.
NormanDep:
30-Mar-2008
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...
Group: PDF-Maker ... discuss Gabriele's pdf-maker [web-public]
Gabriele:
15-Feb-2009
then, there's the problem of the fonts. TeX has its own fonts which 
are designed correctly. TTF is not even close to what MetaFont can 
do, and the standard symbol font is not as good as the TeX fonts. 
Even if I added a good formula renderer to the pdf maker, without 
a good font it wouldn't look very good anyway.
Group: Linux ... [web-public] group for linux REBOL users
Cyphre:
22-Mar-2006
fnt1: make face/font [
	name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
	size: 32
]
fnt2: make face/font [

 name: "/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf"
	size: 64
]

view layout [
	origin 0
	box snow 400x100 effect [
		draw [
			pen black
			font fnt1
			text anti-aliased 0x0 "Rebol Rulez!"
			pen blue yellow
			fill-pen red
			line-pattern 10 10
			line-width 2
			font fnt2
			text vectorial 0x30 "Rebol Rulez!"
		]
	]
]
[unknown: 10]:
22-Mar-2006
yes yes ;-)

but so far none of the vera or arial or sans ttf fonts did show up...However 
rebol does not give me a warnign so it now upto the right font it 
seems..
Cyphre:
22-Mar-2006
you need to find a path to your fonts and you can use any ttf font. 
I don't know what YALN(yet another Linux distro) are you running 
;)
[unknown: 10]:
22-Mar-2006
Its strange.. I should not be needing to run a fontserver..My desktop 
is already anti-aliased with fonts and so it the rest..But rebol 
still does not display it... mmm It does load the font though..(also 
when i look with an Strace during the execute rebol does read the 
font..) it simply does not display it ..yet! ;-)

>> probe fnt1

make object! [
    name: "/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf"
    style: none
    size: 32
    color: 0.0.0
    offset: 2x2
    space: 0x0
    align: 'center
    valign: 'center
    shadow: none
]
[unknown: 10]:
22-Mar-2006
Cyphre..are those bitstream fonts you are using? I dont seem to get 
ttf working or ANY other font working in my linux view version beside 
the default fonts...
Cyphre:
23-Mar-2006
just tried it with:
fnt1: make face/font [

 name: "/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf"
	size: 32
]
fnt2: make face/font [

 name: "/usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBI.ttf"
	size: 64
]
Gabriele:
11-Dec-2006
Linux does not have any api to get to the ttf from the font name.
Anton:
6-May-2009
I am interested in improving the display of fonts by R2 on Kubuntu 
Gutsy 7.10.

I am not yet aware of what font rendering systems are used by Kubuntu, 
but I can see lots of True Type Font (.ttf) files anyway.

I can get R2 View to display a font (eg. gentium), but the scaling 
looks pretty bad. eg.
	view layout [text "Hello" font-name "gentium" font-size 16]
Geomol:
2-Sep-2009
I tried to change the agg script to point to a ttf font file under 
OS X. It doesn't display.
BudzinskiC:
22-Oct-2009
Thanks for trying to help :) With font problem, do you mean something 
like a missing font? I got these installed: ttf-ms-fonts, ttf-dejavu, 
ttf-bitstream-vera, xorg-fonts-100dpi, xorg-fonts-75dpi, and xorg-fonts-misc. 
Any idea what kind of font would be missing for the Word Browser?
Kaj:
24-Oct-2009
I don't see much else you could try. Maybe the ttf-ms-fonts, because 
it has popular font names, but that would be a new case of the problem
Kaj:
24-Oct-2009
I remember trying the Biggelow Holmes fonts on Zenwalk, so you could 
try font-bh-ttf, but I don't remember if those were the ones to fix 
it
MaxV:
26-Aug-2010
Hello everybody, I have a problem with Linux:  DRAW   choose a font 
that give problem displaying:

example: ['text "Hello word!"]
view layout [ box 100x100 effect [draw example ]]

on linux it gives a blank window.
I added:

example: ['text "Hello word!"]
if (pick system/version 4) = 4 [
	fnt1: make face/font [ 
		name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
		size: 12
		]
	os: "linux"
	]
if os = "linux" [ insert example reduce ['font fnt1]	]
view layout [ box 100x100 effect [draw example ]]

This solution is good, but using REBGUI  it doesn't work anymore.
What can I do?
ManuM:
27-Aug-2010
Hello Max. Yes, I have used sometimes DRAW on Linux.

Try this, work for me at Kubuntu.

do %rebgui.r

if system/version/4 = 4 [ face/font/name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf" 
]

example: [ font face/font ]

append example [ pen blue line 20x70 30x50 40x55 50x40 60x60 70x55 
80x70 90x50 100x40 110x50 120x70 130x65 140x60 150x55 160x50 170x30 
180x70 190x50 200x40 210x50 220x70 230x65 240x60 250x55]


append example [ pen red fill-pen red box 20x75 22x60 box 30x75 32x50 
box 40x75 42x40 box 60x75 62x40 box 70x75 72x60 box 80x75 82x65 box 
90x75 92x40 ]

append example [ box 100x75 102x60 box 110x75 112x60 box 120x75 122x60 
box 140x75 142x40 box 150x75 152x45 box 160x75 162x40 box 170x75 
172x60 box 180x75 182x65 box 190x75 192x40 ]


append example [ pen green fill-pen green box 50x75 52x30 box 130x75 
132x50 ]

append example [ pen black text 10x10 "Transazioni" ]
append example [ text 30x30 "$200" text 30x50 "$100" ]

append example [ line 20x25 20x75 line 15x35 25x35 line 15x55 25x55 
]
append example [ line 20x75 310x75 ]

append example [ text 20x80 "28-Jul-2010" text 250x80 "26-Sep-2010" 
]
append example [ pen blue text 300x10 "Cassa" ]
append example [ text 320x30 "$2000" text 320x50 "$1000" ]

append example [ line 310x25 310x75 line 305x35 315x35 line 305x55 
315x55 ]


display "Example" [ aaa_stats: box white 100x30 effect [ draw example 
] button "ok" tab button "cancel" [ unview/all ] ]
do-events
Maxim:
29-Aug-2010
on linux, you need the full path to the font you are trying to use. 
 ttf fonts are supported.
MaxV:
31-Aug-2010
I  used Manum example, but I get:
** Script Error: Cannot use path on none! value

** Near: face/font/name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
Cyphre:
8-Mar-2011
Under linux you need to setup the font object to be able use text 
rendered by DRAW dialect. So something like this should work:

my-font: make face/font [

 name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"   ;replace 
 with your path to font you want to use
	size: 12
]

view layout [
    box snow 100x100 effect [
        draw [
	font my-font
            pen black
            text 10x10 "Red Box:"
            pen red
            fill-pen red
            box 10x30 80x50
        ]
    ]
]
MaxV:
9-Mar-2011
? system/view/vid/vid-styles/text/font
helvetica
so, is it enogh  having helvetica font?
No, I made a link to FreeSans.ttf this way:
ln -s FreeSans.ttf helvetica.ttf
but it doesn't work.
I think that the path is wrong. The standard linux path  now is:
/usr/share/fonts/truetype/freefont/

so if Rebol path would be /usr/share/fonts/truetype/freefont/FreeSans.ttf 
, we have resolved all problems!
Group: AGG ... to discus new Rebol/View with AGG [web-public]
Cyphre:
27-Feb-2007
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...)
Group: SDK ... [web-public]
Cyphre:
18-Dec-2006
(but I haven' t tested all those font formats, just ttf)
Group: !RebGUI ... A lightweight alternative to VID [web-public]
shadwolf:
22-Jun-2005
the only thing that I wasnt able to do is use TTF font files with 
Inscape
MaxV:
26-Aug-2010
Hello everybody, I have a problem with Linux:  DRAW   choose a font 
that give problem displaying:

example: ['text "Hello word!"]
view layout [ box 100x100 effect [draw example ]]

on linux it gives a blank window.
I added:

example: ['text "Hello word!"]
if (pick system/version 4) = 4 [
	fnt1: make face/font [ 
		name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
		size: 12
		]
	os: "linux"
	]
if os = "linux" [ insert example reduce ['font fnt1]	]
view layout [ box 100x100 effect [draw example ]]

This solution is good, but using REBGUI  it doesn't work anymore.
What can I do?
MaxV:
30-Aug-2010
All my code is:
Rebol []
do %rebgui.r
fnt1: make face/font [ 
		name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
		size: 12
		]
example: ['text "Hello word!"]
insert example ( reduce ['font fnt1 ])
display "Example" [
	aaa_stats: box 50x50 effect [  draw example ]
	]
do-events
NickA:
4-Sep-2010
I haven't tried loading fonts in draw on Linux, but the rest of this 
works (the color is changed by the draw command "pen red"):

Rebol []
do %rebgui.r
font1: make face/font [
    ; name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
    size: 11
    style: [italic bold]
]
example: compose [
    font (font1)
    pen red
    text "Hello World!"
]
display "Example" [
    style 20x20 data [
        box snow 100x100 effect [
            draw example
        ] 
    ]
]
do-events
NickA:
7-Sep-2010
MaxV,  this works perfectly for me on Ubuntu 10.04.1, using your 
rebol.deb installer - I ran Ubuntu directly from the CD created using 
the most recent Ubuntu download, installed REBOL using your Ubuntu 
package, and ran this script.  Perhaps your version of RebGUI is 
different than mine?  This version loads rebgui.r from an http:// 
link:

rebol []
do http://re-bol.com/rebgui.r
font1: make face/font [
    name: "/usr/share/fonts/truetype/freefont/FreeSans.ttf"
    size: 11
    style: [italic bold]
]
example: compose [
    font (font1)
    pen red
    text "Hello World!"
]
display "Example" [
    style 20x20 data [
        box snow 100x100 effect [
            draw example
        ] 
    ]
]
do-events
quit
Group: Rebol/Flash dialect ... content related to Rebol/Flash dialect [web-public]
Oldes:
24-Nov-2005
maybe I could hack the trutype spac to have possibility to save the 
font as a TTF as well
Group: !REBOL3 Extensions ... REBOL 3 Extensions discussions [web-public]
Maxim:
26-Aug-2009
true type and the ttf lib are pretty much on all OS nowadays... its 
just a question of having the right to distribute a font with your 
apps... which in theory is the same issue with flash I would guess.
Oldes:
26-Aug-2009
The problem with TTF is, that in most cases the fonts are copyrighted, 
so zou cannot give them with the app. You can embed glyphs you need 
into Flash, but the the font is not TTF anymore so nobody can use 
it in other apps.
Group: !REBOL3 GUI ... [web-public]
shadwolf:
8-Aug-2010
and ofcourse fied fonts where properly handle only on widows ... 
 fun thing was i tryed rendering using the same TTF file on linux 
but it was managed as unfixed font on linux ...