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

Cyrillic text doesn't displayed #126

Closed
alderven opened this issue Mar 4, 2019 · 1 comment
Closed

Cyrillic text doesn't displayed #126

alderven opened this issue Mar 4, 2019 · 1 comment

Comments

@alderven
Copy link
Contributor

alderven commented Mar 4, 2019

Describe the bug
Cyrillic text doesn't displayed

To Reproduce
Run following code:

import pyxel

class App:
    def __init__(self):
        pyxel.init(160, 120)
        pyxel.run(self.update, self.draw)

    def update(self):
        if pyxel.btnp(pyxel.KEY_Q):
            pyxel.quit()

    def draw(self):
        pyxel.cls(0)
        pyxel.text(55, 41, 'Привет, мир!', 10)

App()

No text is displayed, only punctuations:
image

Expected behavior
Cyrillic text is displayed: "Привет, мир!"

Configuration:

  • OS: Win 10
  • Python 3.6
  • Pyxel 1.0.2

Workaround

I've wrote workaround script for cyrillic symbols: https://github.com/alderven/pyxel-cyrillic

@alderven alderven changed the title Cyrillic text is not displayed Cyrillic text is doesn't displayed Mar 26, 2019
@alderven alderven changed the title Cyrillic text is doesn't displayed Cyrillic text doesn't displayed Mar 26, 2019
@kitao
Copy link
Owner

kitao commented Jun 16, 2019

Sorry, Pyxel only support alphabets to keep its specs as simple as possible.
So you need to implement your own font renderer.

@kitao kitao closed this as completed Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants