Giter Site home page Giter Site logo

Comments (13)

alexander-akait avatar alexander-akait commented on May 29, 2024

@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.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

@evilebottnawi I used neither startunicode nor prependUnicode argument and name the SVG file with the character (not it's codepoint).

from webfont.

alexander-akait avatar alexander-akait commented on May 29, 2024

@edouard-lopez can you upload here one of svg?

from webfont.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

Here is ไธญ.svg and the script to build those files.

from webfont.

alexander-akait avatar alexander-akait commented on May 29, 2024

@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.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

I generate the file from Unicode database, should I use the codepoint (e.g. U+3400)?

from webfont.

alexander-akait avatar alexander-akait commented on May 29, 2024

@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.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

@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.

annotation-top

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.

alexander-akait avatar alexander-akait commented on May 29, 2024

@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.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

I would expect an option --detect-codepoint based on the filename: either U+3400.svg or ใ€.svg.

What do you think?

from webfont.

alexander-akait avatar alexander-akait commented on May 29, 2024

@edouard-lopez sgtm for me!

from webfont.

edouard-lopez avatar edouard-lopez commented on May 29, 2024

@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.

alexander-akait avatar alexander-akait commented on May 29, 2024

@edouard-lopez it is good ๐Ÿ˜„

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.