BSD Ports

x11-fonts/py-gfsubsets 2025.11.4_1 MidnightBSD

Codepoint definitions for the Google Fonts subsetter

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
Apache-2.0
Categories
x11-fonts, python

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
MidnightBSDx11-fonts/py-gfsubsets2025.11.4_1 newestno data-[email protected]-
FreeBSDx11-fonts/py-gfsubsets2025.11.4 newestnone known-[email protected]-
DragonFlyx11-fonts/py-gfsubsets2024.9.25none known-[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:

mport install ${PYTHON_PKGNAMEPREFIX}gfsubsets

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gfsubsets>0:x11-fonts/py-gfsubsets

Dependency graph

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

Dependencies

As this port's Makefile names them.

Build 3

Build dependencies 3

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
gfsubsets-2025.11.4.tar.gz1.40574e+0693a5256bda8aff54b2d9986e9ea15cc9aff48670d912fe27a6da2079fbed8a49
Master sites 1
  • PYPI