Live data from Hacker News

Fnt: apt for fonts

github.com

31–40 of 47 posts

Re: Fnt: apt for fonts

#31
post #24
post #5

"apt for fonts" is called apt. If you want the testing fonts, you add: /etc/apt/sources.d/fonts.list: deb http://http.debian.net/debian sid main contrib non-free and /etc/apt/preferences.d/pinning: Package: fonts-* Pin: release a=testing Pin-Priority: 600 (priority between 500 and 989 means "causes a version to be installed unless there is a version available belonging to the target release or the installed version i…

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…

not every linux or system has apt. not every user has root permissions. not every system has sudo.

Re: Fnt: apt for fonts

#32
post #14
post #5

"apt for fonts" is called apt. If you want the testing fonts, you add: /etc/apt/sources.d/fonts.list: deb http://http.debian.net/debian sid main contrib non-free and /etc/apt/preferences.d/pinning: Package: fonts-* Pin: release a=testing Pin-Priority: 600 (priority between 500 and 989 means "causes a version to be installed unless there is a version available belonging to the target release or the installed version i…

And fnt has little to do with apt; it's a wrapper around curl + ar + tar, that doesn't support any of the important features of APT (signature checking, dependencies, updates, keeping track of what is installed, uninstalls, ...)

that is true. but everyone knows apt, so if you want to explain something similar in usage, i'd refer to something people know about. of course your description: "wrapper around curl/ar/tar" is on point, but would anyone have understood it? the missing important features are a good idea.

Re: Fnt: apt for fonts

#33
post #24
post #5

"apt for fonts" is called apt. If you want the testing fonts, you add: /etc/apt/sources.d/fonts.list: deb http://http.debian.net/debian sid main contrib non-free and /etc/apt/preferences.d/pinning: Package: fonts-* Pin: release a=testing Pin-Priority: 600 (priority between 500 and 989 means "causes a version to be installed unless there is a version available belonging to the target release or the installed version i…

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…

You don't need sudo for any of this.

You do need root privileges if you want to install font packages so that everyone on the system can use them. If you only have yourself as a user, you can just drop ttf or otf files in an appropriate $HOME subdir.

You can also build yourself a read-only disk image and run overlay, or run NIXos, or guix, or whatever. I find it baffling that you find it desirable to sneer at instructions on how to do things appropriately for the specific system that is being referenced.

Hopefully other people will find some value in what I wrote.

Re: Fnt: apt for fonts

#34
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…

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.

Re: Fnt: apt for fonts

#35
post #33
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…

You don't need sudo for any of this. You do need root privileges if you want to install font packages so that everyone on the system can use them. If you only have yourself as a user, you can just drop ttf or otf files in an appropriate $HOME subdir. You can also build yourself a read-only disk image and run overlay, or run NIXos, or guix, or whatever. I find it baffling that you find it desirable to sneer at instruc…

Huh, so I bet someone could write a manager to handle that in a single command right?

Re: Fnt: apt for fonts

#36

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.

Whats not great about chucking them in ~/.fonts and done? I can't think of how it could be easier?

Re: Fnt: apt for fonts

#37
post #34

Earlier quoted context omitted.

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…

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.

Re: Fnt: apt for fonts

#38
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…

not every linux or system has apt. not every user has root permissions. not every system has sudo.

Yes, exactly. I think we're saying the same thing: the submitted tool doesn't need apt or any sort of root permissions. While the instructions the parent posted required root, apt, knowledge of pinning, and acceptance of any issues that brings up.

Much more complicated than just installing a font.

Re: Fnt: apt for fonts

#39
post #7

Earlier quoted context omitted.

You can't find and install new fonts using Fontbook, can you?

...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.
Post reply on HN