Vpype plugin for using True Type fonts for text.
For vpype
, see: https://github.com/abey79/vpype
A shortening of "font text", this command accepts the required arguments of a path to a TrueType, and a string of text to render, and an optional argument of the text size, and adds the rendered text lines to the document in the pipeline.
- Install repository:
pip install vpype-ttf
Have font file specified, eg:
vpype ftext /usr/share/fonts/truetype/open-sans/OpenSans-Bold.ttf "vpype-ttf" show
vpype-ttf currently supports font scaling with the -s or --size option.
vpype ftext -s 10cm /usr/share/fonts/truetype/open-sans/OpenSans-Bold.ttf "vpype!" show
Thanks to Tatarize for creating this plugin in the first place. If you would like to contribute and expand vpype-ttf, bug reports, feature requests, and issues are welcome.