Skip to content

ENH: expose font_file in brain.add_text (#12543)#13778

Open
PragnyaKhandelwal wants to merge 6 commits intomne-tools:mainfrom
PragnyaKhandelwal:enh-brain-add-text-font-file-12543
Open

ENH: expose font_file in brain.add_text (#12543)#13778
PragnyaKhandelwal wants to merge 6 commits intomne-tools:mainfrom
PragnyaKhandelwal:enh-brain-add-text-font-file-12543

Conversation

@PragnyaKhandelwal
Copy link
Copy Markdown
Contributor

Reference issue (if any)

Fixes #12543.

What does this implement/fix?

This PR exposes a font_file parameter in brain.add_text() and forwards it to the underlying PyVista add_text() call.

This allows users to pass a .ttf/.ttc font file for Unicode glyph rendering (for example, CJK characters and symbols), while preserving current behavior when font_file is not provided.

Additional information

Verification context:

  1. Aligns with issue discussion where specifying font_file in PyVista resolves Unicode rendering for add_text().
  2. Keeps scope minimal by exposing existing backend capability in the MNE API.

Loading
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

Successfully merging this pull request may close these issues.

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

3 participants