Recent

Author Topic: Fixed width font on Windows Mobile 6.1  (Read 6680 times)

CodeMonkey

  • Newbie
  • Posts: 3
Fixed width font on Windows Mobile 6.1
« on: June 02, 2010, 08:11:13 am »
Can you help me get a fixed width font in a memo field on Windows Mobile 6.1

What font should I use for this ?  Do I need to use any particular sizes or properties (bold etc)

I have tried COURIER, COURIER NEW and TERMINAL using a variety of sizes but no luck so far.

I am developing on Lazarus on Windows XP, compiling for WinCE and running the EXE on Windows Mobile.

Thanks everyone

Environment
===================
Lazarus
   lazarus-0.9.28.2-fpc-2.2.4-win32.exe
   Lazarus-0.9.28.2-fpc-2.2.4-cross-arm-wince-win32.exe
   
HTC Touch HD - Windows Mobile 6.1

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: Fixed width font on Windows Mobile 6.1
« Reply #1 on: June 03, 2010, 03:01:10 am »
According to MSDN Docs:

http://msdn.microsoft.com/en-us/library/bb159674.aspx

It should be Courier. But here it isn't fixed-size either ... strange.

vgoudreault

  • New Member
  • *
  • Posts: 11
Re: Fixed width font on Windows Mobile 6.1
« Reply #2 on: September 23, 2010, 05:40:27 am »
Looks like MS decides to override your selection based on default properties (font support on WinCE is very poor).

Here is what you could do:
on your memo field Properties tab, expand the "Font" property and find the Pitch sub-property. Set it to 'fpFixed'.
That works on my side (the font turns into Courrier on the WinCE machine, no matter what is specified as Font.Name).