Просмотр исходного кода

Font:getWidth returns the width of the last line;

bjorn 3 лет назад
Родитель
Сommit
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 = [[