Now it complains about not having the right font installed. In the error log, this is what I get:
Timer : 10/21/2024 5:40:08 PM
出现应用程序未处理的异常:10/21/2024 5:40:08 PM
Application UnhandledException:The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound];
堆栈信息: at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <5de0f98340324dfca7ecfcc9792baca0>:0
at System.Drawing.FontFamily..ctor (System.String name, System.Drawing.Text.FontCollection fontCollection) [0x0002f] in <5de0f98340324dfca7ecfcc9792baca0>:0
at System.Drawing.FontFamily..ctor (System.String name) [0x00000] in <5de0f98340324dfca7ecfcc9792baca0>:0
at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(string)
at _8BitDoFirmwareUpdater.Others.Tools.getEnglishFontFaily () [0x00000] in <c5a3d2d06d604f76bbf796c001b5db92>:0
at _8BitDoFirmwareUpdater.Others.Tools.getEnglishFont (System.Int32 fontSize) [0x00000] in <c5a3d2d06d604f76bbf796c001b5db92>:0
at _8BitDoFirmwareUpdater.View.HomeView.initGamepadAndRRtispLog () [0x0004b] in <c5a3d2d06d604f76bbf796c001b5db92>:0
at _8BitDoFirmwareUpdater.View.HomeView..ctor () [0x00060] in <c5a3d2d06d604f76bbf796c001b5db92>:0
at (wrapper remoting-invoke-with-check) _8BitDoFirmwareUpdater.View.HomeView..ctor()
at _8BitDoFirmwareUpdater.View.HomeController..ctor () [0x0000b] in <c5a3d2d06d604f76bbf796c001b5db92>:0
at (wrapper remoting-invoke-with-check) _8BitDoFirmwareUpdater.View.HomeController..ctor()
at _8BitDoFirmwareUpdater.Program.Main () [0x00048] in <c5a3d2d06d604f76bbf796c001b5db92>:0
I know 8BitDo is a Chinese company - is there some Chinese Windows font I'm missing here? How do I tell which font is missing? How do I get it in Wine?
Press tab to select OK and press Enter when Microsoft’s End user agreement appears.
Click Yes to accept Microsoft’s agreement
then update the font cache with
In one of my previous attempts to get this working, I think I had installed the Microsoft fonts. But I hadn't updated the font cache. However, it's still giving me the same error: [ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
Thank you. I installed the fonts-noto-cjk, then winetricks, had to follow this answer to get winetricks working, and then ran the winetricks commands you sent. It still gave me the errors of not being able to find the font. I then tried copying the fonts as suggested in the thread you sent, but when I ran that command, it sent a bunch of errors like this:
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/fonts-gujr-extra/Rekha.ttfc/windows/Fonts/': No such file or directory
It looks there's a difference. Do you see in what you just included, that it's ~/.wine/drive_c? In your error output, the path is missing the "_c" and gets stranger after that. I use Bottles myself, rather than WINE directly, so I have no similar structure to check on my own computer, but if it's a WINE prefix, I think that should be drive_c, and everything under it should mimic a Windows folder hierarchy, yet you have /usr/share/fonts/truetype etc.
...oh, I see. Look at your error. You somehow have a Linux path pasted in the middle of the Windows directory structure! From your error message:
/usr/share/fonts/truetype/fonts-gujr-extra/Rekha.ttfc See that ttfc at the end? That c is the c that's missing from /drive_c/, and the rest that I copied there is a specific font filename that you seem to have somehow inserted in your command!
Try copying and running the command the way you pasted it to me here. It looks like you had it right there, but somehow got the extra stuff in it when you ran it on your system. To be completely clear, this should be good:
But it looks like what you actually RAN was this: find /usr/share -type f -name *.ttf -print0 | xargs -0 -I _ cp _ ~/.wine/drive/usr/share/fonts/truetype/fonts-gujr-extra/Rekha.ttfc/windows/Fonts/
I have no idea where the underscore in /drive_c/ went, or where /usr/share/fonts/truetype/fonts-gujr-extra/Rekha.ttfc/windows/Fonts/ came from, but I think that's what broke your command.
Thanks for your reply. Yeah, I don't know where the underscore went either. When I run that command, it doesn't just error out with the "Rekha.ttfc" error I mentioned before, but rather it appears to error out with all the fonts. I only included one before in my previous comment because there's hundreds of them, but here's a bit longer example of my terminal window output with the command I enter and the errors:
fox@fox-HP-ProBook-640-G4:~$ find /usr/share -type f -name *.ttf -print0 | xargs -0 -I _ cp _ ~/.wine/drive_c/windows/Fonts/
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/padauk/Padauk-Bold.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/padauk/PadaukBook-Regular.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/padauk/PadaukBook-Bold.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/padauk/Padauk-Regular.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-Black.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-ExtraLightItalic.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-ExtraBoldItalic.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-SemiBoldItalic.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-ExtraLight.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-SemiBold.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-BlackItalic.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-Light.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-ExtraBold.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-LightItalic.ttfc/windows/Fonts/': No such file or directory
cp: cannot create regular file '/home/fox/.wine/drive/usr/share/fonts/truetype/inter-zorin-os/Inter-Thin.ttfc/windows/Fonts/': No such file or directory
It literally just goes on and on from there. Could the original command be wrong in some way? Maybe the person who wrote it on the other forum page made a mistake when copying it to the forums? Or maybe the missing underscore has to do with the two underscores around the "cp" command? Any thoughts?
I think there is an error here. Most fonts are TrueType Fonts (.ttf). Collections of TrueType fonts are labelled .ttc. There is no valid file extension of .ttfc!
Source: Brave A.I.:
TrueType
file format
Based on the provided search results, .ttfc is not explicitly mentioned. However, the search results do discuss TrueType Font Files (TTF) and their characteristics.
According to the search results, a .ttf extension indicates a regular TrueType font or an OpenType font with TrueType outlines. This suggests that .ttf is a file extension, not a suffix like .ttfc.
It’s possible that .ttfc might be a typo or a non-standard suffix. Without further information or context, it’s difficult to provide a definitive answer. If you can provide more details or clarify the context in which you encountered .ttfc, I may be able to help you better.
In general, TrueType Font Files (TTF) contain various tables and data structures, including:
cmap (character to glyph mapping)
loca (index to location)
Table directory (containing checksum, offset, and length information)
Offset SubTable (containing scaler type information)
Data Types (including long date-time format)
These tables and structures help define the font’s characteristics, such as character encoding, glyph shapes, and rendering instructions. However, .ttfc is not a recognized or documented suffix in the TrueType Font File Format specification.
Yes, that's basically the conclusion that @Locklear93 came to too. It appears the extra "c" at the end is somehow being moved from the "drive_c" portion of the command. I don't understand the original command enough to know why this is happening though.
The original command is multipart. The first thing it's doing is finding all files in /usr/share (and subdirectories) that end with .ttf. The print0 part is basically a formatting option to make sure the second part of the command can correctly handle filenames if they have spaces, as I understand it. Once it finds all of those files, it passes the output to xargs, which is used to build a new command line. I've never used xargs, so I won't comment on what its options are doing, but the command line it's building, in a nutshell, is to copy all files ending in .ttf from /usr/share and subdirectories into a WINE prefix in your home directory.
If you want to quit messing with the command line (it should have been a time saver, but it's been days now...) you could accomplish the same thing manually by opening Nautilus (aka "Files") and navigating to /home/fox/.wine/drive_c/windows/Fonts. Keep that window open and open another one. Go to /usr/share. You'll need to manually find all .ttf files from this directory and lower, and copy them into the first window. If you do this, make sure you're not copying any directories. All the files need to be copied to the WINE prefix folder I had you open, but the original command didn't preserve directories, so they should all go in there loose. To spare you some hunting, this command will make a list: find /usr/share/ -type f -name *.ttf
That'll likely be a lot of files and look like a lot of work. (That's why the terminal command was the better way to go until it didn't pan out.) Unfortunately, I'm still a beginner myself, and I don't know how to use xargs to to turn that find command into a useful copy command. That was really all your original command was trying to do though: make a list of all .ttf files, and input that list into a copy command.