Viewport fixes, text render fixes