You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/runal.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,18 @@ You're missing a specific method or feature? Feel free to [open an issue](https:
225
225
226
226
<section class="reference">
227
227
228
+
### Fonts
229
+
230
+
We recommend configuring your terminal to use a good monospace font like [Iosevka](https://typeof.net/Iosevka/) for example.
231
+
232
+
Because most of fonts aren't square, your sketches might look squished or unbalanced.
233
+
There are 2 ways of fixing this problem:
234
+
- using [cell modes](#canvas)
235
+
- using a square 8x8 font, like [Ursa](https://ursafrank.itch.io/ursafont) for example
236
+
237
+
<hr class="separator"/>
238
+
239
+
228
240
### Properties
229
241
230
242
#### c.width
@@ -280,9 +292,9 @@ function setup(c) {
280
292
281
293
### Canvas
282
294
283
-
Drawing in the terminal is a little bit weird, because each cell is not a square. Therefore, **results can look squished** depending on what you're trying to do.
295
+
Drawing in the terminal is a little bit weird, because each cell is not a squarewith usual fonts. Therefore, **results can look squished** depending on what you're trying to do.
284
296
285
-
One simple way to fix this problem is to **use 2 cells instead of one**for drawing one canvas pixel, but the question is: which character to draw in the second cell?
297
+
One simple way to fix this problem is to **use 2 cells instead of one** for drawing one canvas pixel, but the question is: which character to draw in the second cell?
286
298
287
299
You can control this behavior with 2 methods:
288
300
- **c.cellModeCustom(char)**: it allows you to define which character to use in the second cell. One obvious option is to use a black space, but other choice may give you fun results.
0 commit comments