mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Fixed some font crashing issues, allowed fonts to be 'optional' with a ?
This commit is contained in:
parent
868293f2f2
commit
d6a4b8b62c
3 changed files with 28 additions and 16 deletions
|
@ -360,20 +360,20 @@ namespace Beefy.theme.dark
|
|||
mHeaderFont.AddAlternate(scope String(BFApp.sApp.mInstallDir, "fonts/seguihis.ttf"), 11.7f * sScale);*/
|
||||
|
||||
mHeaderFont.Load("Segoe UI", 11.7f * sScale); //8.8
|
||||
mHeaderFont.AddAlternate("Segoe UI Symbol", 11.7f * sScale);
|
||||
mHeaderFont.AddAlternate("Segoe UI Symbol", 11.7f * sScale).IgnoreError();
|
||||
mHeaderFont.AddAlternate("Segoe UI Historic", 11.7f * sScale).IgnoreError();
|
||||
mHeaderFont.AddAlternate("Segoe UI Emoji", 11.7f * sScale).IgnoreError();
|
||||
|
||||
mSmallFont.Dispose(true);
|
||||
mSmallFont.Load("Segoe UI", 12.8f * sScale); // 10.0
|
||||
mSmallFont.AddAlternate("Segoe UI Symbol", 12.8f * sScale);
|
||||
mSmallFont.AddAlternate("Segoe UI Symbol", 12.8f * sScale).IgnoreError();
|
||||
mSmallFont.AddAlternate("Segoe UI Historic", 12.8f * sScale).IgnoreError();
|
||||
mSmallFont.AddAlternate("Segoe UI Emoji", 12.8f * sScale).IgnoreError();
|
||||
|
||||
mSmallBoldFont.Dispose(true);
|
||||
mSmallBoldFont.Dispose(true);
|
||||
mSmallBoldFont.Load("Segoe UI Bold", 12.8f * sScale); // 10.0
|
||||
mSmallBoldFont.AddAlternate("Segoe UI Symbol", 12.8f * sScale);
|
||||
mSmallBoldFont.AddAlternate("Segoe UI Symbol", 12.8f * sScale).IgnoreError();
|
||||
mSmallBoldFont.AddAlternate("Segoe UI Historic", 12.8f * sScale).IgnoreError();
|
||||
mSmallBoldFont.AddAlternate("Segoe UI Emoji", 12.8f * sScale).IgnoreError();
|
||||
/*mSmallBoldFont.Load(StringAppend!(tempStr, BFApp.sApp.mInstallDir, "fonts/segoeuib.ttf"), 12.8f * sScale); // 10.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue