Giter Site home page Giter Site logo

Comments (4)

peter279k avatar peter279k commented on June 14, 2024

To be international, please use English writing to describe your issue and title.

Thanks.

from jpgraph.

ffflabs avatar ffflabs commented on June 14, 2024

Uh, Google Translate didn't help much either

from jpgraph.

peter279k avatar peter279k commented on June 14, 2024

@ffflabs, I guess he wants the every sample has the Chinese introduction.

from jpgraph.

ffflabs avatar ffflabs commented on June 14, 2024

Hmm I wouldn't know how am I supposed to translate the examples, and it doesn't make sense to transliterate to chinese characters while preserving english. I'd make a fool of myself 😄

However, perhaps this issue is meant to address the usage of chinese fonts and not the language itself.

First and foremost: fonts such as simsun.ttc and bkai00mp.ttf are HUGE and I cannot add 15M of statics just for the sake of an example. BUT, I made a working example:

image

https://github.com/HuasoFoundries/jpgraph/blob/master/Examples/examples_multigraph/example_two_graphs_chinese.php#L20-L29

You just need to gunzip these fonts to src/fonts/

bkai00mp.ttf.gz
simsun.ttc.gz

Caveat: bkai00mp works fine. simsun only works if you set it as "user defined font" (see above). If you set it as FF_SIMSUN (which would make much more sense...) there's a hardcoded encoding conversion that breaks stuff.

from jpgraph.

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.