Skip to content

Commit

Permalink
README: Add font rendering tip
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeneliason committed Mar 24, 2023
1 parent 4f1e933 commit 837eb12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ Anything you draw within this function will appear in debug mode. You can toggle
debug drawing on/off using the `M` key, or set `Acetate.customDebugDrawing` to `true` or `false`
from within your code.

NOTE: Because fonts are rendered as images and tend to be black-on-white, regular use of `drawText`
variants will likely not appear. To draw text in `debugDraw`, change the image drawing mode so
that your text will render in `kColorWhite` as follows:

```lua
gfx.setImageDrawMode(gfx.kDrawModeFillWhite)
Acetate.debugFont:drawText("This text will render in the debug layer!", x, y)
```

### Reusing Acetate's Built-in Debug Visualizations

Acetate provides a handful of extensions to the sprite class specifically designed for drawing
Expand Down

0 comments on commit 837eb12

Please sign in to comment.