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]: Font type issue on OnePlus phones #71

Open
Coffee-Viking opened this issue Aug 10, 2024 · 1 comment
Open

[Bug]: Font type issue on OnePlus phones #71

Coffee-Viking opened this issue Aug 10, 2024 · 1 comment

Comments

@Coffee-Viking
Copy link

Problem description

Apparently the default font used by Termux is not available on OnePlus devices (tested on the 7 pro and 10 pro), and the app defaults to something with display errors.

Nothing deal breaking, but an eyesore that makes me not want to use it.

Screenshot_2024-08-10-16-39-11-63_84d3000e3f4017145260f7618db1d683

What steps will reproduce the bug?

Use Termux on a OnePlus device

What is the expected behavior?

Stable font.

System information

Termux Variables:
TERMUX_EXEC__PROC_SELF_EXE=/data/data/com.termux/files/usr/bin/termux-info
TERMUX_VERSION=googleplay.2024.07.07
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.net stable main
Updatable packages:
apt/stable 2.9.7 aarch64 [upgradable from: 2.9.4-2]
ca-certificates/stable 2024.07.02 all [upgradable from: 2024.03.11-2]
command-not-found/stable 2.4.0-36 aarch64 [upgradable from: 2.4.0-30]
curl/stable 8.9.1 aarch64 [upgradable from: 8.8.0]
debianutils/stable 5.20 aarch64 [upgradable from: 5.19]
less/stable 661 aarch64 [upgradable from: 633-1]
libc++/stable 27 aarch64 [upgradable from: 26d]
libcurl/stable 8.9.1 aarch64 [upgradable from: 8.8.0]
ncurses/stable 6.5.20240519-7 aarch64 [upgradable from: 6.5.20240519-6]
openssl/stable 3.3.1 aarch64 [upgradable from: 3.2.1-1]
readline/stable 8.2.13 aarch64 [upgradable from: 8.2.10]
termux-exec/stable 1.4 aarch64 [upgradable from: 1.3]
termux-tools version:
3.0.7
Android version:
12
Kernel build information:
Linux localhost 5.10.66-android12-9-gc634142fd3d8-ab8094802 #1 SMP PREEMPT Wed Jan 19 19:31:18 UTC 2022 aarch64 Android
Device manufacturer:
OnePlus
Device model:
NE2211
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
@nhockey
Copy link

nhockey commented Aug 13, 2024

You can make a .termux/ folder in your home directory and put a true type font in there which will become the new terminal font. The file just has to be called "font.ttf".

In my case I use Fira Code so I downloaded the font from https://github.com/tonsky/FiraCode into my downloads folder under my home directory, extracted it, then you can either copy the TTF that you want to .termux/font.ttf or use a link (ln).

I personally use symbolic links because that allows me to quickly change fonts in order to try out new ones, but it is completely unnecessary if you're not constantly playing around with ligatures and different nerd fonts.

As a bonus tip, you can also put in a config file in that same .termux/ folder with customizations:
https://wiki.termux.com/wiki/Terminal_Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants