With Windows Insider Preview Build 21376, Microsoft added a new font family to Windows named Segoe UI Variable. So when I try to use the Segoe UI Variable Display Semibold typeface, Rainmeter crashes. There are no logs generated so I can't attach them. But here is the font file. You can try it for your self.
Segoe UI Variable:
It is currently April 25th, 2024, 9:04 am
[BUG]Raimeter crashes when using a specific font
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
[BUG]Raimeter crashes when using a specific font
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: [BUG]Raimeter crashes when using a specific font
This works for me without crashing.
There is only one Family name "Segoe UI Variable" and you can set as Semi Bold using either FontWeight or InlineSetting. InlineSettings
Code: Select all
[MeterString]
Meter=String
FontFace=Segoe UI Variable
FontWeight=600
Text=Segoe UI Variable Semi Bold
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: [BUG]Raimeter crashes when using a specific font
Actually the problem here isn't that. I know how to do it. It's just that all the other typefaces in the mentioned font family work perfectly. Just the Semibold one crashes Rainmeter. I thought it was worth reporting since Microsoft is planning to make Segoe UI Variable default(not certain, just mentioned in flight notes).eclectic-tech wrote: ↑May 28th, 2021, 3:13 am This works for me without crashing.There is only one Family name "Segoe UI Variable" and you can set as Semi Bold using either FontWeight or InlineSetting. InlineSettingsCode: Select all
[MeterString] Meter=String FontFace=Segoe UI Variable FontWeight=600 Text=Segoe UI Variable Semi Bold
from the Realm of Death
-
- Developer
- Posts: 2681
- Joined: November 24th, 2011, 1:42 am
- Location: Utah
Re: [BUG]Raimeter crashes when using a specific font
I am assuming you used FontFace=Segoe UI Variable Display Semibold instead of the "preferred" family name of FontFace=Segoe UI Variable as eclectic-tech suggested?
Either way, this shouldn't crash Rainmeter. The problem stems from attempting to create a font object similar to our old rendering system (GDI+). The conversion functions only accept a "type face" name that is less than 32 characters long. We didn't take this into account, which is understandable since the vast majority of fonts do not have that long of names. Since these are Windows API functions, the FontFace option will truncate to 31 characters in some cases.
Anyway, the problem has been fixed. Thanks for reporting!
-Brian
Either way, this shouldn't crash Rainmeter. The problem stems from attempting to create a font object similar to our old rendering system (GDI+). The conversion functions only accept a "type face" name that is less than 32 characters long. We didn't take this into account, which is understandable since the vast majority of fonts do not have that long of names. Since these are Windows API functions, the FontFace option will truncate to 31 characters in some cases.
Anyway, the problem has been fixed. Thanks for reporting!
-Brian
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: [BUG]Raimeter crashes when using a specific font
I didn't have the entire font family on my system to test, so thanks for reporting death.crafter.
As always, thanks for the explanation and fix, Brian.
As always, thanks for the explanation and fix, Brian.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::