Raju Bitter | 1 Feb 01:13 2011

JIRA component list / add swf10

Amy, you should probably add an swf10 entry to the component list in
JIRA, since there will be features in the platform which are only
supported in Flash Player 10 (swf9 is not sufficient). At the same
time, you might want to add swf10. (for Flash Player 10.1). But maybe
you use a different scheme for distinguishing features for the various
Flash Player versions in the LFC.

I ran into this when I tried to create an improvement request for text
rotation in Flash Player 10 (without embedded fonts).

Raju Bitter | 1 Feb 01:23 2011

Text rotation in AS3 LFC

Henry,

I just saw that text rotation is not working in the AS3 based runtime
(SWF10). What is the reason for that? Flash 10 supports rotation of
text without embedding fonts.

I've created an improvement request, with a demo attached. Flash
Player 10 added a rotationZ property to a TextField. That means,
saying

someText.getDisplayObject().textfield.rotationZ = 30;

will rotate the text. Works for Chinese/Korean/Asian languages as
well, as long as the font is on your system.

Depending on the font size, another approach is better (using a
TextBlock object), as described here:
http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/

Raju Bitter | 1 Feb 01:26 2011

Multi-column text support in OpenLaszlo?

Are there any plans to support multi-column text in a future release,
both for HTML5 and SWF10?

Raju Bitter | 1 Feb 01:33 2011

Re: Text rotation in AS3 LFC

By "not working" I mean that the text disappears as soon as I set the
rotation property on the <text> element. Since Flash Player 10
supports the rotation, why does the text disappear when the text view
is rotated? Do you control the visibility of the textfield based on
the outer view rotation?

On Tue, Feb 1, 2011 at 1:23 AM, Raju Bitter
<r.bitter.mailinglists <at> googlemail.com> wrote:
> Henry,
>
> I just saw that text rotation is not working in the AS3 based runtime
> (SWF10). What is the reason for that? Flash 10 supports rotation of
> text without embedding fonts.
>
> I've created an improvement request, with a demo attached. Flash
> Player 10 added a rotationZ property to a TextField. That means,
> saying
>
> someText.getDisplayObject().textfield.rotationZ = 30;
>
> will rotate the text. Works for Chinese/Korean/Asian languages as
> well, as long as the font is on your system.
>
> Depending on the font size, another approach is better (using a
> TextBlock object), as described here:
> http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
>

Henry Minsky | 1 Feb 01:35 2011

Re: Text rotation in AS3 LFC

Yes, the default rotation method on LzView (inherited by lzText) and LzSprite (inherited by lzTextSprite) just sets the rotation property on the whole sprite.

I don't know why setting rotationZ works, but plain "rotation" causes the device text to vanish.

Maybe we can just replace the line in LzSprite that sets rotation to set rotationZ instead??


On Mon, Jan 31, 2011 at 7:33 PM, Raju Bitter <r.bitter.mailinglists <at> googlemail.com> wrote:
By "not working" I mean that the text disappears as soon as I set the
rotation property on the <text> element. Since Flash Player 10
supports the rotation, why does the text disappear when the text view
is rotated? Do you control the visibility of the textfield based on
the outer view rotation?

On Tue, Feb 1, 2011 at 1:23 AM, Raju Bitter
<r.bitter.mailinglists <at> googlemail.com> wrote:
> Henry,
>
> I just saw that text rotation is not working in the AS3 based runtime
> (SWF10). What is the reason for that? Flash 10 supports rotation of
> text without embedding fonts.
>
> I've created an improvement request, with a demo attached. Flash
> Player 10 added a rotationZ property to a TextField. That means,
> saying
>
> someText.getDisplayObject().textfield.rotationZ = 30;
>
> will rotate the text. Works for Chinese/Korean/Asian languages as
> well, as long as the font is on your system.
>
> Depending on the font size, another approach is better (using a
> TextBlock object), as described here:
> http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
>



--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com


Raju Bitter | 1 Feb 01:37 2011

Re: Text rotation in AS3 LFC

http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTLFTextFieldHostFormat.as
I only found this function dealing with rotation in all classes
dealing with text.

        public function get textRotation():*
        {
            return undefined;
        }

On Tue, Feb 1, 2011 at 1:33 AM, Raju Bitter
<r.bitter.mailinglists <at> googlemail.com> wrote:
> By "not working" I mean that the text disappears as soon as I set the
> rotation property on the <text> element. Since Flash Player 10
> supports the rotation, why does the text disappear when the text view
> is rotated? Do you control the visibility of the textfield based on
> the outer view rotation?
>
> On Tue, Feb 1, 2011 at 1:23 AM, Raju Bitter
> <r.bitter.mailinglists <at> googlemail.com> wrote:
>> Henry,
>>
>> I just saw that text rotation is not working in the AS3 based runtime
>> (SWF10). What is the reason for that? Flash 10 supports rotation of
>> text without embedding fonts.
>>
>> I've created an improvement request, with a demo attached. Flash
>> Player 10 added a rotationZ property to a TextField. That means,
>> saying
>>
>> someText.getDisplayObject().textfield.rotationZ = 30;
>>
>> will rotate the text. Works for Chinese/Korean/Asian languages as
>> well, as long as the font is on your system.
>>
>> Depending on the font size, another approach is better (using a
>> TextBlock object), as described here:
>> http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
>>
>

