Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character "€" does not appear in axis labels #55

Closed
jzy3d opened this issue Mar 14, 2016 · 3 comments
Closed

Character "€" does not appear in axis labels #55

jzy3d opened this issue Mar 14, 2016 · 3 comments

Comments

@jzy3d
Copy link
Owner

jzy3d commented Mar 14, 2016

chart.getAxeLayout().setYAxeLabel( "Amount (€)" );

Will appear like : "Amount ()"

@jzy3d jzy3d changed the title [2D] Character "€" does not appear in axis labels Character "€" does not appear in axis labels Mar 14, 2016
@xukeek
Copy link

xukeek commented May 5, 2016

Chinese Character like "中" is also not appear.

@jzy3d
Copy link
Owner Author

jzy3d commented May 7, 2016

You have to implement a TextRenderer supporting this character. The default one is limited. You might wish to use an existing JOGL text renderers instead.

A JOGL text renderer is wrapped in Jzy3d : although it does not work it can be starting point for you. Please share your work if you make it work :)

To replace the current AxeBox text renderer, you have to call :

((AxeBox)chart.getView().getAxe()).setTextRenderer(new MyTextRenderer());

@jzy3d
Copy link
Owner Author

jzy3d commented Jan 23, 2021

You may use EmulGL charts which has a more flexible text renderer based on Graphics2D.drawString instead of OpenGL text rendering.

Since version 2.0.0

@jzy3d jzy3d closed this as completed Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants