Common routines for Fontforge plugins
Project description
Fontforge plugin helper
A collection of common routines for Fontforge plugins
This module is intended to be called from Fontforge plugins. This module itself is not a Fontforge plugin.
Install
pip3 install fontforge_plugin_helper
Usage
fontforge_plugin_helper.addSystemHook()
def myNewFontHook(font):
do_something
def myLoadFontHook(font):
do_something
def fontforge_plugin_init(**kw):
fontforge_plugin_helper.addSystemHook('newFontHook', myNewFontHook)
fontforge_plugin_helper.addSystemHook('loadFontHook', myLoadFontHook)
fontforge_plugin_helper.addFontGenerateHook()
def myPreGenerationHook(font):
do_something
def myPostGenerationHook(font):
do_something
def myNewOrLoadFontHook(font):
fontforge_plugin_helper.addFontGenerateHook(font,
'generateFontPreHook',
myPreGenerationHook)
fontforge_plugin_helper.addFontGenerateHook(font,
'generateFontPostHook',
myPostGenerationHook)
def fontforge_plugin_init(**kw):
fontforge_plugin_helper.addSystemHook('newFontHook', myNewOrLoadFontHook)
fontforge_plugin_helper.addSystemHook('loadFontHook', myNewOrLoadFontHook)
fontforge_plugin_helper.generationHookSetter()
def myPreGenerationHook(font):
do_something
def myPostGenerationHook(font):
do_something
def fontforge_plugin_init(**kw):
fontforge_plugin_helper.addSystemHook(
'newFontHook',
fontforge_plugin_helper.generationHookSetter(
myPreGenerationHook,
myPostGenerationHook,
)
)
fontforge_plugin_helper.addSystemHook(
'loadFontHook',
fontforge_plugin_helper.generationHookSetter(
myPreGenerationHook,
None, # if not needed
)
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontforge_plugin_helper-0.1.1.tar.gz.
File metadata
- Download URL: fontforge_plugin_helper-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72b316ced5c9808aa3a97a8a6c66fe50812936193d71d1790a551b89560cb397
|
|
| MD5 |
1c7744780e9f0dcbba8fd19be2412e7a
|
|
| BLAKE2b-256 |
9a6e8da330e21bf9f6b7ebfaace00c731d216a3ace93931189deb007e90f7264
|
Provenance
The following attestation bundles were made for fontforge_plugin_helper-0.1.1.tar.gz:
Publisher:
python-publish.yml on MihailJP/fontforge-plugin-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontforge_plugin_helper-0.1.1.tar.gz -
Subject digest:
72b316ced5c9808aa3a97a8a6c66fe50812936193d71d1790a551b89560cb397 - Sigstore transparency entry: 1575673959
- Sigstore integration time:
-
Permalink:
MihailJP/fontforge-plugin-helper@36b1d5fab5afa59dfb20123990704f1f2872d095 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MihailJP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@36b1d5fab5afa59dfb20123990704f1f2872d095 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fontforge_plugin_helper-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fontforge_plugin_helper-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635d1ebb84b12e8fbe6ae5fd9358117bc5f9478c1ceece735195483a52a49144
|
|
| MD5 |
5ea39e851a7056f332afb52f177ddff7
|
|
| BLAKE2b-256 |
d5109ab5ae17a193c4de96c7df81f0116a6e49059a24edd058736add994a1bf3
|
Provenance
The following attestation bundles were made for fontforge_plugin_helper-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on MihailJP/fontforge-plugin-helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontforge_plugin_helper-0.1.1-py3-none-any.whl -
Subject digest:
635d1ebb84b12e8fbe6ae5fd9358117bc5f9478c1ceece735195483a52a49144 - Sigstore transparency entry: 1575673988
- Sigstore integration time:
-
Permalink:
MihailJP/fontforge-plugin-helper@36b1d5fab5afa59dfb20123990704f1f2872d095 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/MihailJP
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@36b1d5fab5afa59dfb20123990704f1f2872d095 -
Trigger Event:
release
-
Statement type: