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

Large/Small Font options with MjrContext? #24

Open
rohit-kumar-j opened this issue Sep 25, 2022 · 0 comments
Open

Large/Small Font options with MjrContext? #24

rohit-kumar-j opened this issue Sep 25, 2022 · 0 comments

Comments

@rohit-kumar-j
Copy link
Contributor

rohit-kumar-j commented Sep 25, 2022

Too many changes in #23. So I want to ask this here (perhaps there are too many config options):
Add font options withinMjrContext?

viewer.__init__(font="small")  # or "large"
if font == "large":
   self.ctx = mujoco.MjrContext(
       self.model, mujoco.mjtFontScale.mjFONTSCALE_150.value)
elif font == "small":
    self.ctx = mujoco.MjrContext(
       self.model, mujoco.mjtFontScale.mjFONTSCALE_100.value)
Small Large
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

1 participant