Skip to content

Commit bda38f5

Browse files
authored
Apply suggestions from code review
Co-authored-by: Daniel McCloy <[email protected]>
1 parent ede3710 commit bda38f5

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Added a ``font_file`` parameter to :meth:`mne.viz.Brain.add_text` to allow custom ``.ttf``/``.ttc`` fonts for improved Unicode glyph rendering, by `Pragnya Khandelwal`_.
1+
Added a ``font_file`` parameter to :meth:`mne.viz.Brain.add_text` to support rendering glyphs not available in the default font, by `Pragnya Khandelwal`_.

mne/viz/_brain/_brain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,9 +2827,8 @@ def add_text(
28272827
The text justification.
28282828
font_file : str | None
28292829
Path to an absolute path of a font file to use for rendering
2830-
the text. FreeType is used for loading, supporting many font
2831-
formats beyond ``.ttf`` and ``.ttc``. This can be helpful for
2832-
non-ASCII glyph coverage.
2830+
the text. See https://freetype.org/freetype2/docs/index.html for a list of
2831+
supported font file formats.
28332832
"""
28342833
_validate_type(name, (str, None), "name")
28352834
name = text if name is None else name

0 commit comments

Comments
 (0)