Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlight is under the text and not behind that #86

Closed
MattiaPontonioKineton opened this issue Jan 8, 2020 · 2 comments · Fixed by #87
Closed

highlight is under the text and not behind that #86

MattiaPontonioKineton opened this issue Jan 8, 2020 · 2 comments · Fixed by #87
Labels

Comments

@MattiaPontonioKineton
Copy link

Highlight is under the text and not behind as espected.
Is the correct behaviour?
Code:

Text: {
                x: 0,
                y: 450,
                text: {
                    text: 'Text a little too long so this part won\'t be visible',
                    highlight:true,
                    highlightColor:0xFF557722
                }
            },
            Text2: {
                x: 150,
                y: 100,
                text: {
                    fontSize: 80,
                    text: 'STYLE IT UP! ',
                    fontStyle: 'italic bold',
                    textColor: 0xff00ffff,
                    shadow: true,
                    shadowColor: 0xffff00ff,
                    shadowOffsetX: 2,
                    shadowOffsetY: 2,
                    shadowBlur: 2,
                    highlight:true,
                    highlightColor:0xFF557722
                }
            },
            Text3: {
                mountX: 1,
                x: 530,
                y: 230,
                text: {
                    fontSize: 48,
                    textAlign: 'left',
                    text: 'you can also add\nline breaks\nusing\n\\n!',
                    lineHeight: 48,
                    highlight:true,
                    highlightColor:0xFF557722
                }
            },

Immagine

@erikhaandrikman
Copy link
Contributor

This is not correct behaviour, we have fixed in the following branch:
https://github.com/WebPlatformForEmbedded/Lightning/tree/fix/text-highlight

Will notify you when it's in master

@g-zachar
Copy link
Contributor

g-zachar commented Jan 8, 2020

Fixed in 1.3.1

example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants