siji icon indicating copy to clipboard operation
siji copied to clipboard

siji not being recognised in font-config

Open frankplow opened this issue 5 years ago • 22 comments

I'm on Arch and after a recent update, siji stopped appearing under fontconfig. Looking online, theres also a post on r/archlinux with a couple people reporting a similar issue in the comments.

fc-list | grep -i siji returns nothing, despite ls /usr/share/fonts/misc | grep siji returning siji.pcf

Running fc-cache -rv or fc-cache -fv shows no new fonts installed in the directory containing siji.

I have 70-yes-bitmaps.conf in my /etc/fonts/conf.d and no $XDG_CONFIG_HOME/fontconfig is present. Other .pcf bitmap fonts load and function fine. I've tried gzipping siji, as most other .pcf fonts installed were, but that made no difference.

I've tried installing both using the AUR package and the install.sh script (both to /usr/share/fonts/misc & ~/.local/share/fonts/misc), with no difference between the two.

Running fc-query /usr/share/fonts/misc/siji.pcf returns Can't query face 4294967295 of font file /usr/share/fonts/misc/siji.pcf

frankplow avatar Mar 20 '19 18:03 frankplow

Same problem here on Arch Linux!

MassimoGirondi avatar Mar 21 '19 09:03 MassimoGirondi

does it show up on xlsfonts ?

xlsfonts | grep siji

stark avatar Mar 21 '19 16:03 stark

In my case, xlsfonts | grep siji gives the following:

-wuncon-siji-medium-r-normal--0-0-75-75-c-0-iso10646-1
-wuncon-siji-medium-r-normal--0-0-75-75-c-0-iso10646-1
-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1
-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1
-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1

BTW, I tried to install it on a friend's Manjaro computer and it worked, so I'm start to thinking that it's not strictly related to the font by itself.

MassimoGirondi avatar Mar 21 '19 16:03 MassimoGirondi

Yeah, it shows on xlsfonts for me as well. I also thought it was strange the problem was specific to siji. It works on all other bitmap fonts as far as I can tell besides stlarch. freetype 2 updated last week to add support for multi-color glyphs, so maybe this broke bitmap glyphs somehow?

frankplow avatar Mar 21 '19 17:03 frankplow

I am having the exact same problem...

I'm trying to run polybar with the siji font with no results.

It also shows on xlsfonts

charbelnicolas avatar Mar 21 '19 18:03 charbelnicolas

Looks like it's same as #27

Remove the file:

# rm /etc/fonts/conf.d/70-no-bitmaps.conf

Then update your font cache

stark avatar Mar 22 '19 08:03 stark

As I said in my original post, I have 70-yes-bitmaps.conf in my conf.d: ls /etc/fonts/conf.d | grep bitmap returns 70-yes-bitmaps.conf. I've also tried 70-force-bitmaps.conf, which made no difference. Also the fact that all other bitmap fonts I've tried are working besides siji & stlarch makes me think that its not a config problem.

frankplow avatar Mar 22 '19 08:03 frankplow

@frankplow that's weird because i didn't even need to symlink the 70-yes-bitmaps.conf file for siji to work on my system and it shows up under fc-list as it should. how about you remove the symlink and update your font cache as root.

stark avatar Mar 22 '19 08:03 stark

@stark I tried it, again no luck. It worked just like yours without 70-yes-bitmaps.conf or any other configuration until last week. Think I've tried every combo of sudo / 70-yes-bitmaps.conf / 70-force-bitmaps.conf / fc-cache -f / fc-cache -r at this point. Can anyone verify that it works on a distro besides arch with the newest freetype2? It seems too coincidental they made an update which changes glyphs massively and siji broke at the exact same time.

frankplow avatar Mar 22 '19 17:03 frankplow

Same problem on my end, happened after updating freetype I believe. Notably, when running the view script, it returns this error:

Warning: Cannot convert string "-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1" to type FontStruct xfd: no font to display

radfordwa avatar Mar 22 '19 22:03 radfordwa

From https://github.com/lucy/tewi-font/issues/35 "FreeType now uses the `defaultChar' property of PCF fonts to set the glyph for the undefined character at glyph index 0 (as FreeType already does for all other supported font formats). As a consequence, the order of glyphs of a PCF font if accessed with FreeType can be different now compared to previous versions."

The bdf version of the font works. Place it in "~/.local/share/fonts" (or wherever your fonts directory is lcoated), run fc-cache and voila, Siji working again. The declaration for Siji might be different in your configurations, in my polybar configuration I had to change "Wuncon Siji" to just "Siji" to use the bdf variant.

Edit: View script is also working again for me.

radfordwa avatar Mar 24 '19 00:03 radfordwa

@radfordwa I'm on Arch and have had the exact same issues with Siji not showing up in fc-list (although it shows in xlsfonts) and your solution is the only way I can actually use Siji.

m-wells avatar Mar 24 '19 04:03 m-wells

@radfordwa I can confirm that your solution work also for me. Thanks!

MassimoGirondi avatar Mar 24 '19 07:03 MassimoGirondi

@radfordwa same here, installing the bdf instead of the pcf is working fine :+1:

erebe avatar Mar 24 '19 17:03 erebe

Hello, still having this issue. Tried placing siji.bdf in both ~/.fonts and ~/.local/share/fonts, fc-cache reports $HOME/.local/share/fonts: caching, new cache contents: 1 fonts, 0 dirs, but fc-list | grep -i siji returns nothing.

Bravo555 avatar Feb 01 '20 15:02 Bravo555

Issue resolved, turns out there was a /etc/fonts/conf.d/70-no-bitmaps.conf file in my system. After removal, all works well.

Bravo555 avatar Feb 02 '20 11:02 Bravo555

Hi guys, Same here: removing /etc/fonts/conf.d/70-no-bitmaps.confdid the trick. Polybar shows fine. Thanks

spdyn1 avatar Apr 12 '20 10:04 spdyn1

Yes this should be added to the wiki :+1:

nektro avatar May 30 '20 05:05 nektro

Same on ubuntu, had to remove /etc/fonts/conf.d/70-no-bitmaps.conf. Agree with @nektro please can someone add this to the wiki it took hours to figure this out.

silentjay avatar Nov 22 '20 10:11 silentjay

removing /etc/fonts/conf.d/70-no-bitmaps.conf works in debian. issue is : fonts looks ugly for github and facebook in firefox at the same time its fine in chrome.

Thiviyan avatar Dec 06 '20 21:12 Thiviyan

issue is : fonts looks ugly for github and facebook in firefox at the same time its fine in chrome.

After removing /etc/fonts/conf.d/70-no-bitmaps.conf on Ubuntu 21.04, polybar's example icons work, and no change in the Firefox's font rendering.

I found several mentions of this from 2015, but didn't see recent updates.

ryanerwin avatar Jul 13 '21 05:07 ryanerwin

If you still can't see the icons after replacing siji.pcf with siji.bdf, modify the fonts.dir file in $HOME/.local/share/fonts (or where you've installed it).

There will be a line like: siji.pcf -wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1

Just change siji.pcf with siji.bdf, so it'll be like this: siji.bdf -wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1

entnuo avatar Jul 19 '23 17:07 entnuo