Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid argument in CreateNativeFont #7868

Closed
cyberduck opened this issue Mar 25, 2014 · 8 comments
Closed

Invalid argument in CreateNativeFont #7868

cyberduck opened this issue Mar 25, 2014 · 8 comments
Assignees
Labels
bug core thirdparty Issue caused by third party
Milestone

Comments

@cyberduck
Copy link
Collaborator

8120721 created the issue

Sometime within the past week or so CyberDuck stopped working and won't launch. I have tried reinstalling, uninstalling and installing fresh, but same issue occurs. I also tried uninstalling and reinstalling Java, not sure what is happening. We are using FileZilla in the meantime but we prefer CyberDuck. Please help!


Attachments

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Cyberduck requires no Java installation.

@cyberduck
Copy link
Collaborator Author

8120721 commented

Anyone have any idea what could be happening here?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Please attach the file cyberduck.log, Queue.plist (if it exists) and the folder Transfers in the application support directory.

@cyberduck
Copy link
Collaborator Author

8120721 commented

The cyberduck.log file was completely blank, there was no queue.plist file or a Transfers folder. I did upload a crash report file though, maybe that will help?

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Inner Exception 2
Type:        System.ArgumentException
Message:     Font 'Courier New' does not support style 'Regular'.
Source:      System.Drawing
Stack Trace: at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(FontFamily family, Single emSize)
   at Ch.Cyberduck.Ui.Winforms.BrowserForm..cctor()

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Looks like an issue with your Windows installation. Apparently your system is missing the Courier New font. Try copying it from another system.

References

@cyberduck
Copy link
Collaborator Author

8120721 commented

That WAS the problem, Windows only had Courier Italic, Bold, and Bold Italic. I copied cour.ttf in C:\Windows/Fonts from another Windows 7 system and installed using the Fonts control panel in Windows and it installed the missing Courier New font (it isn't labeled as regular, but it was what I needed). CyberDuck launched as expected after the font was installed.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:11 karl.fisher]:

That WAS the problem, Windows only had Courier Italic, Bold, and Bold Italic. I copied cour.ttf in C:\Windows/Fonts from another Windows 7 system and installed using the Fonts control panel in Windows and it installed the missing Courier New font (it isn't labeled as regular, but it was what I needed). CyberDuck launched as expected after the font was installed.

Thanks for the confirmation and description of the workaround.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug core thirdparty Issue caused by third party
Projects
None yet
Development

No branches or pull requests

2 participants