Skip to content

7sDream/which_fonts_support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Which fonts support

中文版本

Introduction

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...

Install

pip3 install which-fonts-support

Usage

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.

Environment requirements

  • python >= 3.5
  • fontconfig installed in your system

Screenshot

Normal usage

Show all styles

This screenshot is a little big, please click to see it.

Preview

I'm poor in design and HTML works, this preview is designed and implemented by @MashiroWang, thanks!

TODO

  • 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

LICENSE

MIT.

About

This project will not update anymore, use https://github.com/7sDream/fontfor instead.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages