Skip to content

Commit d9c01fd

Browse files
committed
add fonts doc
1 parent 2bac938 commit d9c01fd

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

content/runal.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,18 @@ You're missing a specific method or feature? Feel free to [open an issue](https:
225225
226226
<section class="reference">
227227
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+
228240
### Properties
229241

230242
#### c.width
@@ -280,9 +292,9 @@ function setup(c) {
280292

281293
### Canvas
282294

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 square with usual fonts. Therefore, **results can look squished** depending on what you're trying to do.
284296
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?
286298
287299
You can control this behavior with 2 methods:
288300
- **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

Comments
 (0)