Code Monkey home page Code Monkey logo

Comments (10)

eseifert avatar eseifert commented on June 14, 2024

By default Java uses UTF-16 for Strings. EPS and PDF usually rely on Latin 1, but characters like å, ä, or ö should be fine. Which version of VectorGraphics2D are you using? Can you send a source code file with a short example to [email protected]?

from vectorgraphics2d.

plufz avatar plufz commented on June 14, 2024

Great. I've sent you some example code.

from vectorgraphics2d.

eseifert avatar eseifert commented on June 14, 2024

Thanks. We tried to render extended characters like ä, ö, or å with the PDF export of the current git version and it works fine. The API should be the same as in 0.9.1, which you have been using. Could you give it a try and report back?

from vectorgraphics2d.

plufz avatar plufz commented on June 14, 2024

I've tried the git one eariler today but it generated an eps instead of a pdf using the pdf class. did you really get a pdf?

On 7 jul 2015, at 21:04, Erich Seifert [email protected] wrote:

Thanks. We tried to render extended characters like ä, ö, or å with the PDF export of the current git version and it works fine. The API should be the same as in 0.9.1, which you have been using. Could you give it a try and report back?


Reply to this email directly or view it on GitHub.

from vectorgraphics2d.

eseifert avatar eseifert commented on June 14, 2024

Thank Emil! You're right there was a bug causing EPS files to be generated instead of PDF. I just made commit that fixes it. Can you try it again?
PDF seems to have white base color which still has to fixed, so make sure you call setColor once before drawing the text.

from vectorgraphics2d.

eseifert avatar eseifert commented on June 14, 2024

The color issue should be resolved now. I did some more experiments myself and it seems there are still encoding problems for the mentioned letters. I will have to dig further into this.

from vectorgraphics2d.

plufz avatar plufz commented on June 14, 2024

Hi again! Just wanted to tell you that I had to use another library because of lack of time. So no need to hurry on the bug fix for my sake. Hope I didn't cause any trouble for you! And thanks for the quick response.

from vectorgraphics2d.

eseifert avatar eseifert commented on June 14, 2024

As of commit 1c3e24c we are using WinAnsi font encoding by default which should solve the issue. Feel free to reopen.

from vectorgraphics2d.

JavaJens avatar JavaJens commented on June 14, 2024

[Update2] No problem with the latest master. Sorry for the confusion.

[Update] I was under the impression that the above referenced commit was in 0.9.2. However, upon closer inspection I am not to sure about that. I will test and report back.

I experience the same issue with version 0.9.2.
Depending on the font either nothing or garbage is shown. Any help is appreciated.

from vectorgraphics2d.

eseifert avatar eseifert commented on June 14, 2024

Thanks for the update. Yes, it should be fixed in master only so far. We didn't backport the fix to 0.9.x yet.

from vectorgraphics2d.

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.