Giter VIP home page Giter VIP logo

Comments (8)

alexander-akait avatar alexander-akait commented on August 24, 2024

@shankar78be Thanks for reporting

from webfont.

alexander-akait avatar alexander-akait commented on August 24, 2024

@shankar78be you want create two fonts?

from webfont.

shankar78be avatar shankar78be commented on August 24, 2024

Yes, I want to create web fonts for the 2 images specified in the config file
"src/assets/images/action-sheet-check.eps.svg"
"src/assets/images/arrow-left-black-sm.eps.svg"

Is there a sample project that i can refer too ?

from webfont.

alexander-akait avatar alexander-akait commented on August 24, 2024

@shankar78be Poor understand, describe the problem in detail what you want to get and what you get is actually

from webfont.

shankar78be avatar shankar78be commented on August 24, 2024

I have configured the package.json to generate the webfonts. In the prebuild, the webfont were configured with the following parameters input, dest & destcsstemplate. It works fine, created webfonts for the SVG images located inside the images folder.
"scripts": {
"prebuild": "webfont src/assets/images/*.svg --dest src/assets/icons -s src/assets/icons/dfw.css",
"start": "npm run server"
}

If I need to generate webfonts based on the configuration specified webfont.config.json, what needs to be done ?

webfont.config.json

{
"files": [
"src/assets/images/action-sheet.svg",
"src/assets/images/arrow-left.svg"
],
"dest": "src/assets/icons",
"dest-css-template": "src/assets/icons/dfw.css",
"fontName": "webfont"
}

Need help on this.

from webfont.

alexander-akait avatar alexander-akait commented on August 24, 2024

@shankar78be Thank you for the detailed description, it is now clear, tomorrow I'll see what I can do, i see you want give an opportunity use files (glob) and dest* options in webfont.config.json. Now it is supported only for CLI (https://github.com/itgalaxy/webfont/blob/master/src/cli.js#L210 and below).

from webfont.

alexander-akait avatar alexander-akait commented on August 24, 2024

@shankar78be you can use files for CLI or in config file, it can not be used in both, i fixed this throw error if you use CLI and config file contain files.

from webfont.

jimmyandrade avatar jimmyandrade commented on August 24, 2024

@shankar78be did you manage to solve what you needed? If so, I will be happy to close this issue. Otherwise, please tell me to see how I can help you.

from webfont.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.