johanbrook / gulp-fontcustom

A gulp plugin that convert SVG files to font icons with Fontcustom
15 stars 4 forks source link

Weird Output #7

Open lgt opened 9 years ago

lgt commented 9 years ago

I've been generating my custom Font Icon but the output is quite weird

here is the markup

<div class="social_icons">
                <ul id="share">
                    <li><i class="font-facebook"></i></li>
                    <li><i class="font-twitter"></i></li>
                    <li><i class="font-google"></i></li>
                    <li><i class="font-email"></i></li>
                </ul>
 </div>

here I have the generated CSS

    @font-face {
        font-family: "Font";
        src: url("./Font.eot?") format("embedded-opentype");
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: "Font";
        src: url("data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAncAA0AAAAAFTgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAJwAAAABkAAAAcdpYSLk9TLzIAAAGgAAAASQAAAGBP8GEsY21hcAAAAgwAAABKAAABSuH5Ff9jdnQgAAACWAAAAAQAAAAEABEBRGdhc3AAAAm4AAAACAAAAAj//wADZ2x5ZgAAAnQAAAXjAAAPdC6OI89oZWFkAAABMAAAAC4AAAA2D96lpGhoZWEAAAFgAAAAHQAAACQOGwwBaG10eAAAAewAAAAeAAAAKCu/ABFsb2NhAAACXAAAABYAAAAWEtoONG1heHAAAAGAAAAAHwAAACAAWAG0bmFtZQAACFgAAAEjAAAB7/l53bpwb3N0AAAJfAAAADwAAABmuoXVC3jaY2BkYGAA4iNpmy/H89t8ZeBmYgCBS+6bJiPo/8d4DBh3A7kcDGBpAFXeC+IAAHjaY2BkYGDc/f8Ygx6PAQMQAElGBlTABQBauQM0AAAAeNpjYGRgYOBibGbgYQABJiBmZACJOTDogQQAEiYBDgB42mNgYeNhnMDAysDA6MOYxsDA4A6lvzJIMrQwMDAxsDIzwACjAAMCBKS5pjA0MCh8ZGU88P8Agx7jbgYrkBokJQoMjADzdQrEAAAAeNpj2M0gyAACq4D4BAMDjwEEM/6E0gIQNgBnZgT4AAB42mNgYGBmgGAZBkYGEHAB8hjB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HaGWMiI0WKGhTpshRcpTcI13qNMnf9USRElueebP+M/MXwA1eodA+Gg/CCgkehTu4wpNwF0O8CSd8P4V7uFVD4T4SdUelSq5Z3ceuwAoDbIQ73OuFu9z6LJxQ8yHco58v4T4GKscCDQ64sLNCiS1OVIw4c8ycw8Biigm5gMMO79S17PnV1GHRHC6+KrcnPdqMdW7sdKILt3vxjN7VVBRcUXMwiqZmXLKzxBl7rDkFS1ee92v/KwvZU+Gig4weNOZxa/u/rSxmSBkN44/PuKBofOl0nhk916FmsrPUmjRY+2dmFa9y5OXDseagMCqLOSzGyvlj1dTaGJsZY/TfCd9dvkfPAHjaY2BiAIP/BxgkGbABLiBmZGBiYGZkYmRmZGFkZWRjZGcvzct0MzQwgNKGUNoIShtDaRMobQoA+o4PFwAAAAH//wACeNpjYGBgZACCS2xr2cG0+6bJMBoAPMgGSgAAAA==") format("woff"),
        url("./Font.ttf") format("truetype"),
        url("./Font.svg#Font") format("svg");
        font-weight: normal;
        font-style: normal;
    }

    @media screen and (-webkit-min-device-pixel-ratio:0) {
        @font-face {
            font-family: "Font";
            src: url("./Font.svg#Font") format("svg");
        }
    }

    [data-icon]:before { content: attr(data-icon); }

    [data-icon]:before,
    .font-email:before,
    .font-facebook:before,
    .font-facebook-01:before,
    .font-google:before,
    .font-google-01:before,
    .font-twitter:before {
        display: inline-block;
        font-family: "Font";
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        line-height: 1;
        text-decoration: inherit;
        text-rendering: optimizeLegibility;
        text-transform: none;
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        font-smoothing: antialiased;
    }

    .font-email:before { content: "\f100"; }
    .font-facebook:before { content: "\f101"; }
    .font-facebook-01:before { content: "\f104"; }
    .font-google:before { content: "\f102"; }
    .font-google-01:before { content: "\f105"; }
    .font-twitter:before { content: "\f103"; }

and here I have the result

screenshot 2015-10-17 13 39 51