Cross-platform fonts...what is everyone else doing?

Richard Gaskin ambassador at fourthworld.com
Tue Jul 27 18:44:18 EDT 2004


Judy Perry wrote:

> Well, as I relayed to you previously, Richard, they just go FUBAR about
> half-way through the stack under various flavours of Windows: they lose
> their face (from the stated fonts to one of the Lucida ones) and their
> size (from rather large, 24 pt or more, to tiny, perhaps 12 pt or less)
> and may lose their style or attribute as well (IIRC perhaps a bit or two
> that was italicized goes back to plain).
> 
> I did bugzilla it as you suggested but Tuviah I think said it couldn't be
> duplicated and that the problem was that the font didn't exist under the
> Windows config; but if that were the case, why is everything fine
> initially?  Why was I able to "correct" things under Windows and take it
> back to the Mac? (later losing it once again when taken back to Windows)?

"Lucida Grande" is not installed with XP.  What you should be seeing is 
actually Tahoma, or whatever font is your system default.

If you see a mix of fonts, remember that there is a limitation I didn't 
note earlier:  if you set the textSize, textStyle, or textHeight of an 
object it will also assign the textFont, using the current effective 
textFont.

A request to modify this behavior to make those properties more 
independent has been submitted:
<http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?id=66>

So if you're setting a control's textStyle to bold, then yes, the 
textfont will become assigned to that control.  But if the assignment is 
for a font that doesn't exist, it should be rendered using the system's 
default font.  If not, it would be interesting to know which one is 
being used (which would have to be done visually since the engine 
doesn't report the true effective textFont).

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________
  Rev tools and more:  http://www.fourthworld.com/rev


More information about the use-livecode mailing list