Henry Minsky | 1 Feb 01:38 2011
Picon

Re: Multi-column text support in OpenLaszlo?

Well, the new Flash Text Layout Framework (TLF) supports multicolumn layout. I did this whole implementation of a flash TextField work-alike class, that uses the TLF, just in order to be able to
use the bidirectional text feature of the TLF. That class could maybe be extended to do multicolumn layout
I guess.

 What would be the equivalent for HTML5? Is there  multicolumn text spec?



On Mon, Jan 31, 2011 at 7:26 PM, Raju Bitter <r.bitter.mailinglists <at> googlemail.com> wrote:
Are there any plans to support multi-column text in a future release,
both for HTML5 and SWF10?



--
Henry Minsky
Software Architect
hminsky <at> laszlosystems.com


Raju Bitter | 1 Feb 01:52 2011

Re: Text rotation in AS3 LFC

When you set rotationZ on the textfield, that means the sprite content
is rendered into a bitmap. It would probably be best to distinguish
between SWF9 and SWF10 for rotation, using rotation for SWF9, and
rotationZ for small fontsizes with SWF10. I don't know how the
rotationZ will behave with embedded fonts, you might want to test that
first.

And for larger fonts, instead of using a TextField you'd probably want
to use the TextBox factory to create a TextLine object, as described
here:
http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/

The screenshot in this blog post shows the difference in text
rendering (upper text with simple rotationZ is a bit blurry with
larger fonts).

On Tue, Feb 1, 2011 at 1:37 AM, Raju Bitter
<r.bitter.mailinglists <at> googlemail.com> wrote:
> http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTLFTextFieldHostFormat.as
> I only found this function dealing with rotation in all classes
> dealing with text.
>
>        public function get textRotation():*
>        {
>            return undefined;
>        }
>
> On Tue, Feb 1, 2011 at 1:33 AM, Raju Bitter
> <r.bitter.mailinglists <at> googlemail.com> wrote:
>> By "not working" I mean that the text disappears as soon as I set the
>> rotation property on the <text> element. Since Flash Player 10
>> supports the rotation, why does the text disappear when the text view
>> is rotated? Do you control the visibility of the textfield based on
>> the outer view rotation?
>>
>> On Tue, Feb 1, 2011 at 1:23 AM, Raju Bitter
>> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>> Henry,
>>>
>>> I just saw that text rotation is not working in the AS3 based runtime
>>> (SWF10). What is the reason for that? Flash 10 supports rotation of
>>> text without embedding fonts.
>>>
>>> I've created an improvement request, with a demo attached. Flash
>>> Player 10 added a rotationZ property to a TextField. That means,
>>> saying
>>>
>>> someText.getDisplayObject().textfield.rotationZ = 30;
>>>
>>> will rotate the text. Works for Chinese/Korean/Asian languages as
>>> well, as long as the font is on your system.
>>>
>>> Depending on the font size, another approach is better (using a
>>> TextBlock object), as described here:
>>> http://www.yswfblog.com/blog/2009/05/21/the-knack-to-rotating-dynamic-text-in-flash-10/
>>>
>>
>

Raju Bitter | 1 Feb 01:59 2011

Re: Multi-column text support in OpenLaszlo?

Yes, CSS3: http://www.w3.org/TR/css3-multicol/
https://developer.mozilla.org/en/css3_columns

 and based on the wonderful page Tucker hinted as to
http://caniuse.com/#cats=CSS it's supported in any modern desktop
browser but IE6-IE8 and Opera < 11.1, and supported in iOS and
Android.

On Tue, Feb 1, 2011 at 1:38 AM, Henry Minsky <henry.minsky <at> gmail.com> wrote:
> Well, the new Flash Text Layout Framework (TLF) supports multicolumn layout.
> I did this whole implementation of a flash TextField work-alike class, that
> uses the TLF, just in order to be able to
> use the bidirectional text feature of the TLF. That class could maybe be
> extended to do multicolumn layout
> I guess.
>
>  What would be the equivalent for HTML5? Is there  multicolumn text spec?
>
>
>
> On Mon, Jan 31, 2011 at 7:26 PM, Raju Bitter
> <r.bitter.mailinglists <at> googlemail.com> wrote:
>>
>> Are there any plans to support multi-column text in a future release,
>> both for HTML5 and SWF10?
>
>
>
> --
> Henry Minsky
> Software Architect
> hminsky <at> laszlosystems.com
>
>
>

Amy Muntz | 1 Feb 03:05 2011

Re: JIRA component list / add swf10

Thanks, Raju. I'll look into this in the morning.
-- Amy

On Mon, Jan 31, 2011 at 7:13 PM, Raju Bitter <r.bitter.mailinglists <at> googlemail.com> wrote:
Amy, you should probably add an swf10 entry to the component list in
JIRA, since there will be features in the platform which are only
supported in Flash Player 10 (swf9 is not sufficient). At the same
time, you might want to add swf10. (for Flash Player 10.1). But maybe
you use a different scheme for distinguishing features for the various
Flash Player versions in the LFC.

I ran into this when I tried to create an improvement request for text
rotation in Flash Player 10 (without embedded fonts).


Gmane