A small script to find which fonts support specified character.
Recently, I'm working on a LaTeX project, and need to deal with special characters(use another fallback font to show it) frequently.
So I write this to help me find available fallback font in my system.
(There should be no other people have this demand, I think...
pip3 install which-fonts-support
which_fonts_support <the-char>
# Or
python3 -m which_fonts_support.cli <the-char>
Use U+XXXX
or U+XXXXXX
format for non BMP character.
Add -v
to show all style of those fonts.
Add -p
to show display preview of those font in browser.
Use -f <path>
to use your fc-list
installed in a custom path.
- python >= 3.5
fontconfig
installed in your system
This screenshot is a little big, please click to see it.
I'm poor in design and HTML works, this preview is designed and implemented by @MashiroWang, thanks!
- generate HTML page for preview fonts
- Make it can be used as a module
- Use an internal http server to support preview, instead of temp file
- Documents
- Add words on PyPI page
- Article about
fc-list
command
MIT.