sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

big Y offset icon position when generated with fontforge engine #381

Closed m-v-novikov closed 6 years ago

m-v-novikov commented 6 years ago

icons: { src: 'path/*.svg', dest: 'path', destCss: "path", options: { fontFilename: 'IconsMain', hashes: false, types: "eot,woff2,woff,ttf,svg", templateOptions: { baseClass: 'mIcons', classPrefix: 'm_' }, stylesheets: ["scss"], normalize: true, autoHint: false, htmlDemo: false, fontPathVariables: true, relativeFontPath: "./../path", } }

webfont-bug

OS Ubuntu 17.10 Task manager: grunt(grunt-cli v1.2.0) What it can be. True size of icon - 80px x 80px. (if i do sizes bigger, for example 512px x 512px - offset is stand smaller)

was tried generate fonts on node engine - have warning - "Found a clipPath element in the icon "iconName" theresult may be different than expected." and generated icons have color(black and white) reverse(but doesn't having offset problem)

all path are summed.

viewBox="2289 -1301 96 96" (viewBox="0 0 96 96" - don't help)

m-v-novikov commented 6 years ago

this is not a css problem

if some body have any idea, I will be grateful. please help me))

change size by inkscape to 1024px x 1024px and offset stand smaller http://joxi.ru/bmoYWl4uxNjnlA but this is not enough, and this is can't help(I think, can't get true position by this decision)