[REBOL] Re: Fonts in R/view
From: hallvard:ystad:helpinhand at: 8-Dec-2001 11:30
Thanks, Cyphre, I finally got it.
...but I also got more funny results, and this time, I cannot see any
reason for them. Here you go:
ctx-viewtop: context ctx-viewtop ; assumed in all later examples
ctx-viewtop/dtc-icon/font/size: 5
this was your original example. It made no difference on my reb-desktop.
When I went into console-mode and probed ctx-viewtop/dtc-icon/font, I got:
make object! [
name: "helvetica"
style: none
size: 5
color: 0.0.0
offset: 2x2
space: 0x0
align: 'center
valign: 'bottom
shadow: none
colors: 0.0.0
]
although the font size wasn't anything near 5 pt.
So I tried
ctx-viewtop/dtc-icon/font/style: none
still with no luck. Probing the font object gave the same result, except
the size was now back to 11.
Then I tried
ctx-viewtop/dtc-icon/font/style: 'bold
A shot in the dark, really, since the boldness of these fonts was the very
attribute I wanted to get rid of (along with the size). But this time, it
worked! Probing the object showed it was now bold, 11pt (and I believe that
was correct. When I first probed it, and it claimed to be 11pt / plain
style, it obviously lied!)
Why this font responds to setting the style to bold, but not to setting the
style to none or setting the size to 5, beats me. But it worked, and I'm
happy. Thanks again.
~H
Dixit Cyphre (Friday 07.12.2001, kl. 17.15):