diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-07-12 00:48:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 09:48:50 +0200 |
commit | 2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8 (patch) | |
tree | 591ae4dcce087d2fa2f4f295bdc2e4ab3725694d /doc | |
parent | 1dd6c8ed7fc8b56385546437baa54d53b43a385f (diff) | |
download | minetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.tar.gz minetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.tar.bz2 minetest-2bec83eec0dc2de2d6b8fb0b827e94807ed9b0b8.zip |
Add FormSpec font styling options (#9763)
* Add FormSpec font styling options
* Change multiplication to stof
* Remove extraneous check
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 4e6983be8..d3a367b27 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2747,6 +2747,18 @@ Some types may inherit styles from parent types. button's content when set. * bgimg_pressed - background image when pressed. Defaults to bgimg when not provided. * This is deprecated, use states instead. + * font - Sets font type. This is a comma separated list of options. Valid options: + * Main font type options. These cannot be combined with each other: + * `normal`: Default font + * `mono`: Monospaced font + * Font modification options. If used without a main font type, `normal` is used: + * `bold`: Makes font bold. + * `italic`: Makes font italic. + Default `normal`. + * font_size - Sets font size. Default is user-set. Can have multiple values: + * `<number>`: Sets absolute font size to `number`. + * `+<number>`/`-<number>`: Offsets default font size by `number` points. + * `*<number>`: Multiplies default font size by `number`, similar to CSS `em`. * border - boolean, draw border. Set to false to hide the bevelled button pane. Default true. * content_offset - 2d vector, shifts the position of the button's content without resizing it. * noclip - boolean, set to true to allow the element to exceed formspec bounds. @@ -2758,11 +2770,15 @@ Some types may inherit styles from parent types. * scrollbar * noclip - boolean, set to true to allow the element to exceed formspec bounds. * table, textlist + * font - Sets font type. See button `font` property for more information. + * font_size - Sets font size. See button `font_size` property for more information. * noclip - boolean, set to true to allow the element to exceed formspec bounds. * dropdown * noclip - boolean, set to true to allow the element to exceed formspec bounds. * field, pwdfield, textarea * border - set to false to hide the textbox background and border. Default true. + * font - Sets font type. See button `font` property for more information. + * font_size - Sets font size. See button `font_size` property for more information. * noclip - boolean, set to true to allow the element to exceed formspec bounds. * textcolor - color. Default white. * image @@ -2771,6 +2787,8 @@ Some types may inherit styles from parent types. * item_image * noclip - boolean, set to true to allow the element to exceed formspec bounds. Default to false. * label, vertlabel + * font - Sets font type. See button `font` property for more information. + * font_size - Sets font size. See button `font_size` property for more information. * noclip - boolean, set to true to allow the element to exceed formspec bounds. * image_button (additional properties) * fgimg - standard image. Defaults to none. |