Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

siji not being recognised in font-config #28

Open
frankplow opened this issue Mar 20, 2019 · 14 comments

Comments

Projects
None yet
7 participants
@frankplow
Copy link

commented Mar 20, 2019

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

@MassimoGirondi

This comment has been minimized.

Copy link

commented Mar 21, 2019

Same problem here on Arch Linux!

@stark

This comment has been minimized.

Copy link
Owner

commented Mar 21, 2019

does it show up on xlsfonts ?

xlsfonts | grep siji
@MassimoGirondi

This comment has been minimized.

Copy link

commented Mar 21, 2019

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.

@frankplow

This comment has been minimized.

Copy link
Author

commented Mar 21, 2019

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?

@charbelnicolas

This comment has been minimized.

Copy link

commented Mar 21, 2019

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

@stark

This comment has been minimized.

Copy link
Owner

commented Mar 22, 2019

Looks like it's same as #27

Remove the file:

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

Then update your font cache

@frankplow

This comment has been minimized.

Copy link
Author

commented Mar 22, 2019

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.

@stark

This comment has been minimized.

Copy link
Owner

commented Mar 22, 2019

@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.

@frankplow

This comment has been minimized.

Copy link
Author

commented Mar 22, 2019

@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.

@ironrice

This comment has been minimized.

Copy link

commented Mar 22, 2019

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

@ironrice

This comment has been minimized.

Copy link

commented Mar 24, 2019

From lucy/tewi-font#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.

@m-wells

This comment has been minimized.

Copy link

commented Mar 24, 2019

@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.

@MassimoGirondi

This comment has been minimized.

Copy link

commented Mar 24, 2019

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

@erebe

This comment has been minimized.

Copy link

commented Mar 24, 2019

@radfordwa same here, installing the bdf instead of the pcf is working fine 👍

JohnAZoidberg added a commit to JohnAZoidberg/nixpkgs that referenced this issue Apr 19, 2019

siji: Also package bdf font
The pcf version seems to be incompatible with newer FreeType versions
and hence doesn't show up in `fc-list`. A bdf file format is also
available. After packaging that the font shows up in `fc-list`.

See: stark/siji#28

Fixes NixOS#59847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.