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

How to change font for the axis? #13

Open
GeCol1 opened this issue Jun 22, 2018 · 2 comments
Open

How to change font for the axis? #13

GeCol1 opened this issue Jun 22, 2018 · 2 comments

Comments

@GeCol1
Copy link

GeCol1 commented Jun 22, 2018

Hello @HanSolo ,

I try to change the font for the axis but it's not working for the moment (I've tried through css).
image

.axis .yaxis {
    -fx-font-family: "Arial";
    -fx-font-size: 18px;
}

I could change the size with the setAutoFontSize(false) and setTickLabelFontSize() methods but I would like to change the font also.

Do you have a sample on how to change it for the axis on a simple XYChart ?

Thanks,
Gerald

@abhi1992
Copy link

abhi1992 commented Nov 4, 2022

As it seems the font is hardcoded to Lato. In the file you mentioned Above. @GeCol1

@HanSolo
Copy link
Owner

HanSolo commented Nov 4, 2022

The font in my Axis class is not configurable at the moment but that I can change. Keep in mind that I don’t make use of css because most of the controls in this lib make use of canvas which is not directly stylable using css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants