Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Tyler_Smith
Level 7

Font antialiasing?

Hi,

I have a component that contains a label and I am wondering if there is a antialias method that I can apply.
I perform scaling on the component and when I do so, the font gets all distorted.

Any guidance would be appreciated.
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
17 Replies
joetesta
Level 10

Re: Font antialiasing?

would it be feasible to redraw the label with an updated font size after scaling?
aspiring
0 Kudos
Tyler_Smith
Level 7

Re: Font antialiasing?

I've tried this with no luck unfortunately.
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
EnTerr
Level 8

Re: Font antialiasing?

perhaps you should be more specific what component and how scaling?
0 Kudos
Tyler_Smith
Level 7

Re: Font antialiasing?

I have created a custom scroller with "items" (a LayoutGroup with Group children). The "active" item has a scale of 1.0 and the "inactive" items are assigned a scale of 0.9. Within these items I am using a Label component. When the item is scaled to greater of less than 1.0 the Label text experiences a lot of distortion.
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
_rossbower
Level 7

Re: Font antialiasing?

I am having this exact same issue. If I come up with a solution I'll post it. Hopefully someone can come to our aid!
0 Kudos
Tyler_Smith
Level 7

Re: Font antialiasing?

Hopefully they'll be a fix for the issue in the next Firmware release Smiley Happy
If I figure anything out before then I'll be sure to drop a line.
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
EnTerr
Level 8

Re: Font antialiasing?

"Don't" comes to mind as a workaround Smiley Happy
As in "don't use scaling as a way to highlight the current item"
0 Kudos
Tyler_Smith
Level 7

Re: Font antialiasing?

Design team is asking for it, so I have to atleast try Smiley Happy
Tyler Smith
Senior Developer, REDspace
redspace.com
0 Kudos
EnTerr
Level 8

Re: Font antialiasing?

"Tyler Smith" wrote:
Design team is asking for it, so I have to atleast try Smiley Happy

Show them the result then: "Mission accomplished!" :mrgreen:

On a side note, how about using instead width, height and <font/> ?
0 Kudos