Description of problem: Font not visible/useable on a fresh installation of Fedora 31. It also affects Fedora 31 after the upgrade from Fedora 30. Version-Release number of selected component (if applicable): ucs-miscfixed-fonts-0.3-20.fc31.noarch How reproducible: Install the package and try to select the font in e.g. gnome-terminal. Gnome-font-viewer also doesn't recognize it. Steps to Reproduce: 1. Install the package in Fedora 31 2. try to select the font in e.g. gnome-terminal 3. or after an upgrade from Fedora 30, with this font used as the preferred Terminal font in gnome-terminal, there are only hieroglyphics left. Actual results: It is not listed in gnome-terminal and in consequence not useable. Expected results: Useable and listed font. It's working on Fedora 30. Additional info:
Please try to use fonttosfnt to convert the font from the following repo: https://copr.fedorainfracloud.org/coprs/pwu/fonttosfnt/ $fonttosfnt -b -g 2 -m 2 -o ucs-miscfixed.otb [1-9]*[0-9].bdf $fonttosfnt -b -g 2 -m 2 -o ucs-miscfixed-bold.otb *B.bdf $fonttosfnt -b -g 2 -m 2 -o ucs-miscfixed-oblique.otb *O.bdf Install the generated fonts to ~/.local/share/fonts, then the "Fixed" font will appear in gedit, but still not appear in gnome-terminal.
Thanks. That works for gedit, but the interesting usecase for me is gnome-terminal.
Please try to use "-m 1", it seems works for gnome-terminal now.
Thank you. It works. It is not the same quality like the font was before, but better than nothing. What would happen with the package? If someone will install it, it shouldn't work as expected (only with this workaround). What do you think?
This is because pango removed bitmap font support when switch to harfbuzz, gnome-terminal doesn't support the bitmap font in Fedora 31. Maybe in future we can help to convert the bitmap fonts to OpenType bitmap only font in the package.
I found this one: https://gitlab.gnome.org/GNOME/pango/issues/386 where you wrote something about it. Today morning i read this article (yes, it was phoronix ;-)) https://www.phoronix.com/scan.php?page=news_item&px=Pango-No-More-Bitmap-Fonts I think it is worth to mention it as a common bug for F31, because if some people upgrade to F31 and use such fonts they have a really bad experience and i think they don't know why this happened. I think it is not fixable without deeper research in the web (or with your help, thanks a lot again). Could you please inform and explain e.g. Adam Williamson that he wrote this down here? https://fedoraproject.org/wiki/Common_F31_bugs
Okay, I wrote one draft paragraph for Common F31 bugs. Please review it, thanks! Pango switch to use harfbuzz and drop bitmap font support in GNOME applications After pango upgrade to 1.44 and switch to use harfbuzz, pango drops the support of bitmap font in GNOME applications like gnome-terminal. There is one work around is to use the updated fonttosfnt tool in Fedora copr, and convert the bitmap font to OpenType bitmap only font for gnome-terminal. URL: https://copr.fedorainfracloud.org/coprs/pwu/fonttosfnt/
Where is the difference between your version (xorg-x11-font-utils-1:7.5-43.fc31.x86_64) and the version which comes ootb with F31 (xorg-x11-font-utils-1:7.5-42.fc31.x86_64)? Both work for me with the same results, for my old eyes ;-) . Does it make sense to write the commands for the workaround into the wiki with the hint of installed ucs-miscfixed-font? $fonttosfnt -b -g 2 -m 1 -o ucs-miscfixed.otb /usr/share/fonts/ucs-miscfixed/[1-9]*[0-9].bdf $fonttosfnt -b -g 2 -m 1 -o ucs-miscfixed-bold.otb /usr/share/fonts/ucs-miscfixed/*B.bdf $fonttosfnt -b -g 2 -m 1 -o ucs-miscfixed-oblique.otb /usr/share/fonts/ucs-miscfixed/*O.bdf Install the generated fonts to ~/.local/share/fonts, then the "Fixed" font will appear in gedit and in gnome-terminal. Thanks a lot for your help with this bug.
I just created one wiki page for the font conversion. URL: https://fedoraproject.org/wiki/BitmapFontConversion
Great. Thank you. I guess a link from F31 CommonBugs to the wiki should point users in the right direction. Could you or perhaps adamw put the link to the wiki page into the CommonBugs page? Then i'll close this bug if you agree.
I tried the workaround with fonttosfnt for xfce4-terminal and observed the following issues: 1. An extra pixel between the characters 2. bold/italic/bold+italic don't work Seems like I have to switch to Source Code Pro Regular 8 pt, though it doesn't come close to miscfixed 6x13's perfection.
https://fedoraproject.org/wiki/Common_F31_bugs#Pango_no_longer_supports_bitmap_format_fonts
Thanks a lot at all. The workarounds are working for me with gnome-desktop.
Reopening. We do not want to force everyone to use workarounds with copr repos, we need fix in Fedora.
(In reply to Jan Pazdziora from comment #14) > Reopening. We do not want to force everyone to use workarounds with copr > repos, we need fix in Fedora. Yes, you are completly right. Thank you. I did not use the copr repo, i used the program which comes with F31. I tried with both but at least i took the F31 program.
right, but a proper fix would involve the font as packaged working with current pango. it should not require the user to convert the font themselves.
(In reply to Adam Williamson from comment #16) > right, but a proper fix would involve the font as packaged working with > current pango. it should not require the user to convert the font themselves. Adam, you could say a proper fix for X11 would have been to find a way do design an X12 without all this Wayland crap that requires deep application and user habit changes. “proper” zero cost fixes do not exist in real life. Here, moving text layouting forward required to either give up on legacy font formats, or do a lot of dev to add support for them within modern text layouting libs. And, this dev effort was never started. It’s not unreasonable for text-processing apps to consider that, after almost two decades waiting for people that care about legacy fonts to do something for them dev side, those people effectively chose the conversion path. https://gitlab.gnome.org/GNOME/pango/issues/386#note_568255 This year it was the turn of pango to made the switch. Three year ago it was Libre Office. The dominoes will continue to fall till only legacy apps stuck in another tech era continue to support pre-OpenType font formats.
The right fix is really to fork Pango. Using HarfBuzz does not require using its font loader and dumping FreeType for it.
Nicolas: turn off the megaphone, dude. I'm just saying that this bug is not 'fixed' until a change is made that makes the font work with pango. "Convert the font to opentype" would be a perfectly good resolution. "Tell people to convert it themselves" isn't.
A little update to this bug: For this font "ucs-miscfixed-fonts" i used this build https://bodhi.fedoraproject.org/updates/FEDORA-2020-d6b7315fc4 but the results are the same as with fonttosfnt that comes in F31 stable. It works in general but the spacing is not optimal as it was before F31. And the usage of "-m 1" is necessary if you want to use this font in gnome-terminal.
If we convert the bitmap fonts without combining the fonts together, like the following shell script: for i in `ls *.bdf`; do fonttosfnt -b -c -g 2 -m 2 -o ${i%%.bdf}.otb $i; done The fonts is recognized as "fixed width", and will show in the gnome-terminal setup dialog. After combining several bitmap fonts into one OpenType font face, the fixed width is changed.
Currently we recommend to use fonttosfnt with the following options: $ fonttosfnt -b -c -g 2 -m 2
It seems that when combining multiple bitmap fonts of different sizes, the glyph coverage of different sizes is different. When freetype compute the width of each glyph, if the glyph is missing at the requested font size, some glyph from different font size is scaled and returned; The scaled glyph width is different and will make fontconfig consider this font is not monospaced.
Please try ucs-miscfixed-opentype-fonts in Fedora 32. We provide OpenType Bitmap fonts in ucs-miscfixed-opentype-fonts now. Koji URL: https://koji.fedoraproject.org/koji/buildinfo?buildID=1458411
The provided version in ucs-miscfixed-opentype-fonts still has the problem with the extra pixel of space between each letter. And can you please also provide opentype versions of the other X11 bitmap fonts, plus opentype versions of the X11 Type1 fonts (which also stopped working) such as Bitstream Charter?
Is it worth to close this bug now? There are opentype packages available: # dnf search ucs-misc Letzte Prüfung auf abgelaufene Metadaten: vor 1:14:45 am Sa 06 Jun 2020 07:48:56 CEST. ============================================================ Name Treffer: ucs-misc ============================================================= ucs-miscfixed-fonts.noarch : Selected set of bitmap fonts ucs-miscfixed-opentype-fonts.noarch : Selected set of bitmap fonts (opentype version) In my gnome-terminal all seems working as expected.
(In reply to Markus Teuber from comment #26) > Is it worth to close this bug now? I don't think so, see my comment #25 just above your comment.
Peter, I had the same issue with the extra pixels. 6x13 rendered as 7 pixel wide characters after conversion by fonttosfnt. The solution was to compile the latest fonttosfnt from git and convert from 6x13.bdf rather than pcf (the latest fonttosfnt explicitly warns against using a pcf source). This was enough to get the font working again in the terminal - but the graphical font chooser would still show unicode boxes due to a name collision with the 6x13 pcf font - this was fixed by changing the FAMILY_NAME line in the bdf file. Reference: https://bugs.gentoo.org/728308 x11-apps/fonttosfnt: fonts spacing issues https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/merge_requests/7 Fix metrics (note comment "TL;DR: Don't use fonttosfnt on .pcf files.") http://www.psy.vanderbilt.edu/staff/jewett/mixppc/fonts/bdf/misc/6x13.bdf
I think the gtk3 font chooser is improved in Fedora 33.
This message is a reminder that Fedora 31 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '31'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 31 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.