TUILabel - jagged text when background color is clearColor #129

Closed
gcox opened this Issue Aug 12, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@gcox

gcox commented Aug 12, 2012

When a TUILabel's background color is set to clearColor the text that renders is jagged and ugly, the text looks perfect with any other background color. Is it known problem? Any workaround?

I have tried setting it's opaque property to NO but it doesn't affect the rendered text.

@dannygreg

This comment has been minimized.

Show comment Hide comment
@dannygreg

dannygreg Aug 13, 2012

Collaborator

This is due to a lack of sub-pixel anti aliasing and a known problem for Core Animation (although this was fixed in 10.8). Have a look at TUITextRenderer as it is more likely what you want to be using in this case.

Collaborator

dannygreg commented Aug 13, 2012

This is due to a lack of sub-pixel anti aliasing and a known problem for Core Animation (although this was fixed in 10.8). Have a look at TUITextRenderer as it is more likely what you want to be using in this case.

@dannygreg dannygreg closed this Aug 13, 2012

@gcox

This comment has been minimized.

Show comment Hide comment
@gcox

gcox Aug 13, 2012

I see, I was under the impression that TUI controls dealt with this issue by using TUITextRenderer internally, is it safe to assume that all TUI controls will behave this way in 10.7?

gcox commented Aug 13, 2012

I see, I was under the impression that TUI controls dealt with this issue by using TUITextRenderer internally, is it safe to assume that all TUI controls will behave this way in 10.7?

@dannygreg

This comment has been minimized.

Show comment Hide comment
@dannygreg

dannygreg Aug 13, 2012

Collaborator

They do use TUITextRenderer… it's just impossible to draw text onto a clear background and have SPAA work. Hence TUILabel suffers.

Collaborator

dannygreg commented Aug 13, 2012

They do use TUITextRenderer… it's just impossible to draw text onto a clear background and have SPAA work. Hence TUILabel suffers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment