Browse Source

Add note about tabs;

bjorn 6 years ago
parent
commit
5d08c3fcc1
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/init.lua
  2. 1 1
      api/lovr/graphics/print.lua

+ 1 - 1
api/init.lua

@@ -8495,7 +8495,7 @@ return {
             "lovr.graphics.newFont",
             "lovr.graphics.newFont",
             "Font"
             "Font"
           },
           },
-          notes = "Unicode text is supported.\n\nUse `\\n` to add line breaks.\n\nLÖVR uses a fancy technique for font rendering called multichannel signed distance fields.  This leads to crisp text in VR, but requires a special shader to use.  LÖVR internally switches to the appropriate shader, but only when the default shader is already set.  If you see strange font artifacts, make sure you switch back to the default shader by using `lovr.graphics.setShader()` before you draw text."
+          notes = "Unicode text is supported.\n\nUse `\\n` to add line breaks.  `\\t` will be rendered as four spaces.\n\nLÖVR uses a fancy technique for font rendering called multichannel signed distance fields.  This leads to crisp text in VR, but requires a special shader to use.  LÖVR internally switches to the appropriate shader, but only when the default shader is already set.  If you see strange font artifacts, make sure you switch back to the default shader by using `lovr.graphics.setShader()` before you draw text."
         },
         },
         {
         {
           name = "push",
           name = "push",

+ 1 - 1
api/lovr/graphics/print.lua

@@ -82,7 +82,7 @@ return {
   notes = [[
   notes = [[
     Unicode text is supported.
     Unicode text is supported.
 
 
-    Use `\n` to add line breaks.
+    Use `\n` to add line breaks.  `\t` will be rendered as four spaces.
 
 
     LÖVR uses a fancy technique for font rendering called multichannel signed distance fields.  This
     LÖVR uses a fancy technique for font rendering called multichannel signed distance fields.  This
     leads to crisp text in VR, but requires a special shader to use.  LÖVR internally switches to
     leads to crisp text in VR, but requires a special shader to use.  LÖVR internally switches to