From 837eb120bb5eff1db71377a549cee3ce3f1fa310 Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Thu, 23 Mar 2023 17:20:43 -0700 Subject: [PATCH] README: Add font rendering tip --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 0d3fe56..f9560d1 100644 --- a/README.md +++ b/README.md @@ -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