[Pkg-mono-devel] Metrics off in a precompiled win binary

Jo Shields directhex at apebox.org
Fri Sep 5 14:05:18 UTC 2008


On Fri, 2008-09-05 at 01:55 -0700, ZioNemo wrote:
> Hi,
> I think this should have been beaten to death by now, but I have been unable
> to find a suitable thread.
> Can someone point me in the right direction, please?
> 
> I installed mono in ubuntu (mono-common, mono-gac, mono-jit and
> mono-runtime).
> Target is to run a win shareware program (GoogleOzi) that is reported to run
> under mono.
> This program indeed runs, but metrics are a little off, You can see in the
> following image:
> http://www.nabble.com/file/p19327416/Schermata-GPS%2BPosition.png 
> The bottom is actually cut in the window, It's not a screen capture mistake
> ;-)
> Also notice the (unimportant) artifacts in the inlaid borders of the edit
> fields.
> 
> I suspect this is an effect of font metrics on my computer being different
> from expected.
> Can this be?
> What can I do to solve the problem?

Firstly, can you try using Mono 1.9.1 instead of 1.2.6 (the default in
Ubuntu Stable)? I provide backport packages at
http://directhex.mfgames.com

If it doesn't help, then I suspect it's an upstream problem - Winforms
apps by design require pixel-perfect layout, so not doing so (and I
include making incorrect Windows assumptions about screen depth) is
wrong.




More information about the Pkg-mono-devel mailing list