[Laszlo-dev] pixel locking
Lou Iorio
lou at louiorio.com
Tue Oct 9 09:47:56 PDT 2007
Yes, but I'm trying to come up with an example to demonstrate why you
would use
this. I'm setting a views to a non-integer x values, but no matter
what value I choose,
the view's edge is not blurry. Same with text.
I expected this:
<canvas height="500" width="500" debug="true">
<view name="view1" bgcolor="red" width="100" height="100" x="50"
onclick="this.myAnimator.doStart()">
<animator name="myAnimator" attribute="x" to=".1"
duration="1000" start="false" relative="true"/>
</view>
</canvas>
to give the view a blurry edge at some point when I click on it.
Lou
On Oct 9, 2007, at 11:22 AM, Henry Minsky wrote:
> If there are a bunch of constraints or something which cause a view
> to end up
> at a non integer x and y position, pixellock will snap it the nearest
> integer values.
>
> Back in the Flash 5 days, there was an issue with embedded fonts where
> the font would be blurry in
> a text view which was not aligned to an integer pixel value. I don't
> know if this
> is an issue with device fonts (fonts that are stored and rendered by
> the underlying
> client operating system), or even if it is still an issue with
> embedded fonts.
>
> Note that we now use device fonts by default in Laszlo
> apps, unless otherwise specified by a <font> tag to include an
> embedded font.
>
> DHTML apps don't support embedded fonts at all currently.
>
>
>
>
> On 10/9/07, Lou Iorio <lou at louiorio.com> wrote:
>> I'm looking at this JIRA bug.
>>
>> Can anybody give me a description of what pixellock is for? It's
>> not obvious
>> to me after
>> playing with it for a while.
>>
>> An example that shows the difference between setting pixellock to
>> true or
>> false would
>> be great.
>>
>> Thanks,
>>
>> Lou
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20071009/7730f440/attachment.html
More information about the Laszlo-dev
mailing list