tweak font

This commit is contained in:
Nitwel 2024-05-26 16:43:14 +02:00
parent 5c5e15bb0b
commit c0cd7c01df
4 changed files with 19 additions and 13 deletions

View File

@ -14,7 +14,7 @@ dest_files=["res://.godot/imported/Montserrat-Medium.ttf-9322cac81db17d2f033bd26
Rendering=null Rendering=null
antialiasing=1 antialiasing=1
generate_mipmaps=false generate_mipmaps=true
disable_embedded_bitmaps=true disable_embedded_bitmaps=true
multichannel_signed_distance_field=false multichannel_signed_distance_field=false
msdf_pixel_range=8 msdf_pixel_range=8
@ -23,12 +23,17 @@ allow_system_fallback=true
force_autohinter=false force_autohinter=false
hinting=1 hinting=1
subpixel_positioning=1 subpixel_positioning=1
oversampling=0.0 oversampling=4.0
Fallbacks=null Fallbacks=null
fallbacks=[] fallbacks=[]
Compress=null Compress=null
compress=true compress=true
preload=[] preload=[{
"chars": [],
"glyphs": [],
"name": "New Configuration",
"size": Vector2i(16, 0)
}]
language_support={} language_support={}
script_support={} script_support={}
opentype_features={} opentype_features={}

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=6 format=3 uid="uid://xsiy71rsqulj"] [gd_scene load_steps=6 format=3 uid="uid://xsiy71rsqulj"]
[ext_resource type="Script" path="res://content/entities/sensor/sensor.gd" id="1_57ac8"] [ext_resource type="Script" path="res://content/entities/sensor/sensor.gd" id="1_57ac8"]
[ext_resource type="FontVariation" uid="uid://d2ofyimg5s65q" path="res://assets/fonts/ui_font_500.tres" id="2_4np3x"] [ext_resource type="FontFile" uid="uid://drsixxc4tmvjf" path="res://assets/fonts/Montserrat-Medium.ttf" id="2_3sfs5"]
[ext_resource type="Script" path="res://content/functions/movable.gd" id="2_fpq5q"] [ext_resource type="Script" path="res://content/functions/movable.gd" id="2_fpq5q"]
[ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="5_bmtkc"] [ext_resource type="PackedScene" uid="uid://bsjqdvkt0u87c" path="res://content/ui/components/button/button.tscn" id="5_bmtkc"]
@ -21,8 +21,9 @@ transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
pixel_size = 0.001 pixel_size = 0.001
text = "some text text = "some text
" "
font = ExtResource("2_4np3x") font = ExtResource("2_3sfs5")
font_size = 80 font_size = 80
outline_size = 0
[node name="Movable" type="Node" parent="."] [node name="Movable" type="Node" parent="."]
script = ExtResource("2_fpq5q") script = ExtResource("2_fpq5q")

View File

@ -2,10 +2,10 @@
[ext_resource type="Script" path="res://content/ui/components/input/input.gd" id="1_uml3t"] [ext_resource type="Script" path="res://content/ui/components/input/input.gd" id="1_uml3t"]
[ext_resource type="Script" path="res://content/ui/components/panel/panel.gd" id="3_3bvrj"] [ext_resource type="Script" path="res://content/ui/components/panel/panel.gd" id="3_3bvrj"]
[ext_resource type="FontVariation" uid="uid://d2ofyimg5s65q" path="res://assets/fonts/ui_font_500.tres" id="3_ij5fh"]
[ext_resource type="Shader" path="res://content/ui/components/panel/glass.gdshader" id="3_nl02b"] [ext_resource type="Shader" path="res://content/ui/components/panel/glass.gdshader" id="3_nl02b"]
[ext_resource type="FontFile" uid="uid://drsixxc4tmvjf" path="res://assets/fonts/Montserrat-Medium.ttf" id="4_yukbj"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_46adm"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_j4b8n"]
resource_local_to_scene = true resource_local_to_scene = true
render_priority = 10 render_priority = 10
shader = ExtResource("3_nl02b") shader = ExtResource("3_nl02b")
@ -20,7 +20,7 @@ shader_parameter/corner_radius = 0.2
shader_parameter/roughness = 0.3 shader_parameter/roughness = 0.3
shader_parameter/grain_amount = 0.02 shader_parameter/grain_amount = 0.02
[sub_resource type="QuadMesh" id="QuadMesh_1me1o"] [sub_resource type="QuadMesh" id="QuadMesh_ltwsx"]
size = Vector2(0.15, 0.03) size = Vector2(0.15, 0.03)
[sub_resource type="BoxShape3D" id="BoxShape3D_x4yp8"] [sub_resource type="BoxShape3D" id="BoxShape3D_x4yp8"]
@ -83,8 +83,8 @@ collision_mask = 6
[node name="Panel3D" type="MeshInstance3D" parent="Body"] [node name="Panel3D" type="MeshInstance3D" parent="Body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.005) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.005)
material_override = SubResource("ShaderMaterial_46adm") material_override = SubResource("ShaderMaterial_j4b8n")
mesh = SubResource("QuadMesh_1me1o") mesh = SubResource("QuadMesh_ltwsx")
script = ExtResource("3_3bvrj") script = ExtResource("3_3bvrj")
size = Vector2(0.15, 0.03) size = Vector2(0.15, 0.03)
@ -98,7 +98,7 @@ double_sided = false
render_priority = 30 render_priority = 30
outline_render_priority = 29 outline_render_priority = 29
text = "Example Text" text = "Example Text"
font = ExtResource("3_ij5fh") font = ExtResource("4_yukbj")
font_size = 18 font_size = 18
outline_size = 0 outline_size = 0
horizontal_alignment = 0 horizontal_alignment = 0
@ -118,7 +118,7 @@ render_priority = 30
outline_render_priority = 29 outline_render_priority = 29
modulate = Color(0.470076, 0.470076, 0.470076, 1) modulate = Color(0.470076, 0.470076, 0.470076, 1)
text = "Placeholder" text = "Placeholder"
font = ExtResource("3_ij5fh") font = ExtResource("4_yukbj")
font_size = 18 font_size = 18
outline_size = 0 outline_size = 0
horizontal_alignment = 0 horizontal_alignment = 0

View File

@ -51,7 +51,7 @@ import/fbx/enabled=false
[gui] [gui]
theme/custom_font="res://assets/fonts/ui_font_500.tres" theme/custom_font="res://assets/fonts/Montserrat-Medium.ttf"
[layer_names] [layer_names]