Update fonts.scad - added auto direction = rtl
This commit is contained in:
parent
66667cc000
commit
1d99c6222a
1 changed files with 10 additions and 3 deletions
|
|
@ -86,11 +86,17 @@ greeting = struct_val([
|
|||
["Thai", "สวัสดี"],
|
||||
["Tibetan", "བཀྲ་ཤིས་བདེ་ལེགས།"],
|
||||
["Tifinagh", "ⴰⵣⵓⵍ"],
|
||||
], language, "Hello");
|
||||
], script, "Hello");
|
||||
|
||||
echo(script=script,
|
||||
greeting=greeting,
|
||||
direction = struct_val([
|
||||
["Arabic", "rtl"],
|
||||
["Hebrew", "rtl"],
|
||||
], script, "ltr");
|
||||
|
||||
echo(greeting=greeting,
|
||||
font=font,
|
||||
script=script,
|
||||
direction=direction,
|
||||
style=style);
|
||||
|
||||
color("gray")
|
||||
|
|
@ -99,6 +105,7 @@ color("gray")
|
|||
text(
|
||||
greeting,
|
||||
font=str(font, ":style=", style),
|
||||
direction=direction,
|
||||
script=script,
|
||||
halign="center",
|
||||
valign="center");
|
||||
|
|
|
|||
Loading…
Reference in a new issue