-
Notifications
You must be signed in to change notification settings - Fork 245
Closed
Labels
Component: UIIssue needs changes to the user interfaceIssue needs changes to the user interfaceImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaround
Milestone
Description
At least on macoOS, and depending on the font name and the font size, the following code doesn't show nicely in the Log view:
import numpy as np
import random
def p(t):
log_info(str(np.array(t).reshape((16, 16))))
# ok
x = range(256)
p(x)
# ko
p(random.sample(x, k=len(x)))
Result | Font name | Font size |
---|---|---|
❌ | Inconsolata | 11 |
✅ | Inconsolata | 12 |
❌ | Inconsolata | 13 |
✅ | Inconsolata | 14 |
❌ | Source Code Pro | 11 |
❌ | Source Code Pro | 12 |
❌ | Source Code Pro | 13 |
❌ | Source Code Pro | 14 |
❌ | SF Mono | 11 |
❌ | SF Mono | 12 |
✅ | SF Mono | 13 |
❌ | SF Mono | 14 |
SF Mono comes from /System/Applications/Utilities/Terminal.app/Contents/Resources/Fonts/
.
Metadata
Metadata
Assignees
Labels
Component: UIIssue needs changes to the user interfaceIssue needs changes to the user interfaceImpact: LowIssue is a papercut or has a good, supported workaroundIssue is a papercut or has a good, supported workaround