sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.1k stars 211 forks source link

The first icon alphabetically in a folder always fails to render in android 4.2.2 #245

Open IanCaunce opened 9 years ago

IanCaunce commented 9 years ago

Hi,

Using the config below, the first icon alphabetically in the folder will fail to render in android 4.2.2.

In my case, an icon called aerials fails to render. If I add another redundant icon called aaaaa so that it appears at the top of the list, aerials then renders.

I have tested with different icons being the first alphabetically and the first always fails to render.

module.exports = function(grunt) {
    return {
        icons: {
            src: 'path/to/icons/*.svg',
            dest: '/path/to/fonts/fonts/',
            options: {
                font: 'app-icons',
                types: 'eot,woff,ttf,svg',
                templateOptions: {
                    baseClass: 'ai',
                    classPrefix: 'ai-',
                    mixinPrefix: 'ai-'

                },
                htmlDemo: true,
                relativeFontPath: '/fonts/',
                destHtml: 'path/to/html/'
            }
        }
    };
};
sapegin commented 9 years ago

Could you try to increase startCodepoint value?

IanCaunce commented 9 years ago

Changing the startCodepoint value had no effect. Changing the engine to node did solve the issue but for some unrelated reason, it caused all the icons to be tiny.

I have also tried turning off autoHint as I was getting a memory corruption error due to having an outdated version of ttfautohint installed but that also did not solve the issue.

spirosdi commented 8 years ago

Hi, Exactly the same issue appears in Android 4.3 . Adding the redundant alphabetically first .svg file resolves it. Is there any progress?