textFont: seeing is believing (Transcript is not)
Wouter
wouter.abraham at pi.be
Tue Jul 27 17:43:01 EDT 2004
• From: Richard Gaskin
• Subject: textFont: seeing is believing (Transcript is not)
• Date: Tue, 27 Jul 2004 13:54:11 -0700
> Looking further into the conceptual issues with inherited font
> attributed I see one source of trouble:
>
>
> put the effective textFont of this stack
>
>
> ...does not report accurate information.
>
>
> Try this:
>
>
> set the textFont of this stack to "0"
> put the effective textFont of this stack
> -- returns "0"
>
> I would expect it to return the name of the font the stack's controls
> are being rendered with.
>
> It appears that the engine is doing what we would expect, rendering
> with the system font whenever the specified font cannot be found. But
> by not reporting the real information you need to visually verify the
> font that's being used rather than rely on Transcript.
>
>
> This has been Bugzilla'd at:
> <http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?
> id=1905>
>
>
> --
> Richard Gaskin
> Fourth World Media Corporation
> ___________________________________________________
FWIW
setting the textFont of this stack to "0"
will set it to "0"
and when asked :
> put the effective textFont of this stack
>
it will indeed return "0"
but...
setting the textFont of this stack to "" -- empty
and then asking
will return the the effective textFont.
or the default font.
On my rig it is Helvetica
Greetings,
WA
More information about the use-livecode
mailing list