Bug 1654517 - lucida not listed in xlsfonts
Summary: lucida not listed in xlsfonts
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bitmap-fonts
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pravin Satpute
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-29 00:00 UTC by Rares Vernica
Modified: 2018-12-20 06:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-20 06:10:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Rares Vernica 2018-11-29 00:00:35 UTC
Description of problem:

After installing `bitmap-lucida-typewriter-fonts-0.3-28.fc28.noarch` and restarting X, Lucida font does not show up in `xlsfonts`.


Version-Release number of selected component (if applicable):

bitmap-lucida-typewriter-fonts-0.3-28.fc28.noarch


How reproducible:

Always


Steps to Reproduce:
1. `dnf install bitmap-lucida-typewriter-fonts`
2. `xlsfonts | grep -i lucida`


Actual results:

`xlsfonts | grep -i lucida` produces no output


Expected results:

`xlsfonts | grep -i lucida` lists the Lucida font


Additional info:

`xlsfonts` works fine otherwise and lists ~580 fonts:

```
xlsfonts | wc -l
584
```

Comment 1 Parag Nemade 2018-11-29 04:45:25 UTC
After installing bitmap-lucida-typewriter-fonts package, I see this on F29
$ xlsfonts | wc -l
1035

$ xlsfonts | grep -i lucida|wc -l
212

Comment 2 Parag Nemade 2018-11-29 06:45:41 UTC
Oh no, I can reproduce this on Fresh f29 installation.

Comment 3 Parag Nemade 2018-11-29 07:03:08 UTC
Can you provide output of below command?
$ rpm -qa | grep xorg-x11-fonts

You can get Lucida font from xorg-x11-fonts-* packages. Install them and then "xlsfonts". No need then to install "bitmap-lucida-typewriter-fonts"

Comment 4 Akira TAGOH 2018-11-29 07:04:26 UTC
Apparently bitmap-fonts has never provided fonts.dir file which is required to provide the meta data for X Core fonts system. and xorg-x11-fonts packages also provides lucida typewriter bitmap fonts too for legacy system.

Comment 5 Rares Vernica 2018-11-29 11:04:07 UTC
```
> rpm -qa | grep xorg-x11-fonts
xorg-x11-fonts-misc-7.5-19.fc28.noarch
```

It seems that Lucida is only provided by `bitmap-lucida-typewriter-fonts` package:

```
> dnf whatprovides \*lucida\*
bitmap-lucida-typewriter-fonts-0.3-28.fc28.noarch : Selected CJK bitmap fonts
                                                  : for Anaconda
Repo        : fedora
Matched from:
Provide    : font(lucidatypewriter)
Provide    : bitmap-lucida-typewriter-fonts = 0.3-28.fc28
Provide    : config(bitmap-lucida-typewriter-fonts) = 0.3-28.fc28
...
texlive...
FlightGear...
```

I can't find a `xorg-x11-fonts` package, but there are many similar ones:

```
> dnf search xorg-x11-fonts
Last metadata expiration check: 0:43:11 ago on Thu 29 Nov 2018 07:59:57 AM -02.
========================= Name Matched: xorg-x11-fonts =========================
xorg-x11-fonts-misc.noarch : misc bitmap fonts for the X Window System
xorg-x11-fonts-75dpi.noarch : A set of 75dpi resolution fonts for the X Window
                            : System
xorg-x11-fonts-Type1.noarch : Type1 fonts provided by the X Window System
xorg-x11-fonts-100dpi.noarch : A set of 100dpi resolution fonts for the X Window
                             : System
xorg-x11-fonts-cyrillic.noarch : Cyrillic fonts for X
xorg-x11-fonts-ethiopic.noarch : Ethiopic fonts
xorg-x11-fonts-ISO8859-1-75dpi.noarch : A set of 75dpi ISO-8859-1 fonts for X
xorg-x11-fonts-ISO8859-2-75dpi.noarch : A set of 75dpi Central European language
                                      : fonts for X
xorg-x11-fonts-ISO8859-9-75dpi.noarch : ISO8859-9-75dpi fonts
xorg-x11-fonts-ISO8859-1-100dpi.noarch : A set of 100dpi ISO-8859-1 fonts for X
xorg-x11-fonts-ISO8859-14-75dpi.noarch : ISO8859-14-75dpi fonts
xorg-x11-fonts-ISO8859-15-75dpi.noarch : ISO8859-15-75dpi fonts
xorg-x11-fonts-ISO8859-2-100dpi.noarch : A set of 100dpi Central European
                                       : language fonts for X
xorg-x11-fonts-ISO8859-9-100dpi.noarch : ISO8859-9-100dpi fonts
xorg-x11-fonts-ISO8859-14-100dpi.noarch : ISO8859-14-100dpi fonts
xorg-x11-fonts-ISO8859-15-100dpi.noarch : ISO8859-15-100dpi fonts
```

