Other fonts.
[1/4] from: tbrownell::l3technology::com at: 8-Feb-2003 15:41
Any simple examples of using additional fonts with View faces?
TB
[2/4] from: philb:upnaway at: 9-Feb-2003 9:24
Hi Terry,
Have you seen the font selector by Carl & Gregg?
(There a discussion of it on the list on 18th January)
I believe that shows a preview of the selected font.
Cheres Phil
=== Original Message ===
Any simple examples of using additional fonts with View faces?
TB
[3/4] from: carl:cybercraft at: 9-Feb-2003 21:03
On 09-Feb-03, [philb--upnaway--com] wrote:
> Hi Terry,
> Have you seen the font selector by Carl & Gregg?
> (There a discussion of it on the list on 18th January)
> I believe that shows a preview of the selected font.
> Cheres Phil
Yes, though it's hardly a simple example. All you need to do to use a
different font is to give a face's font object a different name taken
from your system's fonts. ie...
>> view layout [t: text "Hello"]
>> probe t/font
make object! [
name: "CGTriumvirate"
style: none
size: 12
color: 0.0.0
offset: 2x2
space: 0x0
align: 'left
valign: 'top
shadow: none
colors: [0.0.0 255.180.55]
]
That's the Amiga default font in View. (Well, at least on my system.)
To change it to the Times font (as an example) just use...
>> view layout [t: text "Hello" font [name: "Times"]]
>> probe t/font
make object! [
name: "Times"
style: none
size: 12
color: 0.0.0
offset: 2x2
space: 0x0
align: 'left
valign: 'top
shadow: none
colors: [0.0.0 255.180.55]
]
> === Original Message ===
> Any simple examples of using additional fonts with View faces?
> TB
--
Carl Read
[4/4] from: atruter:labyrinth:au at: 10-Feb-2003 9:34
> Any simple examples of using additional fonts with View faces?
view layout [text "A" font-name "Wingdings"]
Regards,
Ashley