Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
[LUA] 3x5 NARROW FONT
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
189.803 KB
13 Oct, 2022 @ 5:05am
25 Feb @ 1:35am
10 Change Notes ( view )

Subscribe to download
[LUA] 3x5 NARROW FONT

Description
This is a narrower font than the standard.
This font can output 8 horizontal characters on a 1x1 monitor.
(6.4 characters for standard font)

This functionality is provided by a 319 290 byte Lua code and 4 Property Text.

(2025/02/25)
* Fixed an issue where an error would occur when nil or boolean values were entered.
* LUA code reduced from 319 to 290.
* I apologize for not updating the fix in a long time.

For use with your microcomputer, see the following.
- copy & paste Lua code line 5
- copy & paste Property Text F1,F2,F3 and F4

Note (optional):
- Auto line feed wrapper by param w (+117 byte)
function NF2(x,y,w,z)local r=-1 for i=1,z:len()do if i%w==1then r=r+1 end NF(x+(i-1)*4-r*w*4,y+r*6,z:sub(i,i))end end
- usage:
NF2(0,0,8,"Auto line feed")

references:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2851143422
3 Comments
lexignatov 19 Jan, 2023 @ 1:08am 
Awesome font! The main his advantage is support for drawing numerical values in lua code.
OTACON  [author] 15 Oct, 2022 @ 7:28am 
Fixed an error when displaying numerical values(not string).
Fixed variables in functions to local for safety.
OTACON  [author] 13 Oct, 2022 @ 10:23am 
Added support for lowercase characters.
Further downsizing from 289 bytes to 261 bytes.