Does AddPrivateFont from wxFont support OTF? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MJaoune
Earned a small fee
Earned a small fee
Posts: 16
Joined: Tue Aug 20, 2019 7:37 pm

Does AddPrivateFont from wxFont support OTF?

Post by MJaoune » Wed Aug 28, 2019 6:26 pm

Hi,

Does the new function "static bool wxFont::AddPrivateFont()" produced in 3.1.1 support OpenType Fonts (OTF) or just TTF?

User avatar
doublemax
Moderator
Moderator
Posts: 13985
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Does AddPrivateFont from wxFont support OTF?

Post by doublemax » Wed Aug 28, 2019 6:39 pm

MJaoune wrote:
Wed Aug 28, 2019 6:26 pm
Does the new function "static bool wxFont::AddPrivateFont()" produced in 3.1.1 support OpenType Fonts (OTF) or just TTF?
Whatever the underlying OS supports. The file is just passed through, wxWidgets will not do anything with it.

So, at least under Windows it should support OTF, i don't know about other platforms.
https://docs.microsoft.com/en-us/window ... esourceexa
Use the source, Luke!

Post Reply