Discussion:
problem opening/loading an X11 font.
L. A. Walsh
2021-05-21 20:20:24 UTC
Permalink
Thought maybe someone here might have a clue...this just seems
weird to me, like "it shouldn't be happening".

FWIW, running 'X-server' from cygwin distribution, on Win7SP1x64
but the xls prog, and xterm prog and xdefaults file are
on a SuSE linux (x64) server.

Most fonts exist on both machines, except for maybe newer ones
installed since my last cross-machine sync. FWIW, been running
cyg-X on win + linux clients for > 20 years so most fonts dup'd+sync'd
way long ago.

I looked at the x-chatter w/wireshark, and sure seems to be asking
for what I think it is asking using OpenFont (my X connection tween my
winbox+linbox isn't encrypted).



-------- Original Message --------
Subject: problem opening/loading an X11 font.
Date: Fri, 21 May 2021 00:17:58 -0700
From: L A Walsh <***@tlinx.org>
To: ***@cygwin.com <***@cygwin.com>



If I use 'xlsfonts' to list my X server fonts, one of them
fonts I am trying to use is "lucidatypewriter-medium".

display xlsfonts and filtering on the family, I get tons:


-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso8859-1
...
-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso8859-1
...
-b&h-lucidatypewriter-medium-r-normal-sans-14-100-100-100-m-80-iso10646-1
160 matches of various sizes and encodings....

So in my "~/.Xdefaults", I have tried:

!XTerm*font: -*-lucidatypewriter-medium-*-*-*-*-*-*-*-*-*-*-*-
XTerm*font: lucidatypewriter
!XTerm*font:
-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1

full and sparse specification, but no matter, when I run xterm, I get:

xterm: cannot load font
'-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1'
xterm: cannot load font '-*-lucidatypewriter-medium-*-*-*-11-*-*-*-*-*-*-*-'
xterm: cannot load font '-*-lucidatypewriter-medium-*-*-*-*-*-*-*-*-*-*-*-'
xterm: cannot load font 'lucidatypewriter-medium'
xterm: cannot load font 'lucidatypewriter-medium'

etc.

How is this possible? xlsfonts displays the font(s), but
an x-prog like xterm can't load any form

Have tried neutering locale as well to no effect.

(LC_ALL=C or POSIX)...

Can't figure out why the font is listed but not loadable??!

Ideas?

Thanks!
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

_______________________________________________
***@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
IL Ka
2021-05-21 21:18:39 UTC
Permalink
Post by L. A. Walsh
xterm: cannot load font
'-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1'
Hi.
What does ``xfontsel`` show?
Have you tried to provide a font explicitly with ``xterm -fn``?

You can also try xft/fontconfig fonts (they are rendered on the client, not
server) and much smoother in most cases.
See "-fa" option in xterm and "fc-match" tool

By the way: there is a free X11 server for Windows called "xming", you do
not need cygwin
L. A. Walsh
2021-05-22 03:37:17 UTC
Permalink
Post by IL Ka
Hi.
What does ``xfontsel`` show?
it shows that it doesn't allow keyboard input in order to specify a family
(like lucida...).
The GUI list of displays off screen, so can't find family I was looking for.
Post by IL Ka
Have you tried to provide a font explicitly with ``xterm -fn``?
LW> LC_ALL=POSIX xterm -fn 'lucidatypewriter'
Post by IL Ka
LC_ALL=C xterm -fn
'-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1'
Warning: Cannot convert string
"-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1"
to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Missing charset ISO8859-1 for fallback fontset
Warning: Unable to load any usable fontset
xterm: cannot load font
"-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1"
Post by IL Ka
You can also try xft/fontconfig fonts.
---
I'm trying to get a 3rd party app to work. This started with noticing that
a 3rd party app that wasn't putting up an expected window.
Post by IL Ka
By the way: there is a free X11 server for Windows called "xming", you do
not need cygwin
---
Ya, I purchased xming from Colin H. several years or more back.
I had probs w/it and tried to get support from Colin. He saw I had
cygwin on my machine and said he would not support me w/cygwin on my
machine.

Given that I use linux, a similar interface on Win is a large productivity
enhancer, so I gave up on the use of Xming.
Post by IL Ka
------------------------------------------------------------------------
_______________________________________________
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
_______________________________________________
***@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
IL Ka
2021-05-22 18:43:34 UTC
Permalink
Post by L. A. Walsh
'-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1'
Warning: Cannot convert string
"-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1"
to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Missing charset ISO8859-1 for fallback fontset
Warning: Unable to load any usable fontset
xterm: cannot load font
"-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1"
Lets try not to provide particular charset and DPI

$ xterm -fn '-*-lucidatypewriter-*-*-*-*-*-*-*-*-*-*-*-*'

Does it work?

Try to reinstall font packages on your cygwin:

https://cygwin.com/packages/summary/xorg-x11-fonts-src.html
Loading...