Git Product home page Git Product logo

Comments (5)

ziebelje avatar ziebelje commented on June 12, 2024

I think this is just when the font I use isn't installed on the local machine.

from app.

ziebelje avatar ziebelje commented on June 12, 2024

Confirmed; seeing if Highcharts has any way to support this.

from app.

ziebelje avatar ziebelje commented on June 12, 2024

It looks like this is more or less not possible at the moment. The way the graph exports work in Highcharts is the SVG is plopped on a canvas via blob. The canvas doesn't seem to support any form of custom font declaration from the SVG (defs, CSS styles, etc). It works if the font is already installed on your system. If not it doesn't know where to go for the font so it just reverts to the fallback font. It's a bit weird since canvas does support custom fonts (http://jsfiddle.net/zMKge/2171/).

I'll look a bit more into the issue but I may end up using the Highcharts export server to support this since I want to generate these graphs server-side anyways.

Example:
https://jsfiddle.net/j1L4o78x/

from app.

ziebelje avatar ziebelje commented on June 12, 2024

http://jsfiddle.net/vn2q9emc/

Got it to work. TODO add this. :)

from app.

ziebelje avatar ziebelje commented on June 12, 2024

https://highcharts.uservoice.com/forums/55896-highcharts-javascript-api/suggestions/36675448-support-custom-fonts-in-graph-exports

from app.

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.