polyscope icon indicating copy to clipboard operation
polyscope copied to clipboard

DPI scaling?

Open darikg opened this issue 4 years ago • 1 comments

Hi, using py-polyscope on a Windows laptop with a 4k display the default font size is extremely small. Any chance to add some sort of font-size scaling?

darikg avatar Sep 19 '21 22:09 darikg

Totally agree, makes sense. I think this just needs some ImGui wizardry, plus converting some of the Polyscope sizing/layout parameters to be font-size-sensitive.

  • ImGui has instructions here: https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-should-i-handle-dpi-in-my-application
  • And I think we can get DPI from glfw here: https://www.glfw.org/docs/3.3/window_guide.html#window_scale

nmwsharp avatar Nov 12 '21 06:11 nmwsharp