Description
On Windows, wxFontEnumerator::GetFacenames and wxFont::GetFaceName use GDI, which truncates the face name to 31 characters. It would be nice if we could get the non-truncated face name.
We can retrieve the non-truncated name via GetOutlineTextMetricsW. I'm not sure if we should use otmpFamilyName or otmpFaceName.
A simple fix could be to always call GetMSWFaceName here.
Platform and version information
- wxWidgets version: 3.1.4
- OS: Windows 10.0.26100.3775
Description
On Windows, wxFontEnumerator::GetFacenames and wxFont::GetFaceName use GDI, which truncates the face name to 31 characters. It would be nice if we could get the non-truncated face name.
We can retrieve the non-truncated name via GetOutlineTextMetricsW. I'm not sure if we should use otmpFamilyName or otmpFaceName.
A simple fix could be to always call GetMSWFaceName here.
Platform and version information