pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35137: Patch to enable Xft support in editors/xemacs-current (a.k.a. add anti-aliased font support)



>Number:         35137
>Category:       pkg
>Synopsis:       Patch to enable Xft support in editors/xemacs-current (a.k.a. 
>add anti-aliased font support)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 26 23:55:00 +0000 2006
>Originator:     David H. Gutteridge
>Release:        
>Organization:
>Environment:
>Description:
I've attached a patch to add Xft support to the xemacs-current package,
enabling it means users can enjoy anti-aliased fonts.  The particular
configure argument I've used comes from documentation here:
http://www.xemacs.org/Releases/21.5.24.html, where they state that
(at that time) --with-xft didn't work.  (It may now, I didn't check.)

Note as of 21.5.27, most of the means of selecting font faces don't
actually work correctly (with Xft support enabled, anyway).  There is
an entry on Xft font customization in the user's guide starting with
that release.  The best way to set fonts is by using the .Xresources
file.  My settings look like this:

XEmacs*Tabs.xftFont: Bitstream Vera Sans Mono-14
XEmacs*menubar*xftFont: Bitstream Vera Sans Mono-14
XEmacs.modeline.attributeFont: Bitstream Vera Sans Mono-14
XEmacs.default.attributeFont: Bitstream Vera Sans Mono-14

--- options.mk~ 2006-09-13 01:31:59.000000000 -0400
+++ options.mk  2006-11-26 18:27:45.000000000 -0500
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.8 2006/09/04 09:20:51 martin Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.xemacs
-PKG_SUPPORTED_OPTIONS= esound ldap xface canna debug
+PKG_SUPPORTED_OPTIONS= esound ldap xface canna debug xft
 
 .include "../../mk/bsd.options.mk"
 
@@ -36,3 +36,7 @@
 CONFIGURE_ARGS+=       --enable-debug=yes --with-debug
 .endif
 
+.if !empty(PKG_OPTIONS:Mxft)
+.  include "../../fonts/Xft2/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-xft=emacs,tabs,menubars,gauges
+.endif




>How-To-Repeat:

>Fix:




Home | Main Index | Thread Index | Old Index