Description of problem:
Yadex aborts (exits with an exit code of 1) when it fails to open a lucida font. The error is seen when attempting to display a window for the doom map being edited (after "e map01" or "e e1m1").
Version-Release number of selected component (if applicable):
Fedora 13 x686 (Probably x86_64 as well. I can check if it's helpful)
Steps to Reproduce:
1. Start Yadex via the command line with "yadex".
2. Attempt to edit a map that is suitable for the game mode used. This can be "e e1m1" for Doom I or "e map01" for Doom II / Freedoom.
Yadex aborts with an error having to do with fonts:
XQueryFont(0x985da80, 0x6400002, 163967, 32, 32
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: 12
Current serial number in output stream: 13
Note that the first line in the above is from "ltrace" whereas the following lines are written to stderr. So, the "X Error of ..." to "Current serial ..." lines can be seen without using any debugging tools.
Immediately after failing with the above error Yadex exits with an exit code of 1 and no core dump.
Instead of displaying the above error Yadex should create a new graphical window with a title such as "Yadex: map01" that contains a 2D overview of the map specified.
The offending line in the Yadex source is line 497 of src/gfx.cc:
// Query the font we'll use for FONTW, FONTH and FONTYOFS.
xqf = XQueryFont (dpy,
default_font ? XGContextFromGC (DefaultGC (dpy, scn)) : font_xfont);
Debugging revealed that Yadex is attempting to load the following font ("font_name" variable):
The above can be found in Yadex's configuration file (/etc/yadex/1.7.0/yadex.cfg):
font = -b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso8859-1
I attempted to fix the problem by installing what would seem to be the relevant font:
> yum list | grep -i lucida
> yum install bitmap-lucida-typewriter-fonts
However, that did not help.
Removing the "font = " line mentioned above from Yadex's congfiguration file (/etc/yadex/1.7.0/yadex.cfg) does fix the problem. It seems that when that line is removed Yadex uses some other default font that does work. And as far as I can tell it looks the same as it has in the past (before this bug).
yadex-1.7.0-17.fc14 has been submitted as an update for Fedora 14.
yadex-1.7.0-17.fc13 has been submitted as an update for Fedora 13.
yadex-1.7.0-17.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update yadex'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/yadex-1.7.0-17.fc14
yadex-1.7.0-17.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
yadex-1.7.0-17.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.