diff --git a/samples/Info.plist.in b/samples/Info.plist.in
new file mode 100644
index 0000000000..69e9c73bd1
--- /dev/null
+++ b/samples/Info.plist.in
@@ -0,0 +1,36 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ English
+ CFBundleExecutable
+ ${MACOSX_BUNDLE_EXECUTABLE_NAME}
+ CFBundleGetInfoString
+ ${MACOSX_BUNDLE_INFO_STRING}
+ CFBundleIconFile
+ ${MACOSX_BUNDLE_ICON_FILE}
+ CFBundleIdentifier
+ ${MACOSX_BUNDLE_GUI_IDENTIFIER}
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLongVersionString
+ ${MACOSX_BUNDLE_LONG_VERSION_STRING}
+ CFBundleName
+ ${MACOSX_BUNDLE_BUNDLE_NAME}
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ ${MACOSX_BUNDLE_SHORT_VERSION_STRING}
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ ${MACOSX_BUNDLE_BUNDLE_VERSION}
+ CSResourcesFileMapped
+
+ NSHumanReadableCopyright
+ ${MACOSX_BUNDLE_COPYRIGHT}
+ NSPrincipalClass
+ wxNSApplication
+
+
diff --git a/samples/docview/Info.plist b/samples/docview/Info.plist
new file mode 100644
index 0000000000..fb5948e04d
--- /dev/null
+++ b/samples/docview/Info.plist
@@ -0,0 +1,87 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ English
+ CFBundleDocumentTypes
+
+
+ CFBundleTypeExtensions
+
+ drw
+
+ CFBundleTypeIconFile
+ chart.icns
+ CFBundleTypeName
+ DocView Drawing
+ CFBundleTypeOSTypes
+
+ WXMB
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleTypeExtensions
+
+ txt
+ text
+
+ CFBundleTypeIconFile
+ notepad.icns
+ CFBundleTypeName
+ DocView Text
+ CFBundleTypeOSTypes
+
+ TEXT
+
+ CFBundleTypeRole
+ Editor
+ LSTypeIsPackage
+
+ NSPersistentStoreTypeKey
+ Binary
+
+
+ CFBundleExecutable
+ $(PRODUCT_NAME)
+ CFBundleGetInfoString
+ $(PRODUCT_NAME) version 3.1.6, (c) 2005-2021 wxWidgets
+ CFBundleIconFile
+ doc
+ CFBundleIdentifier
+ org.wxwidgets.samples.$(PRODUCT_NAME)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLocalizations
+
+ de
+ en
+ fr
+ it
+
+ CFBundleLongVersionString
+ 3.1.6, (c) 2005-2021 wxWidgets
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 3.1.6
+ CFBundleSignature
+ WXMA
+ CFBundleVersion
+ 3.1.6
+ CSResourcesFileMapped
+
+ LSRequiresCarbon
+
+ NSHumanReadableCopyright
+ Copyright 2005-2021 wxWidgets
+
+
diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp
index 2396011d63..6102d0a815 100644
--- a/src/osx/carbon/font.cpp
+++ b/src/osx/carbon/font.cpp
@@ -1265,8 +1265,8 @@ bool wxNativeFontInfo::SetPostScriptName(const wxString& postScriptName)
void wxNativeFontInfo::SetFamily(wxFontFamily family)
{
Free();
- m_familyName.clear();
m_family = family;
+ m_familyName = FamilyToFaceName(family);
}
void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)