Skip to content

Commit fa60623

Browse files
committed
Added Japanese font (Yu Gothic)
1 parent 5535a9f commit fa60623

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/SystemFontLocalization/Assets/SystemFontLocalization/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.7.3] - Develop
4+
### Added
5+
- Added Japanese font (Yu Gothic)
6+
37
## [0.7.2] - 2024-07-15
48
### Added
59
- Added Korean font.

src/SystemFontLocalization/Assets/SystemFontLocalization/Data/DefaultSystemFontNameList.asset

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ MonoBehaviour:
1515
_settings:
1616
- _languageCode: ja
1717
_fontNames:
18-
- '[Mm][Ss].*'
18+
- '[Yy]u\s*[Gg]oth[Mm]'
19+
- '[Yy]u\s*[Gg]oth*'
1920
- '[Mm][Ss]\s*[Gg]othic'
2021
- '[Mm][Ss]\s*[Mm]incho'
2122
- '[Hh]iragino\s*[Kk]aku\s*[Gg]othic'

src/SystemFontLocalization/Assets/SystemFontLocalization/Scripts/SystemFontReplacer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ private static TMP_FontAsset CreateFontAsset(IReadOnlyList<string> searchFontNam
113113
for (int i = 0; i < searchFontNames.Count; i++)
114114
{
115115
var languageFontName = searchFontNames[i];
116-
//var systemFontPath = systemFontPaths.FirstOrDefault(v => v.Replace(" ", "").Contains(languageFontName.Replace(" ", ""), System.StringComparison.OrdinalIgnoreCase));
117116
var systemFontPath = FindFont(systemFontPaths, languageFontName);
118117
if (string.IsNullOrEmpty(systemFontPath))
119118
{

src/SystemFontLocalization/Assets/SystemFontLocalization/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.eviltwo.system-font-localization",
33
"displayName": "System Font Localization",
4-
"version": "0.7.2",
4+
"version": "0.7.3",
55
"unity": "2022.3",
66
"description": "Auto generate fallback font asset by system font in runtime.",
77
"author": {

0 commit comments

Comments
 (0)