Fix printing under Windows
For some reason the Scintilla widget's Pango context don't have a
resolution set on Windows, so we get an invalid one. Fix this by
correctly peek the resolution from the map if the context doesn't
have one by itself.
Thanks to Matthew Brush for debugging this!