You are not logged in.

#1 2026-11-17 20:21:09

tda
Member
Registered: 2020-06-27
Posts: 60

xfoil error - BadName (named color or font does not exist)

I'm getting an error when using the xfoil AUR package. The steps to produce the error are:
1) Run the xfoil shell command:

$ xfoil

2) Run this command in the xfoil prompt

naca 2412

3) Run this command in the xfoil prompt:

gdesign

Which gives me this error:

 XFOIL   c>  gdesign`
 You are working with the buffer airfoil
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  45 (X_OpenFont)
  Serial number of failed request:  26
  Current serial number in output stream:  28

A similar error for xfoil is discussed here: https://bbs.archlinux.org/viewtopic.php?id=257939

A similar error for other programs is discussed here: https://bbs.archlinux.org/viewtopic.php?id=204116

Reading through those discussions led me to believe that installing some font packages may fix the problem, so I installed these:

  • xorg-font-util

  • xorg-fonts-100dpi

  • xorg-fonts-75dpi

  • xorg-fonts-encodings

  • xorg-fonts-misc

  • xorg-fonts-type1

  • xorg-mkfontscale

But that didn't fix the problem.

Note: I left a comment about this issue on the AUR webpage a few days ago, but haven't received a response.

Offline

#2 2026-11-17 21:27:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,958

Re: xfoil error - BadName (named color or font does not exist)

https://bbs.archlinux.org/viewtopic.php … 7#p1919477
Do you have any ttf's and specifically cantarell isntalled?

Also might be related to https://wiki.archlinux.org/title/X_Logi … on#Aliases - did you btw. rehash fonts explicitly after installing the packages?
(And/or restart the X11 server)

Offline

#3 Yesterday 02:19:25

tda
Member
Registered: 2020-06-27
Posts: 60

Re: xfoil error - BadName (named color or font does not exist)

Looks like I do have some ttf and cantarell installed. I'm not 100% sure how to check but here is the output of pacman -Q:

$ pacman -Q | grep ttf
sdl2_ttf 2.24.0-2
sdl3_ttf 3.2.2-3
ttf-dejavu 2.37+18+g9b5d1b2f-8
ttf-liberation 2.1.5-2

$ pacman -Q | grep cantarell
cantarell-fonts 1:0.311-1

And yeah I've been rebooting after installing new font packages.

Offline

#4 Yesterday 09:19:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,958

Re: xfoil error - BadName (named color or font does not exist)

Grepping the sources it creates XC_draft_small using "6x12" - the latter being part of https://archlinux.org/packages/extra/an … onts-misc/
What does your xorg log look like?
Also https://archlinux.org/packages/extra/x8 … -xlsfonts/

Offline

#5 Today 00:40:41

tda
Member
Registered: 2020-06-27
Posts: 60

Re: xfoil error - BadName (named color or font does not exist)

I have no /var/log/Xorg* files, and my ~/.local/share/xorg/Xorg.0.log is three years old, so my understanding is that the xorg log is in journalctl. Here is the output of my journalctl -b. I couldn't find any Xorg entries, but the last three lines are after I ran xfoil and it failed.

https://paste.c-net.org/FrozenBrandon

And I tried installing xorg-xlsfonts (if that's what you are suggesting) but the problem is the same.

Offline

Board footer

Powered by FluxBB