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();
]]>« V14a10 (Previous Post)
(Next Post) Not sure if this a bug but when opening the activity screen to edit the settings like layout or events of a desktop,… »
< ![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.
]]>
< ![CDATA[
Understood.
I will work around that behaviour somehow.
Many thanks for your response and suggestions.
]]>
< ![CDATA[
I went for transparent text color for my text-based template. Works like a charm.
]]>