Directory graphics/pgf/contrib/char2path
The char2path
Package
The char2path
package provides a LaTeX package for converting characters into TikZ paths.
Overview
The package provides the \chartopath
and \chartoclip
macro
\chartopath [<keys>] {<string>} \chartoclip [<keys>] {<string>}
to print TikZ paths for characters in a string.
See char2path.pdf
for more. Happy TeXing!
Generate tikz path
from font
First, install the dependencies:
cd resources/SVG/font2svg pip install -r requirements.txt
Next, define the following constants:
FONT_FOLDER = "../../Fonts/" FONT_NAME = "lmmono10-regular.otf" FONT_ALIAS = 'lmm'
Finally, run the Python script below:
python font2path.py
Issues
The issue tracker for char2path
is currently located on GitHub.
Build status
This project uses GitHub Actions as a hosted continuous integration service. For each commit, the build status is tested using the current release of TeX Live.
Current build status:
References
[1] https://www.gust.org.pl/projects/e-foundry/latin-modern/download
[2] https://www.unicode.org/standard/standard.html
Copyright and License
Copyright (C) 2023-2025 by zongpingding <zongpingding5@outlook.com> and Mingyu Xia <myhsia@outlook.com>
This package's data is converted from Latin Modern family, which is based on the Computer Modern fonts released into public domain by AMS (1997). It's under the license of The GUS Font License (GFL).
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this license or (at your option) any later version. The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX version 2008 or later.
This work has the LPPL maintenance status maintained'.
The Current Maintainer of this work is zongpingding and Mingyu Xia.
Download the contents of this package in one zip archive (700.4k).
char2path – A LaTeX package that converts characters into TikZ paths
This TikZ-based LaTeX package provides an easy way to convert characters to TikZ-paths representing these characters.
Package | char2path |
Support | https://github.com/zongpingding/char2path/issues |
Repository | https://github.com/zongpingding/char2path |
Developers | https://github.com/zongpingding |
Version | 1.0.0 2025-07-28 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2025 Zongpingding and Mingyu Xia |
Maintainer | Zongping Ding Mingyu Xia |
Contained in | TeX Live as char2path |
Topics | Experimental LaTeX3 PGF TikZ |
