fix(theme): fix regular font resource

This commit is contained in:
Leroy Hopson 2024-04-06 23:56:01 +13:00
parent 4bd25bb92c
commit 898d49e392
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 7 additions and 16 deletions

View file

@ -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)

View file

@ -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)