Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Other fonts.

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