Font difference problem!

  • Thread starter Thread starter Tomer
  • Start date Start date
T

Tomer

Hi,

When I design a form, there's a difference between the visual studio
designer and the application that runs (on the winCE emulator and the winCE
device).
The font on the device seems smaller than what I've designed on the IDE.
I've tried the fonts: arial, and tahoma and got the same results.
I've tried copying the fonts to the windows directory of the device, but I
didn't help.

I need to enlarge the font size by 4 in run time in order for the labels to
look like the designer.

Plus I've also noticed that the device takes the font size ad rounds it
down, like this:
If in the IDE the font size was 13.8, on the device its 13.0
So I've tried to match the design font size to 13.0, but still it looked
smaller on the device.

Any help on this one???

Tomer.
 
Hi Peter,

I am using CF SP2!

If you'll try to put a label on a form and match the form's width to the
label, so that it would look like the label text takes the whole width of
the form.

Now try to run it on the emulator and see if the form's design on the device
is exactly as on the IDE.

Please tell me if you tried it.

Tomer.
 
Okay, slight confusion with the issue, the bug I referred to was actually
causing a change between the numerical size set in the designer and what was
actually used on the device. Your issue is that there are several factors
which can affect how the designer appears on your desktop machine related to
the screen size and dpi of your display. In short I don't think you'll ever
get a pixel perfect wysiwyg forms designer using VS, you'll need to test on
the emulator or device to ensure your font size is appropriate for the
screen width. If you use SP2 you can ensure that if you specify a 12pt font
size you'll get a 12pt font on the device.

Peter
 
Back
Top