Skip to content

Commit

Permalink
fonts for web?
Browse files Browse the repository at this point in the history
  • Loading branch information
nogal committed Nov 11, 2023
1 parent 3851d7e commit 9ae7069
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
Binary file added assets/fonts/NotoSansJP-SemiBold.ttf
Binary file not shown.
33 changes: 33 additions & 0 deletions assets/fonts/NotoSansJP-SemiBold.ttf.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[remap]

importer="font_data_dynamic"
type="FontFile"
uid="uid://cn7ksadp7xhui"
path="res://.godot/imported/NotoSansJP-SemiBold.ttf-4a5427d07cefe39dd6a03f0169fb74a8.fontdata"

[deps]

source_file="res://assets/fonts/NotoSansJP-SemiBold.ttf"
dest_files=["res://.godot/imported/NotoSansJP-SemiBold.ttf-4a5427d07cefe39dd6a03f0169fb74a8.fontdata"]

[params]

Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
Binary file modified locale/locale.en_US.translation
Binary file not shown.
Binary file modified locale/locale.jp.translation
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Game/base_theme.tres
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[gd_resource type="Theme" load_steps=7 format=3 uid="uid://b8r3kfpe6xmu4"]
[gd_resource type="Theme" load_steps=8 format=3 uid="uid://b8r3kfpe6xmu4"]

[ext_resource type="FontFile" uid="uid://cn7ksadp7xhui" path="res://assets/fonts/NotoSansJP-SemiBold.ttf" id="1_7g3nk"]
[ext_resource type="Texture2D" uid="uid://kcpw3h04nvx0" path="res://assets/art/uipack_rpg_vector.svg" id="1_bv2ol"]

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_q66qv"]
Expand All @@ -24,10 +25,12 @@ region_rect = Rect2(358, 121, 190, 49)

[resource]
Button/colors/font_color = Color(0.431373, 0.247059, 0.0470588, 1)
Button/fonts/font = ExtResource("1_7g3nk")
Button/styles/disabled = SubResource("StyleBoxTexture_q66qv")
Button/styles/focus = SubResource("StyleBoxTexture_r8x8x")
Button/styles/hover = SubResource("StyleBoxTexture_1km2l")
Button/styles/normal = SubResource("StyleBoxTexture_wrf56")
Button/styles/pressed = SubResource("StyleBoxTexture_u5kn5")
RichTextLabel/font_sizes/bold_font_size = 21
RichTextLabel/font_sizes/normal_font_size = 64
RichTextLabel/fonts/normal_font = ExtResource("1_7g3nk")

0 comments on commit 9ae7069

Please sign in to comment.