hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.2K
active users

@zachleat 👋

Do you know of any CLI tools that'll list all the unicode ranges in a font file?

Have looked at fonttools but didn't see an option

Want to split a font into multiple subsets but need to make sure I cover all the existing chars / glyphs

@andydavies I know you asked for CLI tools but I typically use wakamaifondue.com/ for this. Or zachleat.com/web/unicode-range (which uses npmjs.com/package/characterset for unicode range math).

For CLI, I don’t think github.com/zachleat/glyphhange can point directly at a font file but it does work against an HTML file which can get you mostly there (Edit: I’m now realizing this is the inverse of what you asked)

But I think the method @sil posted is probably ideal! mastodon.social/@sil/112004242

wakamaifondue.comWakamai Fondue

@zachleat Spoke too soon… Is the code on GH as this doesn't look right to me

Am I correct in thinking the left and right combined should be the same as what's in the middle?

@andydavies I would need to know the intersection (and the union couldn’t hurt too) to know if the difference was correct!

@zachleat Found out my issue… The order matters and if I swap the ranges around I get the result I was expecting

I was thinking difference in set theory terms (where order shouldn't matter) vs maths terms where order does matter

@anthony @andydavies just for difference, yeah. For union and intersection it doesn’t!