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

Textinput does not render emojis correctly #7995

Open
RobinPicard opened this issue Sep 3, 2022 · 5 comments
Open

Textinput does not render emojis correctly #7995

RobinPicard opened this issue Sep 3, 2022 · 5 comments
Labels
Type: Feature Issue is a feature request

Comments

@RobinPicard
Copy link
Contributor

Software Versions

  • Python: 3.9
  • OS: MacOS BigSur 11.4
  • Kivy: v2.2.0.dev0
  • Kivy installation method: development

Describe the bug
The textinput widgets render the colored emojis as completely black contrarily to labels that render them corrected

Expected behavior
The emojis should be colored

To Reproduce

from kivy.core.window import Window
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.textinput import TextInput

Window.clearcolor = (1, 1, 1, 1)

class CustomBoxLayout(BoxLayout):
    def __init__(self, *args):
        super().__init__(*args)
        self.a_textinput = TextInput(background_normal='', font_name='NotoColorEmoji.ttf')
        self.a_label = Label(font_name='NotoColorEmoji.ttf')
        self.add_widget(self.a_textinput)
        self.add_widget(self.a_label)
        self.a_textinput.bind(text=self.update_label)

    def update_label(self, instance, text, *args):
        self.a_label.text = text

class MyApp(App):
    def build(self):
        return CustomBoxLayout()

if __name__ == '__main__':
    MyApp().run()

Code and Logs and screenshots
Capture d’écran 2022-09-03 à 19 34 03

Additional context
I think I found the origin of the problem, I will open a PR shortly

@Julian-O
Copy link
Contributor

@RobinPicard: Just a ping to see how you are going with the PR review comments.

@Julian-O
Copy link
Contributor

Julian-O commented Nov 1, 2023

Related #7565

@RobinPicard
Copy link
Contributor Author

@RobinPicard: Just a ping to see how you are going with the PR review comments.

I'm not working on Kivy-related things anymore, sorry

@Julian-O Julian-O added the Type: Feature Issue is a feature request label Dec 2, 2023
@Julian-O
Copy link
Contributor

Julian-O commented Dec 2, 2023

To others reading this, we have a partially implemented PR, with review comments, that needs a volunteer to rebase, address the comments, and commit a new PR.. Could be an easy way to earn Internet points.

@Julian-O
Copy link
Contributor

Julian-O commented Dec 2, 2023

@DexerBR has stepped forward with #8491. Thank you muchly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Issue is a feature request
Projects
None yet
Development

No branches or pull requests

2 participants