Code Monkey home page Code Monkey logo

google-font-to-svg-path's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-font-to-svg-path's Issues

Build this as an API?

Hey Dan, is there a way to build this as an API?

I sent you an email and am following up here. I'd love to be able to convert SVG text to paths and want to make this into an API, but don't have experience with TypeScript. Are you aware of python bindings for maker.js, or any way that I can tweak this repo to make it into an API?

Feature Request: Ability to change the letter spacing

First of all thanks a lot for creating and maintaining such an awesome tool. But I feel like it's missing the ability to change the letter spacing. If you could add that it would be great. I'm not a JavaScript guy otherwise perhaps I would implement it myself.

Thanks again. Cheers.

Fonts are being clipped

I may be wrong about this and it may be my browser's rendering but it seems as though imported and exported fonts are being clipped. Particularly at high font sizes.

Here is an example with periods on IBM PLEX SANS size 200, 700 weight, curve depth of 0.00001:
image
If I expand the culling the curves sometimes show back up. (eg viewBox="0 0 470 141.32" --> viewBox="-1 -1 471 142")

Thank you !

I have a lots of ideas and plans, one of which is bringing better support for google fonts and other customs to jscad. In the meantime, I wanted to make sth with few letters quickly, and found this (google ofc).

Thank you !

Solid Fonts?

Hi.

I am not sure if this is because you are using your Maker.js library but is there a way to make the fonts solid (not outlined). My goal is to load a Google TTF font, and text like your example and get a single SVG path.

Also
What happens with fonts which are cursive and paths overlap?
For example when you use the font Pacifico some of the characters overlap.
Ideally areas of overlap should be removed from the final path.

Italic and Bold

Perhaps a strange one, but is there a way to support bold and italic / emphasis for characters where there is no bold / emphasis? I'm adding a transform skewX for <em> (I know that's not ideal, but it seems to work)

Disable Elliptical Arcs ?

Dan, hi is it possible to add an option to NOT optimise for elilptical Arcs. could not seem to see the relevant code, or point me towards how you do that! Probably simplest for me to try the original opentype.js ! :) Cheers, and thanks for getting back to me on the other repo so quick.

Drop Font Size

Since we are creating a path the font size attribute is no longer necessary.

"fill-rule: evenodd" causing holes in glyphs

Selecting "Source Code Pro" and Variant 500, and setting Text to "4", there's a hole in the glyph where the strokes overlap:

4

At first blush, this seems to be because the <g> element has fill-rule="evenodd" set. Changing it to the default fill-rule="nonzero" fixes the issue:

4

P.S. Love this tool, thanks for creating it!

Command line usage?

I need to automatically convert the input text to SVG using a local font file. How could I use this program through the command line instead of using the GUI?

Unbounded Font Bugs

Thanks for making this fantastic tool! It should help me avoid png->svg conversions of that turn into a headache. Unfortunately, there are gaps in the letters that have overlapping shapes, so I cannot use this as expected, yet...

I tried playing with the numbers, but nothing seemed to work...

Screen Shot 2023-03-29 at 1 16 51 AM

This is AWESOME!

Thank you so much for this tool, saved me time dealing with Photoshop annoyances!
such a handy tool, straight to my bookmarks!

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.