Giter Club home page Giter Club logo

Comments (7)

pwichmann avatar pwichmann commented on July 20, 2024 2

Interestingly, the resulting SVG object is horizontally mirrored.

This is a 'G'.

g

from fontkit.

Harbs avatar Harbs commented on July 20, 2024 2

That's because the coordinate space for fonts is different than SVG. The original path data is not modified.
See: http://stackoverflow.com/questions/14203365/why-svg-font-is-mirrored

from fontkit.

Pomax avatar Pomax commented on July 20, 2024 1

There was some brief discussion around simplifying this task back in #24 but that issue may have fallen off the radar since.

from fontkit.

pwichmann avatar pwichmann commented on July 20, 2024

I am indeed stupid. For all other stupid people out there:

What you get is the d-part of the SVG string:

<svg height="210" width="400">
  <path d="M150 0 L75 200 L225 200 Z" />
</svg>

from fontkit.

pwichmann avatar pwichmann commented on July 20, 2024

Don't worry about it, guys!

I just added a horizontal flip to the SVG tags. As simple as that. No headache.

<svg transform="scale(1,-1)"> <path d="' + svg_data_part + '" /> </svg>

from fontkit.

Enelar avatar Enelar commented on July 20, 2024

There still bug, svg path doesn't transformed to center of axis, and actually different for each glyph

from fontkit.

Pomax avatar Pomax commented on July 20, 2024

@Enelar please file that as a separate issue.

from fontkit.

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.