accept woff (web font) format - closes #2113
This commit is contained in:
parent
bead269923
commit
448d093f77
2 changed files with 2 additions and 1 deletions
|
@ -1030,7 +1030,7 @@ def register_plugins(path=None):
|
|||
path = inputpluginspath
|
||||
DatasourceCache.register_datasources(path)
|
||||
|
||||
def register_fonts(path=None,valid_extensions=['.ttf','.otf','.ttc','.pfa','.pfb','.ttc','.dfont']):
|
||||
def register_fonts(path=None,valid_extensions=['.ttf','.otf','.ttc','.pfa','.pfb','.ttc','.dfont','.woff']):
|
||||
"""Recursively register fonts using path argument as base directory"""
|
||||
if not path:
|
||||
if os.environ.has_key('MAPNIK_FONT_DIRECTORY'):
|
||||
|
|
|
@ -83,6 +83,7 @@ bool freetype_engine::is_font_file(std::string const& file_name)
|
|||
boost::algorithm::ends_with(fn,std::string(".pfa")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".pfb")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".ttc")) ||
|
||||
boost::algorithm::ends_with(fn,std::string(".woff"))||
|
||||
// Plus OSX custom ext
|
||||
boost::algorithm::ends_with(fn,std::string(".dfont"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue