Answered OpenEdge, DefaultFont and Pixels

Vexed

New Member
Hi Guys,

I have a strange problem with a Progress application, here is what's happening:

The application run fine on my workstation, the screen resolution is 1080*1920 and the font DPI is 96 (Screen size is 24")

When I query SESSION:pIXELS-PER-ROW and SESSION:pIXELS-PER-COLUMN I get 21 and 5.

I bought a highend laptop with 13.3" 1080*1920 screen, but the Progress application run a bit wider than the usual, hence the screen items look missplaced.

I tried to change the screen resolution and the Font DPI with no-luck, tried external monitor and projectors as well.

When I query SESSION:pIXELS-PER-ROW and SESSION:pIXELS-PER-COLUMN I get 24 and 7.

I checked all the ini files and the DefaultFont is MS Sans Serif size 8.

I tried all the tricks that i know but I just can't fix it. The workstation and the laptop are identical (compiled code, Progress Version and all the settings).
More Info: Windows 7, OpenEdge 10.2A SP2

Has anyone came through this and found a solution?
Any help is much appreciated.

Cheers,
Bob
 

Vexed

New Member
I figured it out finally!!!

In Windows 7, MS Sans Serif Doesn't exist, it has been replaced with MS Sans Serif Regular.
That's why OpenEdge was confused, it couldn't find the font specified.

To fix that problem, patch the regisrty as the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]

"MS Sans Serif 8,10,12,14,18,24"="SSERIFE.FON”

"MS Serif 8,10,12,14,18,24"="SERIFE.FON"

"Courier 10,12,15"="COURE.FON"




This should solve the problem.


Cheers,
Bob
 
Top