Comments (10)
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.
Great. I've sent you some example code.
from vectorgraphics2d.
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.
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.
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.
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.
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.
As of commit 1c3e24c we are using WinAnsi font encoding by default which should solve the issue. Feel free to reopen.
from vectorgraphics2d.
[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.
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)
- Improve javadoc HOT 1
- Deprecate VectorGraphics2D.getBytes() HOT 1
- Remove interface CommandHandler HOT 1
- Update wiki documentation HOT 1
- Move compression property from Processors to Documents HOT 1
- Remove close method from Document HOT 1
- Filters should operate on CommandSequence HOT 1
- Replace StreamingFilter with simpler implementation
- Improve structure of PDFDocument
- support alternative (non-base64) url for image data HOT 1
- Fix number handling for PDF output HOT 2
- Flate compression for PDF is not working
- vg2d.getCommands(); is undefined for type Graphics2D HOT 1
- bad /BBox in font 'Dialog.plain' HOT 2
- Managing GraphicsState with a Stack is unsafe HOT 3
- Bug in pdfProcessor when the PageSize starting y axis differs from zero? HOT 1
- Can multiple graphics be saved in a single PDF file? HOT 3
- Casting error
- this software is only licensed under GPL? HOT 1
- Set an automatic module name in the Jar MANIFEST HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vectorgraphics2d.