Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: xcalc fails to launch: No font found #23002

Open
b2jammer opened this issue Jan 22, 2025 · 5 comments
Open

[Bug]: xcalc fails to launch: No font found #23002

b2jammer opened this issue Jan 22, 2025 · 5 comments
Labels
bug report Something is not working properly x11 Issue is related to stuff requiring X11 environment or x11-packages

Comments

@b2jammer
Copy link

Problem description

Xcalc fails to launch because it can't find a usable font:

Warning: Cannot convert string "8x13" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found

What steps will reproduce the bug?

From a clean Termux install:

pkg update && pkg upgrade -y
pkg install -y x11-repo
pkg install -y termux-x11-nightly xorg-xcalc xbitmaps
termux-x11 -ac :0 &
sleep 3
export DISPLAY=:0
xcalc

What is the expected behavior?

xcalc launches and is displayed on the termux-x11 X server.

System information

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=27983
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://plug-mirror.rcac.purdue.edu/termux/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages-cf.termux.dev/apt/termux-x11/ x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.44.3
Android version:
14
Kernel build information:
Linux localhost 5.10.198-android12-9-28575149-abS901USQS6EXG8 #1 SMP PREEMPT Tue Jul 23 06:07:24 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S901U
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.x11 versionCode:15
com.termux.styling versionCode:1000
com.termux.api versionCode:51
@b2jammer b2jammer added bug report Something is not working properly untriaged labels Jan 22, 2025
@2096779623
Copy link
Member

2096779623 commented Jan 23, 2025

It will search for fonts in $PREFIX/share/fonts . You only need to install one of the following packages:

xorg-fonts-100dpi
xorg-fonts-75dpi

@2096779623 2096779623 added x11 Issue is related to stuff requiring X11 environment or x11-packages and removed untriaged labels Jan 23, 2025
@b2jammer
Copy link
Author

b2jammer commented Jan 23, 2025

xorg-fonts-75dpi was already installed as a dependency of xorg-xcalc. I ran pkg install xorg-fonts-100dpi then tried xcalc again, but still got the same error.

I've attached the file tree for $PREFIX/share/fonts in case there's something missing:

pkg install -y tree
tree $PREFIX/share/fonts > font_list.txt

font_list.txt

@2096779623
Copy link
Member

xorg-fonts-75dpi was already installed as a dependency of xorg-xcalc. I ran pkg install xorg-fonts-100dpi then tried xcalc again, but still got the same error.

I've attached the file tree for $PREFIX/share/fonts in case there's something missing:

pkg install -y tree
tree $PREFIX/share/fonts > font_list.txt

font_list.txt

Try installing ttf-dejavu .

@b2jammer
Copy link
Author

Try installing ttf-dejavu .

Also automatically installed. Here's what I have installed so far: apt list --installed > packages.txt

packages.txt

@FlipnotypicalRodent32
Copy link

I was able to reproduce it, too.
However, not only is xcalc affected. It appears that xmessage (also from X.org packages) fails to load as well.

Image
This can be seen by trying to click the About button in fluxbox, which tries to execute (fluxbox -v; fluxbox -info | sed 1d) | xmessage -file - -center and will cause a similar but short error to appear on a terminal (I’ve launched fluxbox from a kitty session to make it visible).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly x11 Issue is related to stuff requiring X11 environment or x11-packages
Projects
None yet
Development

No branches or pull requests

3 participants