Skip to content

Commit

Permalink
Add special case for ✗ to mitigate render issue
Browse files Browse the repository at this point in the history
Opened issue #1 to document that '✗' is not rendered correctly.

Add special case to replace '✗' with '×' to avoid the issue.
  • Loading branch information
HeavyWombat committed Feb 10, 2021
1 parent c9eeb49 commit 6fa8a99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/img/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ func (s *Scaffold) SavePNG(path string) error {
case "\t":
x += w * float64(s.tabSpaces)
continue

case "✗": // mitigate issue #1 by replacing it with a similar character
str = "×"
}

dc.DrawString(str, x, y)
Expand Down

0 comments on commit 6fa8a99

Please sign in to comment.