Extend meta-character handling to shaded block characters

This commit is contained in:
Isaiah Odhner 2023-05-09 15:03:06 -04:00
parent 24331bd5e2
commit d54a4e690f

View File

@ -1421,11 +1421,9 @@ class Canvas(Widget):
def big_ch(self, ch: str, x: int, y: int) -> str:
"""Return a character part of a meta-glyph."""
if ch in " ░▒▓█":
return ch
match ch:
case " ":
return " "
case "":
return ""
case "":
return "" if y >= self.magnification // 2 else " "
case "":