Преглед на файлове

Font:getWidth returns the width of the last line;

bjorn преди 3 години
родител
ревизия
6ae7af427d
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      api/lovr/graphics/Font/getWidth.lua

+ 5 - 0
api/lovr/graphics/Font/getWidth.lua

@@ -27,6 +27,11 @@ return {
       name = 'lines',
       type = 'number',
       description = 'The number of lines in the wrapped text.'
+    },
+    {
+      name = 'lastwidth',
+      type = 'number',
+      description = 'The width of the last line of text (to assist in text layout).'
     }
   },
   notes = [[