rohanpsingh / mujoco-python-viewer

Simple renderer for use with MuJoCo (>=2.1.2) Python Bindings.
BSD 2-Clause "Simplified" License
163 stars 24 forks source link

Large/Small Font options with MjrContext? #24

Open rohit-kumar-j opened 1 year ago

rohit-kumar-j commented 1 year ago

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