Comments (13)
@edouard-lopez thanks for feedback, i don't know why it is happens, need investigation, if you have time feel free to PR or create issue to related project ๐
from webfont.
@evilebottnawi I used neither startunicode
nor prependUnicode
argument and name the SVG file with the character (not it's codepoint).
from webfont.
@edouard-lopez can you upload here one of svg?
from webfont.
Here is ไธญ.svg and the script to build those files.
from webfont.
@edouard-lopez oh sorry, I did not immediately understand what you specifically mean ๐ Filename of svg files not associated with real unicode characters (). Starting unicode https://github.com/nfroidure/svgicons2svgfont/blob/master/src/metadata.js#L17 Why you need associated real filename and unicode?
from webfont.
I generate the file from Unicode database, should I use the codepoint (e.g. U+3400
)?
from webfont.
@edouard-lopez we can generate custom font and use the offset to not intersect with the real characters of the fonts. This approach is used by all font generators, if you can explain in more detail why you need it and for what, then maybe I can help
from webfont.
@evilebottnawi my goal is to generate a Chinese font based on Noto CJK (Chinese/Japenese/Korean) to add the pronunciation on top of each Chinese character, see repo, like example below.
But the generated glyph should have the same codepoint as the original one otherwise it will be pointless as users won't be able to type the character.
from webfont.
@edouard-lopez Thanks for the explanation, I think it's workable, I'll try to find a solution this week, but you can try it yourself and send PR ๐
from webfont.
I would expect an option --detect-codepoint
based on the filename: either U+3400.svg
or ใ.svg
.
What do you think?
from webfont.
@edouard-lopez sgtm for me!
from webfont.
@evilebottnawi svgicons2svgfont
already support what I wanted through a naming convention:
${unicode}-${char.glyph}.svg
For example:
โโโ svg
โโโ u3400-ใ.svg
โโโ u3401-ใ.svg
โโโ u3404-ใ.svg
โโโ u3405-ใ
.svg
โโโ u3406-ใ.svg
from webfont.
@edouard-lopez it is good ๐
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.