mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-25 02:30:27 +01:00
fix(theme): fix regular font resource
This commit is contained in:
parent
4bd25bb92c
commit
898d49e392
2 changed files with 7 additions and 16 deletions
|
@ -1,17 +1,6 @@
|
||||||
[gd_resource type="FontFile" format=3 uid="uid://dhmyegcx24dpo"]
|
[gd_resource type="FontVariation" load_steps=2 format=3 uid="uid://vmgmcu8gc6nt"]
|
||||||
|
|
||||||
|
[ext_resource type="FontFile" uid="uid://c51gnbjamppg" path="res://addons/godot_xterm/themes/fonts/jet_brains_mono/jet_brains_mono_nl-regular-2.304.ttf" id="1_8kori"]
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
cache/0/16/0/ascent = 0.0
|
base_font = ExtResource("1_8kori")
|
||||||
cache/0/16/0/descent = 0.0
|
|
||||||
cache/0/16/0/underline_position = 0.0
|
|
||||||
cache/0/16/0/underline_thickness = 0.0
|
|
||||||
cache/0/16/0/scale = 1.0
|
|
||||||
cache/0/16/0/kerning_overrides/16/0 = Vector2(0, 0)
|
|
||||||
cache/0/16/0/kerning_overrides/14/0 = Vector2(0, 0)
|
|
||||||
cache/0/14/0/ascent = 0.0
|
|
||||||
cache/0/14/0/descent = 0.0
|
|
||||||
cache/0/14/0/underline_position = 0.0
|
|
||||||
cache/0/14/0/underline_thickness = 0.0
|
|
||||||
cache/0/14/0/scale = 1.0
|
|
||||||
cache/0/14/0/kerning_overrides/16/0 = Vector2(0, 0)
|
|
||||||
cache/0/14/0/kerning_overrides/14/0 = Vector2(0, 0)
|
|
||||||
|
|
|
@ -17,7 +17,9 @@ func pick_cell_color(cell := Vector2i(0, 0)) -> Color:
|
||||||
|
|
||||||
func before_each():
|
func before_each():
|
||||||
subject = described_class.new()
|
subject = described_class.new()
|
||||||
subject.add_theme_font_override("normal_font", preload("res://themes/fonts/regular.tres"))
|
subject.add_theme_font_override(
|
||||||
|
"normal_font", preload("res://addons/godot_xterm/themes/fonts/regular.tres")
|
||||||
|
)
|
||||||
subject.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
subject.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||||
watch_signals(subject)
|
watch_signals(subject)
|
||||||
call_deferred("add_child_autofree", subject)
|
call_deferred("add_child_autofree", subject)
|
||||||
|
|
Loading…
Reference in a new issue