birdfont icon indicating copy to clipboard operation
birdfont copied to clipboard

Flatpak is broken, AUR package is unmaintained, no good way to install on Arch Linux—a build guide.

Open ctrlcctrlv opened this issue 5 years ago • 6 comments

(Note: I contribute to FontForge, so readers should be aware of that bias.)

I use Arch Linux. It's a quite popular distro. There is seemingly no simple way to use Birdfont on Arch.

I'm currently debugging a particularly thorny FontForge bug (fontforge/fontforge#4173) and thought I'd give Birdfont a try, to see if it interprets the TTF within correctly, so I could compare your code to ours and track down the problem.

  • The AUR package is broken and orphaned. https://aur.archlinux.org/packages/birdfont
  • The Flathub instructions do not work at all.
    [fred@pc ~]$ flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
    error: Can't load uri https://sdk.gnome.org/gnome.flatpakrepo: Error resolving “sdk.gnome.org”: Name or service not known
    
  • The build system seems obscure and downright dangerous to me. doit? install.py, in my opinion, screams, Yikes!, it literally runs ln in the shell, and install, and is entirely custom made, which unfortunately does not inspire my confidence. But, then again, the project is written in Vala of all things, so perhaps there's simply no other way™. build.py builds up a giant valac command, in a fashion similar to Autotools, I suppose.
    • Speaking of Autotools, you may have noticed there's a configure script. It is, again, custom, not in any way generated by Autotools.
  • But anyway I run it. I have faith in its author ;-)
  • Oh no, what's this??
    [fred@pc birdfont]$ build/bin/birdfont
    build/bin/birdfont: error while loading shared libraries: libbirdfont.so.36.0: cannot open shared object file: No such file or directory
    
  • Hmm... LD_LIBRARY_PATH=. ./birdfont ~/Downloads/kaiu-1558375.ttf 2020-02-18-175528_1208x899_scrot
  • Maybe it's missing its icons. So I cd back to the root and they appear. LD_LIBRARY_PATH=build/bin build/bin/birdfont ~/Downloads/kaiu-1558375.ttf 2020-02-18-175744_2204x1681_scrot
  • OK, time for the big moment! 2020-02-18-175952_2204x1681_scrot
  • Aw :disappointed: Seems Birdfont has same problem we do. At least I know it's quite widespread now. :)

ctrlcctrlv avatar Feb 18 '20 10:02 ctrlcctrlv

Thank you for the report. Can you send me the find file (TTF or OTF). Cheers

johanmattssonm avatar Feb 18 '20 11:02 johanmattssonm

No problem, here you go. I'm still investigating the issue myself, but am not getting anywhere and will probably give up soon. It works fine in FreeType, but neither FontForge nor Birdfont understands it. Inkscape also chokes on it. It also works on OS X and Windows, I'm told.

kaiu-1558375.zip

ctrlcctrlv avatar Feb 18 '20 11:02 ctrlcctrlv

Hi. I have update the flatpak. I hope the new version works (3.33.1). Please let me know if you find errors.

johanmattssonm avatar Feb 23 '20 19:02 johanmattssonm

The binary build/bin/birdfont binary needs libraries in build/bin. You should run birdfont.sh from the project directory.

johanmattssonm avatar Feb 23 '20 19:02 johanmattssonm