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

allow setting label font #174

Open
wants to merge 1 commit into
base: 11-11-refactor_manifests_to_be_lazier
Choose a base branch
from

Conversation

bmschmidt
Copy link
Collaborator

@bmschmidt bmschmidt commented Dec 16, 2024

Important

Allows setting a custom font for labels in Deepscatter by adding a font option to LabelOptions and updating LabelMaker to use it.

  • Behavior:
    • Allows setting a custom font for labels via font option in LabelOptions.
    • Default font is 'verdana'.
  • Classes and Functions:
    • LabelMaker in label_rendering.ts now uses options.font if provided.
    • measure_text() in label_rendering.ts updated to accept font parameter.
    • DepthTree constructor in label_rendering.ts updated to accept font parameter.
  • Types:
    • Added font property to LabelOptions in types.ts.

This description was created by Ellipsis for 81981a0. It will automatically update as commits are pushed.

Copy link
Collaborator Author

bmschmidt commented Dec 16, 2024

@bmschmidt bmschmidt marked this pull request as ready for review December 16, 2024 19:36
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

Successfully merging this pull request may close these issues.

1 participant