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", "สวัสดี"],
|
["Thai", "สวัสดี"],
|
||||||
["Tibetan", "བཀྲ་ཤིས་བདེ་ལེགས།"],
|
["Tibetan", "བཀྲ་ཤིས་བདེ་ལེགས།"],
|
||||||
["Tifinagh", "ⴰⵣⵓⵍ"],
|
["Tifinagh", "ⴰⵣⵓⵍ"],
|
||||||
], language, "Hello");
|
], script, "Hello");
|
||||||
|
|
||||||
echo(script=script,
|
direction = struct_val([
|
||||||
greeting=greeting,
|
["Arabic", "rtl"],
|
||||||
|
["Hebrew", "rtl"],
|
||||||
|
], script, "ltr");
|
||||||
|
|
||||||
|
echo(greeting=greeting,
|
||||||
font=font,
|
font=font,
|
||||||
|
script=script,
|
||||||
|
direction=direction,
|
||||||
style=style);
|
style=style);
|
||||||
|
|
||||||
color("gray")
|
color("gray")
|
||||||
|
|
@ -99,6 +105,7 @@ color("gray")
|
||||||
text(
|
text(
|
||||||
greeting,
|
greeting,
|
||||||
font=str(font, ":style=", style),
|
font=str(font, ":style=", style),
|
||||||
|
direction=direction,
|
||||||
script=script,
|
script=script,
|
||||||
halign="center",
|
halign="center",
|
||||||
valign="center");
|
valign="center");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue