Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Font Problem with xemacs 21.5.35

34 views
Skip to first unread message

Jody Weissmann

unread,
Aug 29, 2023, 3:43:30 AM8/29/23
to
Hi
I emerged (my OS is gentoo) xemacs-21.5.35 on my machine, and when i opened it, it displayed text in strange proportional font. In the menu "Options|Font" there were no fonts listed.
When i went back to xemacs 21.4.24-r9 everything was back to normal (there are now 5 fonts listed under "Options|Font" again).

Is there something i can do to have normal fonts in xemacs 21.5.35?

Jody

mats....@gmail.com

unread,
Sep 1, 2023, 4:52:11 PM9/1/23
to
Hi Jody,

Thanks for the report. Can it be that you have the xft use flag set, that enables Xft font support? Xft requires font names to be provided in a different way, so you may need to adjust your .Xdefaults or .Xresources accordingly.

If that is the case then this config might help you get an idea of what you need to do.

-------
!! For xft enabled XEmacs
!! "!/usr/bin/xrdb -load .Xresources"

Xcursor.size: 16

XEmacs*Tabs.fcFontName: Sans-6
XEmacs*menubar*fcFontName: Sans-8
XEmacs.modeline.attributeFont: Liberation Mono-12
XEmacs.default.attributeFont: Liberation Mono-12
XEmacs.scrollBarWidth: 12

*popup*fcFontName: Sans-8
*menubar*FontSet: Sans-8
XEmacs*Dialog*Font: Sans-8
-------

The font menu might not be without its problems I'm afraid. For the rational to switch to 21.5 as the new stable version see https://wiki.gentoo.org/wiki/Project:XEmacs/XEmacs_on_Gentoo#XEmacs_21.5_-_The_new_stable_version/

%% Mats

Aidan Kehoe

unread,
Sep 3, 2023, 10:33:50 AM9/3/23
to

Thanks for the report Jody.

Mats, as the Gentoo maintainer (thanks Mats) is likely accurate in his
suggestions. If you do M-x report-xemacs-bug RET , that will generate a buffer
with the details of your build that will better allow us to narrow down what
might be going on. Please post it to the group when you can.

Best,

Aidan

Ar an naoú lá is fiche de mí Lúnasa, scríobh Jody Weissmann:
--
‘As I sat looking up at the Guinness ad, I could never figure out /
How your man stayed up on the surfboard after fourteen pints of stout’
(C. Moore)

Jody Weissmann

unread,
Sep 4, 2023, 2:55:58 AM9/4/23
to
Thank you for your replies.
As i was unable to find out how to attach a file to this message in the google groups mail editor, i send the report in a separate mail from google mail.

@Mats: how do i find out if Xft font support is enabled?

Regards
Jody

Jody Weissmann

unread,
Sep 4, 2023, 2:59:21 AM9/4/23
to
Perhaps also og interest is my ".custom.el" file the contents of which are:
------------------------------------------------------------------------
;; To associate *.h files with c++ mode use the following line
(add-to-list 'auto-mode-alist '("\\.h$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.cu$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.code$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.glsl$" . c++-mode))
(global-set-key 'f2 'compile)

(custom-set-variables
'(c-basic-offset 4)
'(column-number-mode t)
'(font-lock-mode t nil (font-lock))
'(indent-tabs-mode nil)
'(line-number-mode t)
'(truncate-lines t))
(custom-set-faces
'(default ((t (:background "snow2" :size "11pt" :family "Fixed"))) t)
'(bg:snow2 ((t (:foreground "light gray" :background "light gray"))) t))
(mwheel-install)

(define-key global-map "\M->" 'indent-region)
(define-key global-map "\M-s" 'font-lock-mode)

;(custom-set-faces
; '(default ((t (:background "snow2" :size "10pt" :family "Courier"))) t))

(setq load-path
(append (list nil "/home/jody"
"/home/jody/.xemacs"
"~/emacs")
load-path))
----------------------------------------------------------------------
Regards
Jody

Jody Weissmann

unread,
Sep 5, 2023, 2:36:14 AM9/5/23
to
After several failed attempts to send something here from Gmail, i pasted the bug report here:
https://pastebin.com/8dG337Z5

Regards
Jody

Aidan Kehoe

unread,
Sep 5, 2023, 2:23:33 PM9/5/23
to

Ar an ceathrú lá de mí Méan Fómhair, scríobh Jody Weissmann:

> After several failed attempts to send something here from Gmail, i pasted
> the bug report here: https://pastebin.com/8dG337Z5

Great, Jody, thanks. The relevant bits are here:

- Using fontconfig to manage fonts.
- Compiling in support for Xft antialiased fonts (EXPERIMENTAL).

This means you are using Xft and fontconfig, as Mats suggests (the Xft use
flag.) This work was never finished and I plan to remove it, given the same
functionality will be provided by GTK (which is also not finished, but should,
all going well, mean more of the heavy lifting will be done by developers who
are not XEmacs developers).

You will need a selection of core X11 fonts installed, something often
neglected by recent Linux.

Jody Weissmann

unread,
Sep 6, 2023, 5:04:47 AM9/6/23
to
Thank you for your explanations.
I have reinstalled xemacs with "USE=-xft", and now xemacs' fonts look normal (the font menu has the same etries as in the previous version)
Thanks again for your help!

Regards
Jody

Aidan Kehoe

unread,
Sep 6, 2023, 12:38:24 PM9/6/23
to

Ar an séiú lá de mí Méan Fómhair, scríobh Jody Weissmann:

> Thank you for your explanations.
> I have reinstalled xemacs with "USE=-xft", and now xemacs' fonts look normal (the font menu has the same etries as in the previous version)
> Thanks again for your help!

Great, glad it worked!
0 new messages