diff --git a/bin/fontify.dart b/bin/fontify.dart index d67f8e2..c818ba9 100644 --- a/bin/fontify.dart +++ b/bin/fontify.dart @@ -69,7 +69,8 @@ void _run(CliArguments parsedArgs) { final svgMap = { for (final f in svgFileList) - p.basenameWithoutExtension(f.path): File(f.path).readAsStringSync(), + '${p.basenameWithoutExtension(f.path)}${(p.basename(p.dirname(f.path))) != p.basename(parsedArgs.svgDir.path) ? '_${p.basename(p.dirname(f.path))}' : ''}': + File(f.path).readAsStringSync(), }; final otfResult = svgToOtf(