I'm talking in something like this:

Bead:
package pt.solidsoft.framework.components.beads
{
import org.apache.royale.core.IBead;
import org.apache.royale.core.IStrand;
import org.apache.royale.core.UIBase;

public class FontItalic implements IBead
{
public function set strand(value:IStrand):void
{
(value as UIBase).style = "font-style: italic";
}
}
}

Usage:
...
<c:Label text="Italic text sample">
<c:beads>
<fi:FontItalic/>
</c:beads>
</c:Label>
...

The same for bold and font size OR a font bead

Carlos Rovira <[email protected]> escreveu no dia sexta, 11/09/2020
à(s) 19:08:

> Ok, I thought you were talking about font-face and so on.
> You have SizeControl and TextAlign beads, but I must say I want to update
> Sizecontrol a bit since sizes have changed a bit and that need to be
> adjusted.
>
> El vie., 11 sept. 2020 a las 20:02, Hugo Ferreira (<[email protected]
> >)
> escribió:
>
> > Usually, the application has a default style defined globally thus css,
> etc
> > ... but sometimes there are particular use cases where you need a bold,
> > italic or even different font size.
> > A bead should not be an opition ?
> >
> > Carlos Rovira <[email protected]> escreveu no dia sexta,
> 11/09/2020
> > à(s) 18:31:
> >
> > > No. that is usually done vía CSS or in AS3/MXML vía style property or
> > > fx:Style tag.
> > >
> > >
> > > El vie., 11 sept. 2020 a las 18:29, Hugo Ferreira (<
> > [email protected]
> > > >)
> > > escribió:
> > >
> > > > There is already a bead for color, font size and font style ?
> > > >
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>

Reply via email to