Possible to load font defined in .rc file?

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
fishnet37222
Experienced Solver
Experienced Solver
Posts: 74
Joined: Sat May 06, 2017 1:40 pm

Possible to load font defined in .rc file?

Post by fishnet37222 »

I'm developing an application using wxWidgets 3.1.6 in Visual Studio 2022 on Windows 10. I have no plans on making the app cross-platform, so Windows-only solutions are fine.

My app uses a custom font that most likely won't be available on the end-user's system, so I'm distributing it with the app. I know I can deploy it alongside the executable and use wxFont::AddPrivateFont() to make it available to the application. However, I'd like to embed the font into the executable using the RC file. Is it possible to load the embedded font and make it available to the application?

Thanks.
Dave F.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Possible to load font defined in .rc file?

Post by doublemax »

Use the source, Luke!
Post Reply