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

Upgrade a font #27

Open
miquecg opened this issue Nov 23, 2022 · 6 comments
Open

Upgrade a font #27

miquecg opened this issue Nov 23, 2022 · 6 comments

Comments

@miquecg
Copy link

miquecg commented Nov 23, 2022

Hi,

From help:

update -u -- updates the font package index of debian sid

Does this mean that when a font is updated it downloads and install the latest version? How would I upgrade a font?

Thanks!

@alexmyczko
Copy link
Owner

alexmyczko commented Nov 23, 2022

Hi @miquecg

the update option really downloads just a package index file from debian, that lists what fonts can be installed from debian sid.

if you want to upgrade a font, you'd just fnt install fontname (without fonts- or google-).

however, keep in mind, fnt doesn't keep track of individiual font files, and if updated fonts ship fonts with different names, old font files stay around.

@miquecg
Copy link
Author

miquecg commented Nov 23, 2022

Ok, that's what I supposed but wanted to be sure.

So it looks like there's no obvious way to know when an installed font was updated. At least from a user perspective.

@alexmyczko
Copy link
Owner

well yes there is, timestamp of files... see ls -l or stat commands

@crpb
Copy link
Contributor

crpb commented Mar 14, 2024

i will just leave that here for anyone eager to implement something

for file in ~/.fonts/*; do curl 'https://packages.debian.org/search?searchon=contents&keywords='"${file##$HOME/.fonts/}"'&mode=&suite=sid&arch=any' |sed -ne 's/.*href="\/sid\/\([^"]*\).*$/\1/p' ; done

🙈 🙊 🙉

@crpb
Copy link
Contributor

crpb commented Aug 23, 2024

There are md5sum's available from #40 so an actual "upgrade" could be implemented with the help of the index files.

@alexmyczko
Copy link
Owner

haette haette velokette

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants