V14a10

V14a10

Setting the alpha of an item lower than 255 leads to text aliasing artefacts when zoomed into the desktop although hardware acceleration is disabled for desktop and item

You would expect a clear text with sharp edges as long as hardware acceleration remains disabled.

Example script

getEvent().getScreen().getCurrentDesktop().getItemByName(“item”).getProperties().edit().setInteger(“i.alpha”,254).commit();

]]>

3 Commentsto V14a10

  1. Anonymous says:

    < ![CDATA[

    This depends on how the android graphic subsystem handles alpha. In this case the text is drawn to an internal offscreen bitmap and then this bitmap is displayed using alpha, that’s out of control of the app. The only workaround I know is to create a bigger text item and downscale it so that it seems to be at a normal size. This implies this item is detached from the grid. Maybe also you could use a transparent text color instead of setting the whole item transparency, but of course it has stroong limitations since it won’t work if there is an icon, a background or borders.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Understood.



    I will work around that behaviour somehow.



    Many thanks for your response and suggestions.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I went for transparent text color for my text-based template. Works like a charm.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *