IMPROVEMENT: UI layout now gets computed by update thread. Font size computation does not need OpenGL context anymore. Refactored related code.