Skip to content

wxFont::GetFaceName result is truncated #25333

@moi15moi

Description

@moi15moi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions