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

fontforge PPA / font-patcher script errors #725

Closed
LaProgramadora opened this issue Dec 19, 2021 · 10 comments · Fixed by #798
Closed

fontforge PPA / font-patcher script errors #725

LaProgramadora opened this issue Dec 19, 2021 · 10 comments · Fixed by #798

Comments

@LaProgramadora
Copy link

🎯 Subject of the issue

  • Unable to enable glyph icons
  • Unable to add the fontforge repository
  • Unable to run font-patcher script

Setup: Windows 11 running WSL2 on Ubuntu 20.0403, Bash shell

I have installed b-ryan's powerline-shell prompt and my goal is to enable the icon glyphs included with the package. I tried the method of simply patching an individual font (CascadiaCode) for Microsoft without luck. Ultimately, I cloned the nerd-fonts repository and ran the install.sh script successfully.

Whenever I cache my fonts, it appears to run successfully and showed that roughly 154 fonts were added; however, the fonts do not show up in the /.local/share/fonts directory. At most, I was able to install CascadiaCode from Microsoft's release and change my font face within Properties -> Fonts.

I run into issues when I get to the font-forge and font-patcher steps.
When running this command I receive the following output:
sudo add-apt-repository ppa:fontforge/fontforge;

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:2 http://ppa.launchpad.net/fontforge/fontforge/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Err:5 http://ppa.launchpad.net/fontforge/fontforge/ubuntu focal Release
404 Not Found [IP: 91.189.95.85 80]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/fontforge/fontforge/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

🔧 Your Setup

  • Which font are you using (e.g. Anonymice Powerline Nerd Font Complete.ttf)?
  • CascadiaCode
  • Which terminal emulator are you using (e.g. iterm2, urxvt, gnome, konsole)?
  • Ubuntu v 20.04.3 bash shell v. 5.0.17
  • Are you using OS X, Linux or Windows? And which specific version or distribution?
  • Windows 11 running Windows Subsytem for Linux 2 kernel

★ Optional

@ryanoasis
Copy link
Owner

The fonts should in either /user/local/share/fonts or ~/.local/share/fonts.

E: The repository 'http://ppa.launchpad.net/fontforge/fontforge/ubuntu focal Release' does not have a Release file.

It seems like the repository is not available for your ubuntu version. Is the issue with the apt commands specifically? If so I don't see how this is an issue with the fonts unless you mean the install doesn't seem to install them?

@icy-comet
Copy link

icy-comet commented Feb 20, 2022

I faced the exact PPA related issue on Ubuntu 20.04 LTS. Something seems off with the fontforge's PPA.

I fixed it by installing the python3-fontforge package instead. The issue is not on nerd-fonts' side.

@Finii
Copy link
Collaborator

Finii commented Feb 21, 2022

Maybe my question is dumb, I never used WSL. But Ubuntu (20.04) (i.e. focal) does have fontforge as ordinary packet, so why does one need a PPA?
https://packages.ubuntu.com/focal/fontforge

@icy-comet
Copy link

@Finii FontForge's website mentions adding the PPA for some reason. Package from the official repo also does the trick however.

@Finii
Copy link
Collaborator

Finii commented Feb 26, 2022

FontForge's website mentions adding the PPA for some reason

I went out to fix that, but can not find it.
https://fontforge.org/ -> Downloads -> GNU+Linux -> Download

Most GNU+Linux distributions have packages for FontForge, but these are often quite outdated. If you want the latest FontForge, these are your options:

  • AppImage
    AppImage is a binary format that has improved to the point where it is generally usable by all GNU+Linux users.
    With each release, we compile an AppImage. The latest is 2020-11-07.
    We recommend all users use this method to get the latest release if their distribution has not yet provided it. The Ubuntu PPA, and similar distribution-specific build platforms that put the onus on us, are deprecated and not to be used.
  • Compiling
    [...]

Emphasis is mine

Maybe you can give me the concrete link and/or a screenshot that we can fix that bit of information.

@icy-comet
Copy link

@Finii Sorry I mistook FontForge's official site as this one. My bad. It does, however, fall under FontForge's GH organization.

@icy-comet
Copy link

@ryanoasis @Finii since the docs clearly mention that the Ubuntu PPA is now deprecated, maybe the issue should be closed as well?

@icy-comet
Copy link

Actually, the patcher script also points to designwithforge.com. Here's the error message:

Nerd Fonts: FontForge module is probably not installed. [See: http://designwithfontforge.com/en-US/Installing_Fontforge.html]

It needs to be updated as well, I guess.

Finii added a commit that referenced this issue Feb 28, 2022
[why]
When the fontforge python bindings are not installed we fail while
importing psMat. The message suggests that fontforge itself is not
installed - which is not the real reason. One can use the libfontforfge
with the python-fontforge without having the GUI program fontforge.

Furthermore we link to outdated installation instructions.

[how]
We already check and report correctly what needs to be done with the
fontforge module import. As both modules are often in the same package
we should probably report the same message. That message holds correct
hints for Debian/Ubuntu. It does not have a link to fontforge, though.

[note]
Also update Debian package name.

Fixes: #725

Reported-by: Aniket Teredesai <[email protected]>
Signed-off-by: Fini Jastrow <[email protected]>
@Finii
Copy link
Collaborator

Finii commented Feb 28, 2022

Created 2 PRs ;-)

This issue will be autoclosed when merged.

@Finii Finii closed this as completed in #798 Sep 6, 2022
Finii added a commit that referenced this issue Sep 6, 2022
[why]
When the fontforge python bindings are not installed we fail while
importing psMat. The message suggests that fontforge itself is not
installed - which is not the real reason. One can use the libfontforfge
with the python-fontforge without having the GUI program fontforge.

Furthermore we link to outdated installation instructions.

[how]
We already check and report correctly what needs to be done with the
fontforge module import. As both modules are often in the same package
we should probably report the same message. That message holds correct
hints for Debian/Ubuntu. It does not have a link to fontforge, though.

[note]
Also update Debian package name.

Fixes: #725

Reported-by: Aniket Teredesai <[email protected]>
Signed-off-by: Fini Jastrow <[email protected]>
@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2023
LNKLEO pushed a commit to LNKLEO/Nerd that referenced this issue Nov 24, 2023
[why]
When the fontforge python bindings are not installed we fail while
importing psMat. The message suggests that fontforge itself is not
installed - which is not the real reason. One can use the libfontforfge
with the python-fontforge without having the GUI program fontforge.

Furthermore we link to outdated installation instructions.

[how]
We already check and report correctly what needs to be done with the
fontforge module import. As both modules are often in the same package
we should probably report the same message. That message holds correct
hints for Debian/Ubuntu. It does not have a link to fontforge, though.

[note]
Also update Debian package name.

Fixes: ryanoasis#725

Reported-by: Aniket Teredesai <[email protected]>
Signed-off-by: Fini Jastrow <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants