Space Engineers

Space Engineers

Build Info (bleeding edge build)
此主题已被锁定
Arstraea 2022 年 2 月 9 日 上午 7:57
Custom Font problem
Screenshot
I tested 9/2/2022 version and most of all UI displayed my custom font (KOR) well but some of command string (which is action) in the toolbar is missing.

Originally it must be a "고정(Lock)" in the part of screenshot...
最后由 Arstraea 编辑于; 2022 年 2 月 9 日 上午 7:58
< >
正在显示第 1 - 6 条,共 6 条留言
Digi  [开发者] 2022 年 2 月 9 日 下午 9:06 
I see, I'll add a config setting to stop the mod from overriding the font.

The reason I'm overriding that toolbar font is because the vanilla one is a blue font and the icons are also the same shade of blue, and the font has no shadow or outline... it's pretty horrible reading it once text goes over the icon xD

But mind that the setting might also disable custom status text overrides in the future as I'm planning on making a monospace font specifically for that, so any other font would likely result in status not showing up (the problem is the game likes to hide text above a line that is too long, it's super annoying especially with a non-monospace font xD)
最后由 Digi 编辑于; 2022 年 2 月 9 日 下午 9:06
Arstraea 2022 年 2 月 10 日 上午 12:39 
It is hard to describe my opinion and don't know it's possible...
Is it possible to replace glyphs and bitmaps in the code one by one only which is you want to replace?

My font definition file (FontDataPA.xml) is just additionally contained more informations about Korean characters in the bitmaps and glyphs. Default characters(Like A - z?) and FontDataPA-0.dds are not modified.

So I just curios if code could overwrite the default character only in FontDataPA to use yours.
Google Drive - Font File of my KOR stuff[drive.google.com]

Someone maybe needs that option that you describe, but if my opinion could work then I'm able to use that future planned Feature with KOR fonts together. I just hope, Lord.

P.S.
I'm sorry, I'm not good at English. :(
最后由 Arstraea 编辑于; 2022 年 2 月 10 日 上午 3:46
Arstraea 2022 年 3 月 31 日 下午 10:03 
Sorry, I think current font overriding system is affected to all BuildInfo's features.

I set Action Status Font Override off and my toolbar now display text normally what I expected, but Block Info's text and additional toolbar info UI(display action command what I set to toolbar ) can't display Korean. ;)
Digi  [开发者] 2022 年 4 月 1 日 上午 1:10 
It's because those are rendered in 3D with billboards/sprites, because the modAPI has no way to draw text anywhere so we're resorting to hax =)
And that billboard rendering can only draw transparent material definitions, so it can't just use the existing fonts, it has to be declared in a special way for the textAPI mod to use it.

See contents of: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2163222751 - it has a script that adds textAPI-compatible font.

This mod's font for textAPI is BI_SEOutlined (declared in my mod), you probably can declare that subtype aswell with a mod and it might override it.
最后由 Digi 编辑于; 2022 年 4 月 1 日 上午 1:31
Arstraea 2022 年 4 月 1 日 上午 1:55 
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2409196107
I asked it to you a year ago for making font actually. :D
When I was created it, the target font name of BuildInfo is "white".

And I guess, maybe it needs to update the FONTNAME const in my font mod to yours (BI_SEOutlined) for overwriting it...

I'll test it after a hour. Thank you, lord!
最后由 Arstraea 编辑于; 2022 年 4 月 1 日 上午 2:00
Arstraea 2022 年 4 月 1 日 上午 5:58 
It worked!! Thank you, Digi :D
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50