BSD Ports

x11-fonts/py-gfsubsets 2024.9.25 DragonFly

Codepoint definitions for the Google Fonts subsetter

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
python, x11-fonts
Package size
183.2 KiB, 1755.0 KiB installed

Description

This is the collection of nam files (codepoint subsets) that are used to subset fonts before serving on the Google Fonts CSS API.

The Python module gfsubsets provides an interface to these subset definitions. It exports the following functions:

  • CodepointsInFont(filename): Lists the Unicode codepoints supported by the font
  • ListSubsets(): Returns the name of all defined subsets.
  • SubsetsForCodepoint(cp): Returns the names of all subsets including the codepoint.
  • SubsetForCodepoint(cp): Returns the name of the "most relevant" subset including the codepoint.
  • CodepointsInSubset(subset): Returns a set of codepoints included in the subset.
  • SubsetsInFont(filename, min_pct, ext_min_pct): Returns the name of subsets "well" supported by a font.

In the other systems

The newest version among them is 2025.11.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlyx11-fonts/py-gfsubsets2024.9.25none known-[email protected]-
FreeBSDx11-fonts/py-gfsubsets2025.11.4 newestnone known-[email protected]-
MidnightBSDx11-fonts/py-gfsubsets2025.11.4_1 newestno data-[email protected]-
HardenedBSDx11-fonts/py-gfsubsets2025.11.4 newestno data-[email protected]-
GhostBSDx11-fonts/py-gfsubsets2025.11.4 newestno data-[email protected]-

Install

Binary package:

pkg install py311-gfsubsets

From DPorts:

cd /usr/dports/x11-fonts/py-gfsubsets && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.