wxQt build does not honor --enable-privatefonts (Issue #26403)

28 views
Skip to first unread message

AtesComp

unread,
Apr 22, 2026, 9:36:45 PM (2 days ago) Apr 22
to wx-...@googlegroups.com, Subscribed
AtesComp created an issue (wxWidgets/wxWidgets#26403)

Build System Used

I build wxWidgets and/or my application using:

  • CMake
  • configure
  • mingw32-make with makefile.gcc
  • MSBuild (Microsoft Visual Studio solution file)
  • nmake with makefile.vc
  • Xcode

Description

On Linux, when building wxQt, the configure script does not honor --enable-privatefonts.

Platform and version information

  • wxWidgets version you are building: 3.3.3
  • wxWidgets port you are building: wxQt
  • OS and its version: Kubuntu 25.10
  • Compiler being used: gcc
  • Non-default compiler options, if any: none

Start for Possible Fix:

Edit the "configure" script:

  • After the first if test "$wxUSE_PRIVATE_FONTS" = "yes"; then line:
    Change line if test "$wxUSE_GTK" = 1; then
    to if test "$wxUSE_GTK" = 1 -o "$wxUSE_QT" = 1; then

Edit "include/wx/chkconf.h":

  • Change # if !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__WXOSX__)
    to # if !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__WXQT__) && !defined(__WXOSX__)

I've tested a build with the above changes and it complete without error. However, its missing all the Pango hookups present in wxGtk:

  • font.cpp
  • font.h
  • private.h and
  • the private subdirectory code

so the calls are undefined in wxQt.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26403@github.com>

AtesComp

unread,
Apr 23, 2026, 12:03:27 AM (yesterday) Apr 23
to wx-...@googlegroups.com, Subscribed
AtesComp left a comment (wxWidgets/wxWidgets#26403)

The wxQt arch should likely directly use:
QFontDatabase.addApplicationFont(const QString &)
as a call in its to be created wxFontBase::AddPrivateFont(const wxString &) wrapper.

This mitigates replicating the wxGtk code using Pango.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26403/4301651007@github.com>

VZ

unread,
Apr 23, 2026, 8:05:20 AM (22 hours ago) Apr 23
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26403)

Support for this is indeed not implemented in wxQt, please consider making a PR if you know how to implement it.

TIA!


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26403/4304202347@github.com>

AtesComp

unread,
Apr 23, 2026, 12:58:25 PM (18 hours ago) Apr 23
to wx-...@googlegroups.com, Subscribed
AtesComp left a comment (wxWidgets/wxWidgets#26403)

Yes, I'm looking into doing a PR.

I'm also looking into other Font method parity with wxGtk as well. The Enumeration code is giving me a head loop me at the moment. Some wxQt methods in the Font related code look like they are missing. I plan on ordering them similarly so they compare well and documenting differences, etc.


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26403/4306257417@github.com>

Reply all
Reply to author
Forward
0 new messages