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

Setting the font-size doesn't work #439

Closed
gaurav opened this issue Aug 16, 2023 · 3 comments
Closed

Setting the font-size doesn't work #439

gaurav opened this issue Aug 16, 2023 · 3 comments
Assignees

Comments

@gaurav
Copy link
Contributor

gaurav commented Aug 16, 2023

All the options to tree.render() (e.g. "align-tips", "container", "width", "height") work correctly, but neither "font-size" or "font_size" changes the font size for the labels (which remains stuck at 12px, which is really small -- are you sure you didn't mean 12pt?). I was able to resize the text by adding a CSS instruction:

.phylotree-node-text {
  font-size: 12pt !important;
}

However, I'd like to know what the correct way of doing this is so I can use that instead.

@stevenweaver
Copy link
Member

Dear @gaurav,

You aren't the first that has reported this. Let me see if I can make node font size configurable.

Best,
Steven

@stevenweaver
Copy link
Member

Dear @gaurav,

Due to the way the code is written, supporting units other than px would take some time. Can you review the PR #443 and see if that meets your needs?

Best,
Steven

stevenweaver added a commit that referenced this issue Oct 16, 2023
making node font size a configurable option
@gaurav
Copy link
Contributor Author

gaurav commented Oct 30, 2023

Yup, that should be fine for now -- thanks for making this work!

@gaurav gaurav closed this as completed Oct 30, 2023
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

2 participants