Skip to content

Large/Small Font options with MjrContext? #24

Open
@rohit-kumar-j

Description

@rohit-kumar-j

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions