fix angle computation
fit viewport; dpi