bidi.tscn 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814
  1. [gd_scene load_steps=21 format=3 uid="uid://doa7j7q1j4p4e"]
  2. [ext_resource type="Script" path="res://bidi.gd" id="2"]
  3. [ext_resource type="FontFile" uid="uid://dcyy0x2u3jocr" path="res://fonts/NotoSansThaiUI_Regular.ttf" id="2_plk2w"]
  4. [ext_resource type="Script" path="res://custom_st_parser.gd" id="3"]
  5. [ext_resource type="FontFile" uid="uid://bk3udiiuy60g4" path="res://fonts/NotoNaskhArabicUI_Regular.ttf" id="3_cf43x"]
  6. [ext_resource type="FontVariation" uid="uid://bymgwaapysw4i" path="res://lib_font.tres" id="4"]
  7. [ext_resource type="FontFile" uid="uid://cwer1pi5ka4io" path="res://fonts/NotoSansHebrew_Regular.ttf" id="4_03wxc"]
  8. [ext_resource type="FontFile" uid="uid://bic5b75wmaxwj" path="res://fonts/LinLibertine_R.otf" id="5_dd4o7"]
  9. [ext_resource type="FontFile" uid="uid://cctsp10uhaei8" path="res://fonts/Recursive_VF_subset-GF_latin_basic.woff2" id="8_8y1fh"]
  10. [sub_resource type="FontVariation" id="FontVariation_pn5rb"]
  11. base_font = ExtResource("5_dd4o7")
  12. opentype_features = {
  13. 1818847073: 0
  14. }
  15. [sub_resource type="FontVariation" id="FontVariation_dej54"]
  16. base_font = ExtResource("5_dd4o7")
  17. opentype_features = {
  18. 1936548720: 1
  19. }
  20. [sub_resource type="FontVariation" id="FontVariation_cfykr"]
  21. base_font = ExtResource("5_dd4o7")
  22. opentype_features = {
  23. 2053468783: 1
  24. }
  25. [sub_resource type="FontVariation" id="FontVariation_tbiyt"]
  26. base_font = ExtResource("5_dd4o7")
  27. opentype_features = {
  28. 1718772067: 1
  29. }
  30. [sub_resource type="FontVariation" id="FontVariation_7cco7"]
  31. base_font = ExtResource("5_dd4o7")
  32. opentype_features = {
  33. 1869509997: 1,
  34. 1935764596: 1
  35. }
  36. [sub_resource type="FontVariation" id="FontVariation_vb6m6"]
  37. base_font = ExtResource("8_8y1fh")
  38. variation_opentype = {
  39. 1128354636: null,
  40. 1129468758: null,
  41. 1297043023: null,
  42. 2003265652: 400
  43. }
  44. [sub_resource type="SystemFont" id="SystemFont_2w5b3"]
  45. font_names = PackedStringArray("sans-serif")
  46. [sub_resource type="SystemFont" id="SystemFont_h8xpn"]
  47. font_names = PackedStringArray("serif")
  48. [sub_resource type="SystemFont" id="SystemFont_4rcq4"]
  49. font_names = PackedStringArray("monospace")
  50. [sub_resource type="SystemFont" id="SystemFont_gnv0g"]
  51. font_names = PackedStringArray("cursive")
  52. [sub_resource type="SystemFont" id="SystemFont_f282f"]
  53. font_names = PackedStringArray("fantasy")
  54. [sub_resource type="SystemFont" id="SystemFont_oua6b"]
  55. font_names = PackedStringArray("")
  56. [node name="Control" type="Control"]
  57. layout_mode = 3
  58. anchors_preset = 15
  59. anchor_right = 1.0
  60. anchor_bottom = 1.0
  61. grow_horizontal = 2
  62. grow_vertical = 2
  63. script = ExtResource("2")
  64. [node name="TabContainer" type="TabContainer" parent="."]
  65. layout_mode = 1
  66. anchors_preset = 15
  67. anchor_right = 1.0
  68. anchor_bottom = 1.0
  69. grow_horizontal = 2
  70. grow_vertical = 2
  71. theme_override_font_sizes/font_size = 14
  72. [node name="Line breaking and justification" type="Panel" parent="TabContainer"]
  73. layout_mode = 2
  74. [node name="LabelBrkInfo" type="Label" parent="TabContainer/Line breaking and justification"]
  75. layout_mode = 0
  76. offset_left = 30.0
  77. offset_top = 30.0
  78. offset_right = 830.0
  79. offset_bottom = 52.0
  80. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  81. theme_override_font_sizes/font_size = 14
  82. text = "1. Line breaking and space justification."
  83. [node name="LabelTHNoBreak" type="Label" parent="TabContainer/Line breaking and justification"]
  84. layout_mode = 1
  85. anchors_preset = -1
  86. anchor_top = 0.000891266
  87. anchor_bottom = 0.000891266
  88. offset_left = 30.0
  89. offset_top = 69.4474
  90. offset_right = 1046.0
  91. offset_bottom = 92.4474
  92. theme_override_fonts/font = ExtResource("2_plk2w")
  93. theme_override_font_sizes/font_size = 14
  94. text = "ภาษาไทย หรือ ภาษาไทยกลาง เป็นภาษาราชการและภาษาประจำชาติของประเทศไทย ภาษาไทยเป็นภาษาในกลุ่มภาษาไทซึ่งเป็นกลุ่มย่อยของตระกูลภาษาขร้า-ไท"
  95. autowrap_mode = 3
  96. [node name="LabelTHBreak" type="Label" parent="TabContainer/Line breaking and justification"]
  97. layout_mode = 0
  98. offset_left = 30.0
  99. offset_top = 100.0
  100. offset_right = 331.0
  101. offset_bottom = 200.0
  102. theme_override_fonts/font = ExtResource("2_plk2w")
  103. theme_override_font_sizes/font_size = 14
  104. text = "ภาษาไทย หรือ ภาษาไทยกลาง เป็นภาษาราชการและภาษาประจำชาติของประเทศไทย ภาษาไทยเป็นภาษาในกลุ่มภาษาไทซึ่งเป็นกลุ่มย่อยของตระกูลภาษาขร้า-ไท"
  105. horizontal_alignment = 3
  106. autowrap_mode = 3
  107. [node name="LabelJstInfo" type="Label" parent="TabContainer/Line breaking and justification"]
  108. layout_mode = 0
  109. anchor_top = 0.000891266
  110. anchor_bottom = 0.000891266
  111. offset_left = 30.0
  112. offset_top = 213.5
  113. offset_right = 830.0
  114. offset_bottom = 236.5
  115. theme_override_colors/font_color = Color(0.420413, 0.832031, 0.504023, 1)
  116. theme_override_font_sizes/font_size = 14
  117. text = "2. Kashida justification."
  118. [node name="LabelARNoJst2" type="Label" parent="TabContainer/Line breaking and justification"]
  119. layout_mode = 1
  120. anchors_preset = -1
  121. anchor_top = 0.000891266
  122. anchor_bottom = 0.000891266
  123. offset_left = 30.0
  124. offset_top = 248.447
  125. offset_right = 258.0
  126. offset_bottom = 271.447
  127. theme_override_fonts/font = ExtResource("3_cf43x")
  128. theme_override_font_sizes/font_size = 14
  129. text = "آنچ اندر وهم ناید آن شوم"
  130. horizontal_alignment = 3
  131. [node name="LabelARJst" type="Label" parent="TabContainer/Line breaking and justification"]
  132. layout_mode = 0
  133. anchor_top = 0.000891266
  134. anchor_bottom = 0.000891266
  135. offset_left = 30.0
  136. offset_top = 273.5
  137. offset_right = 255.0
  138. offset_bottom = 296.5
  139. theme_override_fonts/font = ExtResource("3_cf43x")
  140. theme_override_font_sizes/font_size = 14
  141. text = "آنچ اندر وهم ناید آن شوم"
  142. [node name="Text direction" type="Panel" parent="TabContainer"]
  143. visible = false
  144. layout_mode = 2
  145. [node name="LabelDirInfo" type="Label" parent="TabContainer/Text direction"]
  146. layout_mode = 0
  147. offset_left = 30.0
  148. offset_top = 30.0
  149. offset_right = 830.0
  150. offset_bottom = 50.0
  151. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  152. theme_override_font_sizes/font_size = 14
  153. text = "1. Base text direction. (Left-to-right, Auto, Right-to-left)"
  154. [node name="LineEditL1" type="LineEdit" parent="TabContainer/Text direction"]
  155. layout_mode = 0
  156. offset_left = 30.0
  157. offset_top = 60.0
  158. offset_right = 260.0
  159. offset_bottom = 90.0
  160. theme_override_fonts/font = ExtResource("3_cf43x")
  161. theme_override_font_sizes/font_size = 14
  162. text = "Najaf (ٱلنَّجَف‎), also known as Baniqia."
  163. editable = false
  164. context_menu_enabled = false
  165. text_direction = 1
  166. [node name="LineEditA1" type="LineEdit" parent="TabContainer/Text direction"]
  167. layout_mode = 0
  168. offset_left = 270.0
  169. offset_top = 60.0
  170. offset_right = 500.0
  171. offset_bottom = 90.0
  172. theme_override_fonts/font = ExtResource("3_cf43x")
  173. theme_override_font_sizes/font_size = 14
  174. text = "Najaf (ٱلنَّجَف‎), also known as Baniqia."
  175. editable = false
  176. context_menu_enabled = false
  177. [node name="LineEditR1" type="LineEdit" parent="TabContainer/Text direction"]
  178. modulate = Color(0.847059, 0.54902, 0.54902, 1)
  179. layout_mode = 0
  180. offset_left = 510.0
  181. offset_top = 60.0
  182. offset_right = 740.0
  183. offset_bottom = 90.0
  184. theme_override_fonts/font = ExtResource("3_cf43x")
  185. theme_override_font_sizes/font_size = 14
  186. text = "Najaf (ٱلنَّجَف‎), also known as Baniqia."
  187. editable = false
  188. context_menu_enabled = false
  189. text_direction = 2
  190. [node name="LineEditL2" type="LineEdit" parent="TabContainer/Text direction"]
  191. modulate = Color(0.847059, 0.54902, 0.54902, 1)
  192. layout_mode = 0
  193. offset_left = 30.0
  194. offset_top = 99.5
  195. offset_right = 260.0
  196. offset_bottom = 129.5
  197. theme_override_fonts/font = ExtResource("3_cf43x")
  198. theme_override_font_sizes/font_size = 14
  199. text = "الإنجليزية أو الإنغليزية (بالإنجليزية: English)‏،"
  200. editable = false
  201. context_menu_enabled = false
  202. text_direction = 1
  203. [node name="LineEditA2" type="LineEdit" parent="TabContainer/Text direction"]
  204. layout_mode = 0
  205. offset_left = 270.0
  206. offset_top = 100.0
  207. offset_right = 500.0
  208. offset_bottom = 130.0
  209. theme_override_fonts/font = ExtResource("3_cf43x")
  210. theme_override_font_sizes/font_size = 14
  211. text = "الإنجليزية أو الإنغليزية (بالإنجليزية: English)‏،"
  212. editable = false
  213. context_menu_enabled = false
  214. [node name="LineEditR2" type="LineEdit" parent="TabContainer/Text direction"]
  215. layout_mode = 0
  216. offset_left = 510.0
  217. offset_top = 100.0
  218. offset_right = 740.0
  219. offset_bottom = 130.0
  220. theme_override_fonts/font = ExtResource("3_cf43x")
  221. theme_override_font_sizes/font_size = 14
  222. text = "الإنجليزية أو الإنغليزية (بالإنجليزية: English)‏،"
  223. editable = false
  224. context_menu_enabled = false
  225. text_direction = 2
  226. [node name="LabelSTInfo" type="Label" parent="TabContainer/Text direction"]
  227. layout_mode = 0
  228. offset_left = 30.0
  229. offset_top = 150.0
  230. offset_right = 830.0
  231. offset_bottom = 170.0
  232. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  233. theme_override_font_sizes/font_size = 14
  234. text = "2. BiDi override for structured text (select item in the list to test)."
  235. [node name="Tree" type="Tree" parent="TabContainer/Text direction"]
  236. layout_mode = 0
  237. offset_left = 30.0
  238. offset_top = 180.0
  239. offset_right = 430.0
  240. offset_bottom = 340.0
  241. theme_override_fonts/font = ExtResource("4_03wxc")
  242. theme_override_font_sizes/font_size = 14
  243. [node name="LabelNoST" type="Label" parent="TabContainer/Text direction"]
  244. layout_mode = 0
  245. offset_left = 460.0
  246. offset_top = 195.0
  247. offset_right = 560.0
  248. offset_bottom = 215.0
  249. theme_override_font_sizes/font_size = 14
  250. text = "Default BiDi:"
  251. [node name="LabelST" type="Label" parent="TabContainer/Text direction"]
  252. layout_mode = 0
  253. offset_left = 460.0
  254. offset_top = 238.5
  255. offset_right = 560.0
  256. offset_bottom = 258.5
  257. theme_override_font_sizes/font_size = 14
  258. text = "\"File\" override:"
  259. [node name="LineEditNoST" type="LineEdit" parent="TabContainer/Text direction"]
  260. layout_mode = 0
  261. offset_left = 582.0
  262. offset_top = 188.0
  263. offset_right = 882.0
  264. offset_bottom = 218.0
  265. theme_override_fonts/font = ExtResource("4_03wxc")
  266. theme_override_font_sizes/font_size = 14
  267. editable = false
  268. context_menu_enabled = false
  269. [node name="LineEditST" type="LineEdit" parent="TabContainer/Text direction"]
  270. layout_mode = 0
  271. offset_left = 582.0
  272. offset_top = 236.0
  273. offset_right = 882.0
  274. offset_bottom = 266.0
  275. theme_override_fonts/font = ExtResource("4_03wxc")
  276. theme_override_font_sizes/font_size = 14
  277. editable = false
  278. context_menu_enabled = false
  279. structured_text_bidi_override = 2
  280. [node name="LabelSTCustomInfo" type="Label" parent="TabContainer/Text direction"]
  281. layout_mode = 0
  282. offset_left = 30.0
  283. offset_top = 358.0
  284. offset_right = 830.0
  285. offset_bottom = 381.0
  286. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  287. theme_override_font_sizes/font_size = 14
  288. text = "3. Custom BiDi override script (split by \":\" and reverse the order, see \"custom_st_parser.gd\"):"
  289. [node name="LineEditCustomSTSource" type="LineEdit" parent="TabContainer/Text direction"]
  290. layout_mode = 0
  291. offset_left = 30.0
  292. offset_top = 396.0
  293. offset_right = 330.0
  294. offset_bottom = 426.0
  295. theme_override_font_sizes/font_size = 14
  296. text = "first:second:third"
  297. context_menu_enabled = false
  298. [node name="LineEditCustomSTDst" type="LineEdit" parent="TabContainer/Text direction"]
  299. layout_mode = 0
  300. offset_left = 342.0
  301. offset_top = 396.0
  302. offset_right = 642.0
  303. offset_bottom = 426.0
  304. theme_override_font_sizes/font_size = 14
  305. text = "first:second:third"
  306. context_menu_enabled = false
  307. structured_text_bidi_override = 6
  308. script = ExtResource("3")
  309. [node name="Font features" type="Panel" parent="TabContainer"]
  310. visible = false
  311. layout_mode = 2
  312. [node name="LabelDisplay1" type="Label" parent="TabContainer/Font features"]
  313. layout_mode = 0
  314. offset_left = 30.0
  315. offset_top = 30.0
  316. offset_right = 330.0
  317. offset_bottom = 70.0
  318. theme_override_fonts/font = ExtResource("4")
  319. theme_override_font_sizes/font_size = 24
  320. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  321. [node name="LabelInfo1" type="Label" parent="TabContainer/Font features"]
  322. layout_mode = 0
  323. offset_left = 446.0
  324. offset_top = 30.0
  325. offset_right = 746.0
  326. offset_bottom = 70.0
  327. theme_override_fonts/font = ExtResource("4")
  328. theme_override_font_sizes/font_size = 18
  329. text = "default, no features"
  330. [node name="LabelDisplay2" type="Label" parent="TabContainer/Font features"]
  331. layout_mode = 0
  332. offset_left = 30.0
  333. offset_top = 69.5
  334. offset_right = 330.0
  335. offset_bottom = 109.5
  336. theme_override_fonts/font = SubResource("FontVariation_pn5rb")
  337. theme_override_font_sizes/font_size = 24
  338. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  339. [node name="LabelInfo2" type="Label" parent="TabContainer/Font features"]
  340. layout_mode = 0
  341. offset_left = 446.0
  342. offset_top = 70.0
  343. offset_right = 746.0
  344. offset_bottom = 110.0
  345. theme_override_fonts/font = ExtResource("4")
  346. theme_override_font_sizes/font_size = 18
  347. text = "standard_ligatures=0 (disabled)"
  348. [node name="LabelDisplay3" type="Label" parent="TabContainer/Font features"]
  349. layout_mode = 0
  350. offset_left = 30.0
  351. offset_top = 109.5
  352. offset_right = 330.0
  353. offset_bottom = 149.5
  354. theme_override_fonts/font = SubResource("FontVariation_dej54")
  355. theme_override_font_sizes/font_size = 24
  356. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  357. [node name="LabelInfo3" type="Label" parent="TabContainer/Font features"]
  358. layout_mode = 0
  359. offset_left = 446.0
  360. offset_top = 110.0
  361. offset_right = 746.0
  362. offset_bottom = 150.0
  363. theme_override_fonts/font = ExtResource("4")
  364. theme_override_font_sizes/font_size = 18
  365. text = "small_capitals=1"
  366. [node name="LabelDisplay4" type="Label" parent="TabContainer/Font features"]
  367. layout_mode = 0
  368. offset_left = 31.0
  369. offset_top = 150.5
  370. offset_right = 331.0
  371. offset_bottom = 190.5
  372. theme_override_fonts/font = SubResource("FontVariation_cfykr")
  373. theme_override_font_sizes/font_size = 24
  374. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  375. [node name="LabelInfo4" type="Label" parent="TabContainer/Font features"]
  376. layout_mode = 0
  377. offset_left = 446.0
  378. offset_top = 150.0
  379. offset_right = 746.0
  380. offset_bottom = 190.0
  381. theme_override_fonts/font = ExtResource("4")
  382. theme_override_font_sizes/font_size = 18
  383. text = "slashed_zero=1"
  384. [node name="LabelDisplay5" type="Label" parent="TabContainer/Font features"]
  385. layout_mode = 0
  386. offset_left = 31.0
  387. offset_top = 190.5
  388. offset_right = 331.0
  389. offset_bottom = 230.5
  390. theme_override_fonts/font = SubResource("FontVariation_tbiyt")
  391. theme_override_font_sizes/font_size = 24
  392. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  393. [node name="LabelInfo5" type="Label" parent="TabContainer/Font features"]
  394. layout_mode = 0
  395. offset_left = 446.0
  396. offset_top = 190.0
  397. offset_right = 918.609
  398. offset_bottom = 230.0
  399. theme_override_fonts/font = ExtResource("4")
  400. theme_override_font_sizes/font_size = 18
  401. text = "fractions"
  402. [node name="LabelDisplay6" type="Label" parent="TabContainer/Font features"]
  403. layout_mode = 0
  404. offset_left = 31.0
  405. offset_top = 230.5
  406. offset_right = 331.0
  407. offset_bottom = 270.5
  408. theme_override_fonts/font = SubResource("FontVariation_7cco7")
  409. theme_override_font_sizes/font_size = 24
  410. text = "Que fin after 019 1/2 1/3 &, h, β, θ,"
  411. [node name="LabelInfo6" type="Label" parent="TabContainer/Font features"]
  412. layout_mode = 0
  413. offset_left = 446.0
  414. offset_top = 230.0
  415. offset_right = 918.609
  416. offset_bottom = 270.0
  417. theme_override_fonts/font = ExtResource("4")
  418. theme_override_font_sizes/font_size = 18
  419. text = "oldstyle_figures=1, stylistic_alternates=1"
  420. [node name="RichTextLabel2" type="RichTextLabel" parent="TabContainer/Font features"]
  421. layout_mode = 1
  422. anchors_preset = -1
  423. anchor_left = -0.000334372
  424. anchor_right = -0.000334372
  425. offset_left = 33.3852
  426. offset_top = 327.0
  427. offset_right = 992.385
  428. offset_bottom = 488.0
  429. theme_override_fonts/normal_font = ExtResource("4")
  430. theme_override_font_sizes/normal_font_size = 18
  431. bbcode_enabled = true
  432. text = "RichTextLabel BBCode:
  433. [font_size=24]
  434. Que fin 1/3 0
  435. [opentype_features=liga=0]Que fin 1/3 0[/opentype_features] [color=#fffa](liga=0 - disables ligatures)[/color]
  436. [opentype_features=frac=1,zero]Que fin 1/3 0[/opentype_features] [color=#fffa](frac=1,zero - fractions and slashed zero)[/color][/font_size]"
  437. [node name="Variable fonts" type="Panel" parent="TabContainer"]
  438. visible = false
  439. layout_mode = 2
  440. [node name="LabelVarInfo" type="Label" parent="TabContainer/Variable fonts"]
  441. layout_mode = 0
  442. offset_left = 30.0
  443. offset_top = 30.0
  444. offset_right = 830.0
  445. offset_bottom = 53.0
  446. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  447. theme_override_font_sizes/font_size = 14
  448. text = "Variable font example."
  449. [node name="Variables" type="VBoxContainer" parent="TabContainer/Variable fonts"]
  450. layout_mode = 0
  451. offset_left = 40.0
  452. offset_top = 88.0
  453. offset_right = 351.0
  454. offset_bottom = 174.0
  455. [node name="Size" type="HBoxContainer" parent="TabContainer/Variable fonts/Variables"]
  456. layout_mode = 2
  457. theme_override_constants/separation = 20
  458. [node name="Label" type="Label" parent="TabContainer/Variable fonts/Variables/Size"]
  459. layout_mode = 2
  460. size_flags_horizontal = 3
  461. size_flags_stretch_ratio = 0.3
  462. text = "Size"
  463. [node name="HSlider" type="HSlider" parent="TabContainer/Variable fonts/Variables/Size"]
  464. layout_mode = 2
  465. size_flags_horizontal = 3
  466. size_flags_vertical = 4
  467. min_value = 8.0
  468. max_value = 128.0
  469. value = 64.0
  470. [node name="Value" type="Label" parent="TabContainer/Variable fonts/Variables/Size"]
  471. layout_mode = 2
  472. size_flags_horizontal = 3
  473. size_flags_stretch_ratio = 0.2
  474. text = "64"
  475. [node name="Weight" type="HBoxContainer" parent="TabContainer/Variable fonts/Variables"]
  476. layout_mode = 2
  477. theme_override_constants/separation = 20
  478. [node name="Label" type="Label" parent="TabContainer/Variable fonts/Variables/Weight"]
  479. layout_mode = 2
  480. size_flags_horizontal = 3
  481. size_flags_stretch_ratio = 0.3
  482. text = "Weight"
  483. [node name="HSlider" type="HSlider" parent="TabContainer/Variable fonts/Variables/Weight"]
  484. layout_mode = 2
  485. size_flags_horizontal = 3
  486. size_flags_vertical = 4
  487. min_value = 300.0
  488. max_value = 1000.0
  489. step = 50.0
  490. value = 400.0
  491. [node name="Value" type="Label" parent="TabContainer/Variable fonts/Variables/Weight"]
  492. layout_mode = 2
  493. size_flags_horizontal = 3
  494. size_flags_stretch_ratio = 0.2
  495. text = "400"
  496. [node name="Slant" type="HBoxContainer" parent="TabContainer/Variable fonts/Variables"]
  497. layout_mode = 2
  498. theme_override_constants/separation = 20
  499. [node name="Label" type="Label" parent="TabContainer/Variable fonts/Variables/Slant"]
  500. layout_mode = 2
  501. size_flags_horizontal = 3
  502. size_flags_stretch_ratio = 0.3
  503. text = "Slant"
  504. [node name="HSlider" type="HSlider" parent="TabContainer/Variable fonts/Variables/Slant"]
  505. layout_mode = 2
  506. size_flags_horizontal = 3
  507. size_flags_vertical = 4
  508. min_value = -15.0
  509. max_value = 0.0
  510. [node name="Value" type="Label" parent="TabContainer/Variable fonts/Variables/Slant"]
  511. layout_mode = 2
  512. size_flags_horizontal = 3
  513. size_flags_stretch_ratio = 0.2
  514. text = "0"
  515. [node name="Cursive" type="CheckButton" parent="TabContainer/Variable fonts/Variables"]
  516. custom_minimum_size = Vector2(140, 0)
  517. layout_mode = 2
  518. size_flags_horizontal = 0
  519. text = "Cursive"
  520. [node name="Casual" type="CheckButton" parent="TabContainer/Variable fonts/Variables"]
  521. custom_minimum_size = Vector2(140, 0)
  522. layout_mode = 2
  523. size_flags_horizontal = 0
  524. text = "Casual"
  525. [node name="Monospace" type="CheckButton" parent="TabContainer/Variable fonts/Variables"]
  526. custom_minimum_size = Vector2(140, 0)
  527. layout_mode = 2
  528. size_flags_horizontal = 0
  529. text = "Monospace"
  530. [node name="VariableFontPreview" type="LineEdit" parent="TabContainer/Variable fonts"]
  531. layout_mode = 0
  532. offset_left = 36.0
  533. offset_top = 347.0
  534. offset_right = 1115.0
  535. offset_bottom = 525.0
  536. theme_override_fonts/font = SubResource("FontVariation_vb6m6")
  537. theme_override_font_sizes/font_size = 64
  538. text = "Example text – 1234567890"
  539. [node name="LinkButton" type="LinkButton" parent="TabContainer/Variable fonts/VariableFontPreview"]
  540. layout_mode = 0
  541. offset_left = 959.0
  542. offset_top = 193.0
  543. offset_right = 1077.0
  544. offset_bottom = 238.0
  545. text = "Font: Recursive"
  546. uri = "https://www.recursive.design/"
  547. [node name="System fonts" type="Panel" parent="TabContainer"]
  548. visible = false
  549. layout_mode = 2
  550. [node name="LabelVarInfo" type="Label" parent="TabContainer/System fonts"]
  551. layout_mode = 0
  552. offset_left = 30.0
  553. offset_top = 30.0
  554. offset_right = 830.0
  555. offset_bottom = 53.0
  556. theme_override_colors/font_color = Color(0.419608, 0.831373, 0.505882, 1)
  557. theme_override_font_sizes/font_size = 14
  558. text = "Loading and displaying system fonts."
  559. [node name="ValueSetter" type="LineEdit" parent="TabContainer/System fonts"]
  560. layout_mode = 0
  561. offset_left = 36.0
  562. offset_top = 77.0
  563. offset_right = 695.0
  564. offset_bottom = 108.0
  565. text = "Example text – 1234567890"
  566. placeholder_text = "Enter text here"
  567. [node name="Italic" type="CheckButton" parent="TabContainer/System fonts"]
  568. layout_mode = 0
  569. offset_left = 406.0
  570. offset_top = 116.0
  571. offset_right = 492.0
  572. offset_bottom = 147.0
  573. text = "Italic"
  574. [node name="Weight" type="HBoxContainer" parent="TabContainer/System fonts"]
  575. offset_left = 40.0
  576. offset_top = 120.0
  577. offset_right = 383.0
  578. offset_bottom = 146.0
  579. theme_override_constants/separation = 20
  580. [node name="Label" type="Label" parent="TabContainer/System fonts/Weight"]
  581. layout_mode = 2
  582. size_flags_horizontal = 3
  583. size_flags_stretch_ratio = 0.3
  584. text = "Weight"
  585. [node name="HSlider" type="HSlider" parent="TabContainer/System fonts/Weight"]
  586. layout_mode = 2
  587. size_flags_horizontal = 3
  588. size_flags_vertical = 4
  589. min_value = 100.0
  590. max_value = 900.0
  591. step = 100.0
  592. value = 400.0
  593. [node name="Value" type="Label" parent="TabContainer/System fonts/Weight"]
  594. layout_mode = 2
  595. size_flags_horizontal = 3
  596. size_flags_stretch_ratio = 0.2
  597. text = "400"
  598. [node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/System fonts"]
  599. layout_mode = 0
  600. offset_left = 37.0
  601. offset_top = 176.0
  602. offset_right = 1126.0
  603. offset_bottom = 489.0
  604. [node name="SansSerif" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  605. layout_mode = 2
  606. theme_override_constants/separation = 20
  607. [node name="FontName" type="Label" parent="TabContainer/System fonts/VBoxContainer/SansSerif"]
  608. custom_minimum_size = Vector2(330, 0)
  609. layout_mode = 2
  610. theme_override_fonts/font = SubResource("SystemFont_2w5b3")
  611. theme_override_font_sizes/font_size = 32
  612. text = "sans-serif"
  613. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/SansSerif"]
  614. layout_mode = 2
  615. size_flags_horizontal = 3
  616. theme_override_fonts/font = SubResource("SystemFont_2w5b3")
  617. theme_override_font_sizes/font_size = 32
  618. text = "Example text – 1234567890"
  619. text_overrun_behavior = 3
  620. [node name="Serif" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  621. layout_mode = 2
  622. theme_override_constants/separation = 20
  623. [node name="FontName" type="Label" parent="TabContainer/System fonts/VBoxContainer/Serif"]
  624. custom_minimum_size = Vector2(330, 0)
  625. layout_mode = 2
  626. theme_override_fonts/font = SubResource("SystemFont_h8xpn")
  627. theme_override_font_sizes/font_size = 32
  628. text = "serif"
  629. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/Serif"]
  630. layout_mode = 2
  631. size_flags_horizontal = 3
  632. theme_override_fonts/font = SubResource("SystemFont_h8xpn")
  633. theme_override_font_sizes/font_size = 32
  634. text = "Example text – 1234567890"
  635. text_overrun_behavior = 3
  636. [node name="Monospace" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  637. layout_mode = 2
  638. theme_override_constants/separation = 20
  639. [node name="FontName" type="Label" parent="TabContainer/System fonts/VBoxContainer/Monospace"]
  640. custom_minimum_size = Vector2(330, 0)
  641. layout_mode = 2
  642. theme_override_fonts/font = SubResource("SystemFont_4rcq4")
  643. theme_override_font_sizes/font_size = 32
  644. text = "monospace"
  645. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/Monospace"]
  646. layout_mode = 2
  647. size_flags_horizontal = 3
  648. theme_override_fonts/font = SubResource("SystemFont_4rcq4")
  649. theme_override_font_sizes/font_size = 32
  650. text = "Example text – 1234567890"
  651. text_overrun_behavior = 3
  652. [node name="Cursive" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  653. layout_mode = 2
  654. theme_override_constants/separation = 20
  655. [node name="FontName" type="Label" parent="TabContainer/System fonts/VBoxContainer/Cursive"]
  656. custom_minimum_size = Vector2(330, 0)
  657. layout_mode = 2
  658. theme_override_fonts/font = SubResource("SystemFont_gnv0g")
  659. theme_override_font_sizes/font_size = 32
  660. text = "cursive"
  661. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/Cursive"]
  662. layout_mode = 2
  663. size_flags_horizontal = 3
  664. theme_override_fonts/font = SubResource("SystemFont_gnv0g")
  665. theme_override_font_sizes/font_size = 32
  666. text = "Example text – 1234567890"
  667. text_overrun_behavior = 3
  668. [node name="Fantasy" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  669. layout_mode = 2
  670. theme_override_constants/separation = 20
  671. [node name="FontName" type="Label" parent="TabContainer/System fonts/VBoxContainer/Fantasy"]
  672. custom_minimum_size = Vector2(330, 0)
  673. layout_mode = 2
  674. theme_override_fonts/font = SubResource("SystemFont_f282f")
  675. theme_override_font_sizes/font_size = 32
  676. text = "fantasy"
  677. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/Fantasy"]
  678. layout_mode = 2
  679. size_flags_horizontal = 3
  680. theme_override_fonts/font = SubResource("SystemFont_f282f")
  681. theme_override_font_sizes/font_size = 32
  682. text = "Example text – 1234567890"
  683. text_overrun_behavior = 3
  684. [node name="Custom" type="HBoxContainer" parent="TabContainer/System fonts/VBoxContainer"]
  685. layout_mode = 2
  686. theme_override_constants/separation = 20
  687. [node name="FontName" type="LineEdit" parent="TabContainer/System fonts/VBoxContainer/Custom"]
  688. custom_minimum_size = Vector2(330, 0)
  689. layout_mode = 2
  690. theme_override_fonts/font = SubResource("SystemFont_oua6b")
  691. theme_override_font_sizes/font_size = 32
  692. placeholder_text = "Custom Font Name"
  693. [node name="Value" type="Label" parent="TabContainer/System fonts/VBoxContainer/Custom"]
  694. layout_mode = 2
  695. size_flags_horizontal = 3
  696. theme_override_fonts/font = SubResource("SystemFont_oua6b")
  697. theme_override_font_sizes/font_size = 32
  698. text = "Example text – 1234567890"
  699. text_overrun_behavior = 3
  700. [connection signal="item_selected" from="TabContainer/Text direction/Tree" to="." method="_on_Tree_item_selected"]
  701. [connection signal="text_changed" from="TabContainer/Text direction/LineEditCustomSTSource" to="." method="_on_LineEditCustomSTSource_text_changed"]
  702. [connection signal="text_changed" from="TabContainer/Text direction/LineEditCustomSTDst" to="." method="_on_LineEditCustomSTDst_text_changed"]
  703. [connection signal="tree_entered" from="TabContainer/Text direction/LineEditCustomSTDst" to="." method="_on_LineEditCustomSTDst_tree_entered"]
  704. [connection signal="value_changed" from="TabContainer/Variable fonts/Variables/Size/HSlider" to="." method="_on_variable_size_value_changed"]
  705. [connection signal="value_changed" from="TabContainer/Variable fonts/Variables/Weight/HSlider" to="." method="_on_variable_weight_value_changed"]
  706. [connection signal="value_changed" from="TabContainer/Variable fonts/Variables/Slant/HSlider" to="." method="_on_variable_slant_value_changed"]
  707. [connection signal="toggled" from="TabContainer/Variable fonts/Variables/Cursive" to="." method="_on_variable_cursive_toggled"]
  708. [connection signal="toggled" from="TabContainer/Variable fonts/Variables/Casual" to="." method="_on_variable_casual_toggled"]
  709. [connection signal="toggled" from="TabContainer/Variable fonts/Variables/Monospace" to="." method="_on_variable_monospace_toggled"]
  710. [connection signal="text_changed" from="TabContainer/System fonts/ValueSetter" to="." method="_on_system_font_value_text_changed"]
  711. [connection signal="toggled" from="TabContainer/System fonts/Italic" to="." method="_on_system_font_italic_toggled"]
  712. [connection signal="value_changed" from="TabContainer/System fonts/Weight/HSlider" to="." method="_on_system_font_weight_value_changed"]
  713. [connection signal="text_changed" from="TabContainer/System fonts/VBoxContainer/Custom/FontName" to="." method="_on_system_font_name_text_changed"]