DPI-aware, Content scale


When should I use glfwGetWindowContentScale instead of glfwGetMonitorContentScale and vice versa?

Is this combination enough to make my application DPI-aware?
-glfwGetWindowContentScale at init phase.
-glfwSetWindowContentScaleCallback after init phase.

Make sure to read the documentation content scale and window content scale.

Essentially each monitor may have a content scale and the content scale of a window depends on which which monitor the system considers the window to be on. Using the window content scale is a reliable method.

The window hint GLFW_SCALE_TO_MONITOR will automatically scale your window size by the content scale. Whether you want to do this depends on your application.

On MacOS the window size and framebuffer size may differ, so these also need to be taken into account.

Sorry for the late reply.
Thank you for your explanation and links.