Tk Source Code

View Ticket
Login
Ticket UUID: 3184834
Title: xft detection script should directly link with freetype
Type: Bug Version: None
Submitter: yarda81 Created on: 2011-02-17 13:08:54
Subsystem: 84. Unix Build Assigned To: stwo
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-10-22 17:22:36
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-09-25 08:12:51
Description:
The xft detection script should directly link with the freetype, otherwise the xft is not detected on systems with disabled indirect linking (e.g. Fedora). This bug originates from: https://bugzilla.redhat.com/show_bug.cgi?id=677692
User Comments: serhiy.storchaka added on 2026-09-25 08:12:51:

Fixed in 8.5.10 by [2238347e0c] ([53d9debe53] on trunk): configure checks for XftFontOpen instead of FT_New_Face. Since [ef49212beb] Tk also links with fontconfig. Closing.


teopetuk added on 2011-03-03 14:57:27:
This bug is revealed on Debian sid also (where xft-config script was removed recently, so the Tk library is not linked to libfontconfig and libfreetype anymore). Though the attached patch seems to be incomplete, because libtk uses some fontconfig symbols, so fontconfig should be added to the pkg-config call.

Also, libtk doesn't use freetype directly, so I wouldn't add freetype2 to pkg-config call, but replaced checking for FT_New_Face by something alse (e.g. XftFontOpen).

yarda81 added on 2011-02-17 20:10:40:

File Added - 401950: tk-8.5.9-fix-xft.patch

Attachments: