googlefonts / pyfontaine

Python tool to check font files for language/character set support
https://github.com/googlefonts/pyfontaine
GNU General Public License v3.0
104 stars 20 forks source link

Load plugins by request #22

Closed vitalyvolkov closed 10 years ago

vitalyvolkov commented 10 years ago

If look at source of cmap.py module we'll see that all charmaps from plugins loaded completely at import of module. This provides to us huge amount of information. To make this information more structured I suggest to add a new argument to fontaine script

pyfontaine --plugins pyfontaine,uniblocks,extensis,fontconfig,all font.ttf

It will load to library only that charmaps that plugins provide.

davelab6 commented 10 years ago

Great idea!

Rather than --plugins I would call these --collections :)

And default to all :)

vitalyvolkov commented 10 years ago

https://github.com/davelab6/pyfontaine/commit/10e7fe34460b07a58b5212c23b45c9c189534f20