Comments (8)
@shankar78be Thanks for reporting
from webfont.
@shankar78be you want create two fonts?
from webfont.
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.
@shankar78be Poor understand, describe the problem in detail what you want to get and what you get is actually
from webfont.
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.
@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.
@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.
@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)
- Not generating font. HOT 1
- generate data:application/x-font-woff;charset=utf-8;base64,... URL style in templates HOT 1
- Wrong filename in template.njk if fontName and templateFontName configured
- NPM audit fail due to vulnerable dependency on svg2ttf HOT 2
- add browser compatability HOT 5
- Incomplete after compilation HOT 1
- Support of ligatures should be configurable
- Globby now uses ESM HOT 5
- Cannot use import statement outside a module HOT 7
- Error when passing path to javascript config file via '--config' flag HOT 1
- Auditing webfont reveals moderate vulnerability in xmldom HOT 6
- Cannot read property 'dirname' of undefined HOT 2
- Extreme slowdown on fonts generated by `webfont` HOT 1
- please synchronize versions in npm registry, releases and tags page
- CLI round parameter is passed as a string in SVGPathData (Bug)
- Update cosmiconfig module to latest upstream release HOT 1
- svgicon2svgfont.log not implemented
- Is this still maintained?
- 如何让webfont支持transform属性
- TypeError: webfont is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webfont.