Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Error: Couldn't find per display information
This is the point of failure in one of them:
gui_init_tooltip_font()
{
XrmValue from, to;
from.addr = (char *)gui.rsrc_tooltip_font_name;
from.size = strlen(from.addr);
to.addr = (XtPointer)&gui.tooltip_fontset;
to.size = sizeof(XFontSet);
if (XtConvertAndStore(vimShell, XtRString, &from, XtRFontSet, &to) == False)
{
/* Failed. What to do? */
}
}
#endif
(gdb) print from.addr
$2 = 0x8181353 "XtDefaultFontSet"
(gdb) print from.size
$7 = 16
(gdb) print to.addr
$5 = 0x81a2b70 ""
(gdb) print to.size
$6 = 4
I'm using X.org on debian-sid.
Do you have a value for xtDefaultFontSet in your resource database?
--- Casantos
I think it is hard-coded in the Xt library. The program was working
ok without a resource database, before i upgraded some things on my
system.
It is hard-coded but you can replace it on-the-fly either via display
resource
database, application resource file or command line, like in
xedit -xrm '*xtDefaultFontSet: -*-courier-medium-r-normal-*-120-*'
Perhaps the resource database is being corrupted by some other code in
your application or provided by from some library. What happens if you
run the same program on a different system?
I'm starting to get curious about this bug. I never saw such thing
happen
before. Could you please post a compilable standalone code that makes
the same bug raise? That would help to isolate the cause of the
problem.
--- Casantos
Hi,
I got the error in gvim and xvile. I've been trying to modify Xt to
give a more detailed error message of the actual fonts missing.
It will take some effort to get around to making a standalone
app give the error.
Hi,
I got the error in gvim and xvile. I've been trying to modify Xt to
give a more detailed error message of the actual fonts missing.
It will take some effort to get around to making a standalone
app give the error.
gvim -xrm '*xtDefaultFontSet: -*-courier-medium-r-normal-*-120-*'
makes the error go away. Thanks;)
I'll keep looking for what the cause is tho. If i made a standalone
app, it would probably give the error on my system but not yours.
---8<---
> I got the error in gvim and xvile. I've been trying to modify Xt to
> give a more detailed error message of the actual fonts missing.
---8---
The usual value for xtDefaultFontSet is "fixed". Normally it is an
alias
to a font belonging to the "misc" foundry. Look at
/usr/X11R6/lib/X11/fonts/misc/fonts.alias
--- Casantos
After installing openoffice 2.0 which brought in 100 other dependencies,
the original problem has disappeared:(