Use sign formspec to switch between wide/narrow font

if available on a given sign.  The sign must have a
"foo:bar_widefont" variant, with the horizontal scaling set
appropriately (about half of the normal value for the
narrow-font sign)

Add new corresponding API to anto-generate those signs where
desired; use this feature in default wood and steel signs
This commit is contained in:
Vanessa Dannenberg
2019-09-15 16:10:11 -04:00
parent bcb6a3aa39
commit a5e711d354
5 changed files with 109 additions and 49 deletions

View File

@ -9,6 +9,7 @@ signs_lib.register_sign("default:sign_wall_wood", {
},
entity_info = "standard",
allow_hanging = true,
allow_widefont = true
})
signs_lib.register_sign("default:sign_wall_steel", {
@ -23,6 +24,7 @@ signs_lib.register_sign("default:sign_wall_steel", {
locked = true,
entity_info = "standard",
allow_hanging = true,
allow_widefont = true
})
minetest.register_alias("signs:sign_hanging", "default:sign_wall_wood_hanging")