Comment 6 Parag Nemade 2018-11-29 12:41:53 UTC
Please note bitmap-fonts package has not changed majorly since many years. This package got updated only when mass-rebuild happened or spec file got updated as per latest packaging guidelines. (Nice to see someone reported bug against bitmap-fonts package :) This package got only 7 bugs reported including this since last 18 years!!)

I think you are right Lucida is only coming from bitmap-lucida-typewriter-fonts package. Checking more on it...

Comment 7 Parag Nemade 2018-11-29 12:50:48 UTC
So I installed bitmap-lucida-typewriter-fonts and tried "xlsfonts|grep lucida" no output

but
$ sudo dnf install xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch 
Last metadata expiration check: 0:43:19 ago on Thu 29 Nov 2018 05:34:22 PM IST.
Dependencies resolved.
===============================================================================
 Package                            Arch      Version          Repository
                                                                          Size
===============================================================================
Installing:
 xorg-x11-fonts-ISO8859-1-100dpi    noarch    7.5-20.fc29      fedora    1.1 M

Transaction Summary
===============================================================================
Install  1 Package

Total download size: 1.1 M
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.no 330 kB/s | 1.1 MB     00:03    
-------------------------------------------------------------------------------
Total                                          196 kB/s | 1.1 MB     00:05     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                       1/1 
  Installing       : xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch    1/1 
  Running scriptlet: xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch    1/1 
  Verifying        : xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch    1/1 

Installed:
  xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch                           

Complete!

$ xlsfonts |grep lucida|wc
    106     106    5414

So, Can you try installing any of below package and check output of "xlsfonts|grep lucida" ?
xorg-x11-fonts-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-75dpi-7.5-20.fc29.noarch
xorg-x11-fonts-cyrillic-7.5-20.fc29.noarch
xorg-x11-fonts-ethiopic-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-1-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-14-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-14-75dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-15-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-15-75dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-1-75dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-2-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-2-75dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-9-100dpi-7.5-20.fc29.noarch
xorg-x11-fonts-ISO8859-9-75dpi-7.5-20.fc29.noarch

Comment 8 Rares Vernica 2018-11-29 14:07:22 UTC
Interesting. I did:

```
> dnf install xorg-x11-fonts-100dpi
...
Downloading Packages:
xorg-x11-fonts-100dpi-7.5-19.fc28.noarch.rpm...
```

And `xlsfonts` outputs Lucida:

```
> xlsfonts | grep -i lucida | wc -l
70
```

So, it looks like the `xorg-x11-fonts-100dpi` package does provide the Lucida font but `dnf whatprovides \*lucida\*` does *not* list this package as one of the provides.

Comment 9 Nicolas Mailhot 2018-11-29 15:07:44 UTC
xlsfonts is the old X11 core fonts subsystem, it has been deprecated for ~15 years now, anything still using it is on death row and is expected to break without warning.

No fonts except those provided by legacy xorg font packages are supposed to be exposed in the X11 core fonts subsystem nowadays. (The X11 core fonts system has been deprecated by its maintainers because it broke on any non trivial modern font, and they gave up on trying to make it work).

That's why xorg*fonts* will add to xlsfonts and any normal clean Fedora *-fonts package won’t.

Conversely, things that feed the X11 core fonts subsystem should not advertise any particular font support because X11 core fonts are unusable in pretty much all current apps.

Comment 10 Rares Vernica 2018-11-29 17:15:48 UTC
I see, but Emacs and XTerm use font specifications from `xlsfonts`, like:

```
> cat .Xdefaults
Emacs.font:					-b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso10646-1
XTerm*font:			-b&h-lucidatypewriter-medium-r-normal-sans-12-120-75-75-m-70-iso10646-1
...
```

Comment 11 Fedora fonts special interest group 2018-11-29 17:25:33 UTC
xterm has the same status as the core fonts subsystem – deprecated and waiting for death. Its maintainers didn't see the point of modernizing it given the large number of unicode-ready terminal alternatives.

emacs only uses core fonts as a fallback, it has been able to use xft instead for quite a long time (even though xft is also deprecated, though it has a little more life left than the X11 core fonts subsystem)

So, you don't need xlsfonts unless you don't want to change circa 2000 habits. And if you live in the past, don't be surprised present tech disagrees.

Comment 12 Akira TAGOH 2018-11-30 04:19:11 UTC
The modern fonts can be used in even both apps. For Emacs, you can define own fontset with (new-fontset ...) and (set-fontset-font ...) functions. google it. you may see some examples.

For xterm, you can specify a font with -fa option like -fa "DejaVu Sans Mono:size=10" or in X resources:

xterm*faceName: DejaVu Sans Mono:size=10

Comment 13 Parag Nemade 2018-12-20 06:10:30 UTC
Please reopen if you think there is some bug that need to be fixed.


Note You need to log in before you can comment on or make changes to this bug.