editor mixes fonts

Questions & Answers

Moderators: fgagnon, nikos, Site Mods

User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

since i can't test these things myself, i'll need your help, if you care to solve this problem

http://www.ps.ic.ac.uk/~umeca74/ed3.zip

this special build uses some extra language dependent settings. Please use DBMON (as explained in xplorer2) to see what messages it prints when it starts, especially dwLANGOPTIONS, dwEDITSTYLE, and dwTEXTMODE

then I will recommend some new values you can put in the registry to change them, and lets hope we'll find the perfect combination!
plas
Member
Member
Posts: 25
Joined: 2002 Nov 15, 10:29
Location: Czech Republic

Post by plas »

dwLANGOPTIONS: 00000082
dwEDITSTYLE: 00000000
dwTEXTMODE: 0000002a
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

these numbers mean:
LANGOPTIONS = IMF_AUTOFONT + IMF_DUALFONT
EDITSTYLE = (nothing special)
TEXTMODE = TM_RICHTEXT + TM_MULTILEVELUNDO + TM_MULTICODEPAGE

I hope you are familiar with registry editing.
Under HKCU\Software\ZabaraKatranemia Plc\Editor2 you'll find entries for all these special values, called dwLANGOPTIONS etc. We'll try to change them so as to correct the problems you experience

my prime suspect would be LANGOPTIONS. So let's try that first. Available options are:

IMF_AUTOKEYBOARD 0x0001
IMF_AUTOFONT 0x0002
IMF_IMECANCELCOMPLETE 0x0004
IMF_IMEALWAYSSENDNOTIFY 0x0008
IMF_AUTOFONTSIZEADJUST 0x0010
IMF_UIFONTS 0x0020
IMF_DUALFONT 0x0080

the problems you described are spot on with the names of the options. So try setting dwLANGOPTIONS to 0 (zero) to turn them both off. You'll have to quit ed2 before you can change the registry. Then run it again and see if things are improved.

Then we'll have to hope that these corrections don't cause any other problems... but those are the joys of windows programming :)
plas
Member
Member
Posts: 25
Joined: 2002 Nov 15, 10:29
Location: Czech Republic

Post by plas »

Thanks, it's better now. The fonts are not mixed anymore.
I've set LANGOPTIONS to 0.
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

great!
just let me know if any side-effects occur

i'll release a patched version 2.5.0.5 to cover this
Post Reply