specify encoding when building SVG.
This commit is contained in:
parent
962f4b7ddd
commit
6f1ca85646
|
@ -1,8 +1,15 @@
|
||||||
* Your font version:
|
* Your font version: (Release or git, version)
|
||||||
* Your font variant:
|
* Your font variant:
|
||||||
* Your operating system (name and version):
|
* Your operating system (name and version):
|
||||||
* Your application using Iosevka: (some Java applications may have problem in showing Iosevka properly. It is a bug in Java's GUI components.)
|
* Your application using Iosevka: (some Java applications may have problem in showing Iosevka properly. It is a bug in Java's GUI components.)
|
||||||
|
|
||||||
|
If you have problem when building Iosevka, please provide these informations:
|
||||||
|
|
||||||
|
* Your Node.js version:
|
||||||
|
* Your results of `npm list`
|
||||||
|
* Your _otfcc_ version:
|
||||||
|
* Your FontForge version:
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Describe your problem here.
|
Describe your problem here. Provide pictures and files if necessary.
|
||||||
|
|
|
@ -61,7 +61,7 @@ if (argv.svg) (function () {
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
var svg = '<?xml version="1.0" standalone="no"?>'
|
var svg = '<?xml version="1.0" encoding="utf-8"?>'
|
||||||
+ '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >'
|
+ '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >'
|
||||||
+ '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">'
|
+ '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">'
|
||||||
+ '<defs><font id="' + font.name.postScriptName + '">';
|
+ '<defs><font id="' + font.name.postScriptName + '">';
|
||||||
|
@ -92,7 +92,7 @@ if (argv.svg) (function () {
|
||||||
+ ' glyph-name="' + g.name
|
+ ' glyph-name="' + g.name
|
||||||
+ '" horiz-adv-x="' + g.advanceWidth + '" '
|
+ '" horiz-adv-x="' + g.advanceWidth + '" '
|
||||||
+ (g.unicode && g.unicode.length ? 'unicode="&#x' + g.unicode[0].toString(16) + ';"' : '')
|
+ (g.unicode && g.unicode.length ? 'unicode="&#x' + g.unicode[0].toString(16) + ';"' : '')
|
||||||
+ ' d="' + toSVGPath(g) + '" />';
|
+ ' d="' + toSVGPath(g) + '" />\n';
|
||||||
svg += gd;
|
svg += gd;
|
||||||
}
|
}
|
||||||
svg += '</font></defs></svg>';
|
svg += '</font></defs></svg>';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user