Live data from Hacker News

Fnt: apt for fonts

github.com

41–47 of 47 posts

Re: Fnt: apt for fonts

#41

Earlier quoted context omitted.

...Oh, I get it now. (You can install new fonts, just not find them.) It's just, I personally can't imagine installing a new font without actually looking at it first. I know this provides an ascii art preview, but I'd need a more precise rendering.

just replace chafa with open (macos) or feh (linux) and get a nice preview.

the linux equivalent to open is xdg-open

Re: Fnt: apt for fonts

#42
post #34

Earlier quoted context omitted.

Pretty sure I just wrote out all the steps for you. I'm glad I could save you from that nightmare. Next time try posting to the debian-users mailing list, we hardly ever mock anyone.

I believe they were talking in that comment about adding a new font to Debian.

It seems unlikely to be that difficult, given that there are

apt search "font"|grep fonts-|wc -l

roughly 600 font families packaged in the Debian repositories right now.

Re: Fnt: apt for fonts

#43
The 'fnt preview' mode is amazing, reminds me of watching music videos in the terminal with blc and aalib or calib in the 2000s (Ascii Art Library or Colour Ascii Art Library).. and then decreasing the font size to get a better resolution. Love it.

Re: Fnt: apt for fonts

#44
post #15

Managing fonts is not great on Linux in general. I'll make sure I give this a go. A good font can make a big difference if you are in the terminal or editor all day. It's a pain to get unity between them though.

Once you start accumulating all the fonts you needed over projects, your Inkscape and Gimp become terribly sluggish on booting. Other programs maybe too, I don't know, I don't use that many graphical tools or office programs. And the font-selector dropdowns become unusable. So I started manually moving stuff from /usr/share/fonts/ and ./.local/share/fonts/ into per-project archive folders. A lot of work, that a font-…

> Once you start accumulating all the fonts you needed over projects, your Inkscape and Gimp become terribly sluggish on booting.

Isn't this an old Windows bug, where GIMP would recreate the font cache on every start? I don't think I've ever seen any noticeable delay on Linux. (I have hundreds to thousands of fonts installed.)

Re: Fnt: apt for fonts

#45
post #24

Earlier quoted context omitted.

Yes why use this simple tool when you can: 1. add a limited set of fonts (requires sudo privileges) 2. pin those using an arbitrary number between two more arbitrary numbers, hope it doesn't break anything else. if it does break I'm sure there's a few pages of documentation you can sift through (also requires sudo privileges) 3. run another sudo command to update your local list of available packages 4. finally, use…

And god help you if you'd like to add a font. You'll need to read hundreds of pages of mostly out of date documentation. Then track down brusque gatekeepers on IRC and obscure communication channels to plead your case, only to be mocked and told simply, "No." You will be told it's not "the Debian way" and hundreds of pages of more documentation will be thrown at you. Almost certainly someone will quiz you on your kno…

This tool just downloads .debs from sid:

https://github.com/alexmyczko/fnt/blob/c9204949ddf77e31fd519...

then it copies any fonts in them to a per-user directory. I don’t see any real benefit to debian users vs apt pinning (apt pinning supports auto update; fnt does not), but it does support installing to other operating systems, which is nice for those people.

Re: Fnt: apt for fonts

#47
post #44
post #15

Earlier quoted context omitted.

Once you start accumulating all the fonts you needed over projects, your Inkscape and Gimp become terribly sluggish on booting. Other programs maybe too, I don't know, I don't use that many graphical tools or office programs. And the font-selector dropdowns become unusable. So I started manually moving stuff from /usr/share/fonts/ and ./.local/share/fonts/ into per-project archive folders. A lot of work, that a font-…

> Once you start accumulating all the fonts you needed over projects, your Inkscape and Gimp become terribly sluggish on booting. Isn't this an old Windows bug, where GIMP would recreate the font cache on every start? I don't think I've ever seen any noticeable delay on Linux. (I have hundreds to thousands of fonts installed.)

It is most notable in Inkscape.

It boots fast, but many menu's and buttons will stall for seconds or longer while fonts are being loaded. There may be an issue for this in some bugtracker, I have not checked this yet.

Post reply on HN