[Laszlo-user] 3.0b and fonts in Linux
Geert Bevin
gbevin at uwyn.com
Thu Mar 17 08:55:33 PST 2005
It does for me (and the text is there for me in our app), but for the
users that reported the missing text it says that it's missing (it's
one of the MS CoreFonts). So in case of a missing Verdana, there
doesn't seem to be a graceful fallback.
On 17 Mar 2005, at 17:35, Henry Minsky wrote:
> Does you Flash player claim that it has Verdana in its
> TextField.getFontList()
>
>
>
> On Thu, 17 Mar 2005 11:34:37 -0500, Henry Minsky
> <henry.minsky at gmail.com> wrote:
>> You can to look at the servcies/LzFontManager to see what is going
>> on,
>> but you can directly
>> force the choice of Flash font on a text field foo , bypassing the
>> LPS
>> font translation, by saying
>>
>> foo.__LZtextclip.htmlText = '<font face="_sans" size="18">BLAH</
>> font>'
>>
>>
>> On Thu, 17 Mar 2005 17:15:35 +0100, Geert Bevin <gbevin at uwyn.com>
>> wrote:
>>>
>>> On 17 Mar 2005, at 16:50, Henry Minsky wrote:
>>>
>>>> The LPS font mechanism is supposed to fall back to _sans if nothing
>>>> else can be found. But fonts named _sans, _serif, and
>>>> _typewriter are
>>>> always supposed to exist. It would be a Flash player bug if _sans
>>>> were not working.
>>>
>>> Well it isn't, I did force it and they still saw nothing. So I
>>> suspect a flash bug, the problem is that this is a real downer if
>>> people don't have the MS Core Fonts installed. They are not even
>>> distributed by Microsoft anymore, you have to try to find them and
>>> the only place is http://corefonts.sourceforge.net
>>> Sadly, this issue makes applications much less ubiquitous and usable
>>> since most users will just blame the application and do nothing
>>> about
>>> it, especially if it's on a public website.
>>>
>>>> Can you define a text field manually with _sans, like this:
>>>
>>> A part went missing here I think?
>>>
>>>> In the laszlo debugger, can you do
>>>>
>>>> var k = TextField.getFontList();for (i in k) Debug.write(k[i])
>>>>
>>>>
>>>> And see what fonts are listed as being present on your browser.
>>>
>>> Yeah, but how do I know which one is used as a fallback?
>>>
>>>
>>>> On Thu, 17 Mar 2005 16:16:47 +0100, Geert Bevin <gbevin at uwyn.com>
>>>> wrote:
>>>>> I'm having 2 users reporting exactly the same problem. It seems
>>>>> to be
>>>>> related to the fact that MS Core Fonts are absent and that the
>>>>> "_sans" font needs those. If they are not there, just nothing is
>>>>> shown. Imho it should try to fall back to some other known font
>>>>> then.
>>>>> Just having text that disappears according to the client setup
>>>>> is a
>>>>> *very bad thing*.
>>>>> Actually I would prefer to make Vera to default canvas font,
>>>>> but it
>>>>> seems that Laszlo gets confused with its metrics and thus
>>>>> everything
>>>>> below the baseline is cut away.
>>>>>
>>>>> On 17 Mar 2005, at 02:52, Henry Minsky wrote:
>>>>>
>>>>>> Do other Flash movies run OK? Have you tried compiling an app
>>>>>> with an
>>>>>> embedded font?
>>>>>>
>>>>>> BTW,
>>>>>>
>>>>>> There is a remote debugger in 3.0b2 which you can use to
>>>>>> connect to
>>>>>> the running app.
>>>>>> We might be able to tell something about the runtime environment
>>>>>> via that.
>>>>>>
>>>>>> If you have the sources, there is a (crude) command line client
>>>>>> you
>>>>>> can get by compiling and running
>>>>>>
>>>>>> WEB-INF/lps/server/src/org/openlaszlo/test/debugserver.java
>>>>>>
>>>>>> If you run it, it listens on port 5559
>>>>>>
>>>>>> then run your app with the query arg remotedebug=5559
>>>>>>
>>>>>> And the app will attempt to connect when it starts up.
>>>>>> You can type commands to the command line client and they will be
>>>>>> eval'ed in the app
>>>>>> and the result printed out.
>>>>>>
>>>>>> I don't have the time at the moment, but at some point we can
>>>>>> look at
>>>>>> the font info
>>>>>> on the canvas and maybe deduce something about the environment.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, 17 Mar 2005 01:36:22 +0200, Philip Trauring
>>>>>> <philip at trauring.com> wrote:
>>>>>>> On Mar 16, 2005, at 9:23 PM, Henry Minsky wrote:
>>>>>>>> Can you try
>>>>>>>>
>>>>>>>> <canvas font="_sans" width="1000" height="600">
>>>>>>>>
>>>>>>>> or <text font="_sans">foo</text>
>>>>>>>>
>>>>>>>> and see if that displays anything.
>>>>>>>
>>>>>>> Nada.
>>>>>>>
>>>>>>>> Hey, Philip,
>>>>>>>>
>>>>>>>> Another Ubuntu user here -- just upgraded to Hoary, in fact --
>>>>>>>> and I
>>>>>>>> just tried your test case without issue. Not sure if it
>>>>>>>> matters,
>>>>>>>> but I
>>>>>>>> was going through the tutorial and clicked on edit in one of
>>>>>>>> the
>>>>>>>> examples and plugged your code in and, voila, it worked.
>>>>>>>>
>>>>>>>> HTH,
>>>>>>>>
>>>>>>>> Rob
>>>>>>>
>>>>>>> Not sure what to say. I also was running Hoary. Did you have
>>>>>>> Flash 7
>>>>>>> installed? Were you running Firefox?
>>>>>>>
>>>>>>> Philip
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Laszlo-user mailing list
>>>>>>> Laszlo-user at openlaszlo.org
>>>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Henry Minsky
>>>>>> Software Architect
>>>>>> hminsky at laszlosystems.com
>>>>>> _______________________________________________
>>>>>> Laszlo-user mailing list
>>>>>> Laszlo-user at openlaszlo.org
>>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>>>>>
>>>>>
>>>>> --
>>>>> Geert Bevin Uwyn bvba
>>>>> "Use what you need" Avenue de Scailmont 34
>>>>> http://www.uwyn.com 7170 Manage
>>>>> gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
>>>>> PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F
>>>>> D6A9
>>>>> Public PGP key : available at servers pgp.mit.edu,
>>>>> wwwkeys.pgp.net
>>>>>
>>>>> _______________________________________________
>>>>> Laszlo-user mailing list
>>>>> Laszlo-user at openlaszlo.org
>>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>>>>
>>>>
>>>>
>>>> --
>>>> Henry Minsky
>>>> Software Architect
>>>> hminsky at laszlosystems.com
>>>> _______________________________________________
>>>> Laszlo-user mailing list
>>>> Laszlo-user at openlaszlo.org
>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>>>
>>>
>>> --
>>> Geert Bevin Uwyn bvba
>>> "Use what you need" Avenue de Scailmont 34
>>> http://www.uwyn.com 7170 Manage
>>> gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
>>> PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
>>> Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
>>>
>>> _______________________________________________
>>> Laszlo-user mailing list
>>> Laszlo-user at openlaszlo.org
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> hminsky at laszlosystems.com
>>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
More information about the Laszlo-user
mailing list