mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python

Home Page:https://mne.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unicode support in the method add.text() of mne.viz.brain

Jieli12 opened this issue · comments

Describe the new feature or enhancement

When I run the following command:
brain.add_text(0.1, 0.9, "chinese\u2190中文", color="black", font_size=10)

The added text only shows chinese, see below
Screenshot 2024-04-16 at 16 47 17

However, I expect the added text to be chinese <- 中文. Would you please add this feature?

Describe your proposed implementation

I am not a Python expert, but I found that the Python package PyVista also has the method add_text() here. Maybe it can offer some thought on how to add this new feature.

Describe possible alternatives

None.

Additional context

No response

Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