Lazarus
Programming => Operating Systems => Windows CE => Topic started by: CodeMonkey 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
-
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.
-
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).