Error when replacing with a specific font

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Error when replacing with a specific font

Post by hesisiangchi_ »

Image
(Click to Play)

If try to change the font in xyplorer to Noto Sans CJK.otc.ttc(https://github.com/notofonts/noto-cjk), or if try do, an error occurs. It will be displayed as ERROR 6 OVERFLOW and will break the entire font rendering of xyplorer and window font rendering and cannot be recovered without rebooting the system. If do not stop at attempting the change and change the font to Noto Sans CJK, xyplorer will not recover from a reboot and window font rendering will break with it every time xyplorer is run. In this case, need to delete and reinstall xyplorer.

My guess is that the problem is caused by the font in question being too large as a TTC file and xyplorer cannot read it.

The noto sans cjk font is a font that can represent both CJKV languages and even some older languages. I hope this can be resolved if possible.

Additionally, if I accidentally lose my licence during the reinstallation process, will I be able to find it on the xyplorer site? (not lost it)


Written with DeepL translator.

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Error when replacing with a specific font

Post by highend »

Can't say anything about the font itself, not using it...

You wouldn't need to reinstall XY when this happens though.
Just make sure that no XY instance is running and then you open the XYplorer.ini file and replace the whole [Font] section with these entries:

Code: Select all

[Font]
Name=Segoe UI
MilliSize=9000
Bold=0
Italic=0
InterfaceFont=Segoe UI
InterfaceFontMilliSize=9000
MonospaceFont=Courier New
MonospaceFontMilliSize=9750
EditorFont=Courier New
EditorFontMilliSize=9750
ToolbarFont=Segoe UI
ToolbarFontMilliSize=8250
ToolbarFontBtn=Segoe UI
ToolbarFontBtnMilliSize=8250
StatusBarFontMilliSize=9000
StatusBarSection1WidthAdd=0
StatusBarSection2WidthAdd=0
ThumbsFontPercent=100
ApplyFontMain=63
You wouldn't lose your licence because of this change and if you'd lost is, look into your e-mails.
You can't retrieve it on the XY website.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 64838
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error when replacing with a specific font

Post by admin »

hesisiangchi_ wrote: 23 Jul 2024 14:15 If try to change the font in xyplorer to Noto Sans CJK.otc.ttc...
How did you try to do that?

hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Re: Error when replacing with a specific font

Post by hesisiangchi_ »

admin wrote: 23 Jul 2024 15:04
hesisiangchi_ wrote: 23 Jul 2024 14:15 If try to change the font in xyplorer to Noto Sans CJK.otc.ttc...
How did you try to do that?
Click the image in the original text to view the GIF video.
This error occurs if you try to change the font to NOTO SANS CJK in Configuration - Fonts - MAIN CONTENTS, or if you change it.

Add the error message.

Image

admin
Site Admin
Posts: 64838
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error when replacing with a specific font

Post by admin »

Can you provide a download link to the exact font file you want to use?

hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Re: Error when replacing with a specific font

Post by hesisiangchi_ »

highend wrote: 23 Jul 2024 14:44 Can't say anything about the font itself, not using it...

You wouldn't need to reinstall XY when this happens though.
Just make sure that no XY instance is running and then you open the XYplorer.ini file and replace the whole [Font] section with these entries:

Code: Select all

[Font]
Name=Segoe UI
MilliSize=9000
Bold=0
Italic=0
InterfaceFont=Segoe UI
InterfaceFontMilliSize=9000
MonospaceFont=Courier New
MonospaceFontMilliSize=9750
EditorFont=Courier New
EditorFontMilliSize=9750
ToolbarFont=Segoe UI
ToolbarFontMilliSize=8250
ToolbarFontBtn=Segoe UI
ToolbarFontBtnMilliSize=8250
StatusBarFontMilliSize=9000
StatusBarSection1WidthAdd=0
StatusBarSection2WidthAdd=0
ThumbsFontPercent=100
ApplyFontMain=63
You wouldn't lose your licence because of this change and if you'd lost is, look into your e-mails.
You can't retrieve it on the XY website.
Thank you for your response. It looks like xyplorer can be restored without reinstalling.
I'll have to keep my licence email safe.

hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Re: Error when replacing with a specific font

Post by hesisiangchi_ »

admin wrote: 23 Jul 2024 16:22 Can you provide a download link to the exact font file you want to use?
yes.
https://github.com/googlefonts/noto-cjk ... VF.otf.ttc

admin
Site Admin
Posts: 64838
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error when replacing with a specific font

Post by admin »

Thanks.

Currently XY is not compatible with TTC. This may change in the future.

hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Re: Error when replacing with a specific font

Post by hesisiangchi_ »

Thank you for your response. I look forward to it.

hesisiangchi_
Posts: 16
Joined: 18 Oct 2023 18:15

Re: Error when replacing with a specific font

Post by hesisiangchi_ »

Solution: Variable .otf.ttc font files will cause an error, so install them as individual font files or non-variable .ttf.ttc font files.

admin
Site Admin
Posts: 64838
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Error when replacing with a specific font

Post by admin »

Thanks for the info.

In the meantime, I had installed the Noto package you linked to, selected one of the NOTO SANS CJK fonts in XYplorer, and saw the overflow error you saw. What happened next was quite scary: Other applications in Windows were also affected (WTF). For example, all the lists in File Explorer were completely black, just icons, no text. I managed to restart Windows by clicking on captionless ghost buttons, and the thing fixed itself. Pheww.

Post Reply