1. Ramendra Singh
  2. PowerBuilder
  3. Thursday, 6 September 2018 04:54 AM UTC

Hi Gurus

We recently did the migration from PB6.5 to PB2017 R2 and all the application text chopped. 

MS Sans Serif - 8 size.

If I go and re-select the same font, it works fine but there are 100s of windows and datawindows to change.

Any suggestions.

Thanks

Ramendra 

 

 

 

 

 

 

 

 

 

Accepted Answer
Ramendra Singh Accepted Answer Pending Moderation
  1. Friday, 7 September 2018 01:54 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Brad & Chris 

Thank you for the response.

Brad - I will performing the steps you suggested and have attached the screenshot for your reference. The test is copped from all the directions but mostly from right and bottom.

Regards

Ramendra 

 

Attachments (1)
Comment
  1. Brad Mettee
  2. Friday, 7 September 2018 13:18 PM UTC
Your text is only being cut off to the right and bottom. This indicates the bounding box for the fields was designed with a different font, and what's currently being used no longer fits properly.



Re-selecting the "same font" forces PB to re-build the field height/width. It's possible MicroSoft re-defined the MS Sans Serif font a bit and it's slightly bigger. The other possibility is that the MS Sans Serif you're picking from the menu is a font alias, and not the original. If this is the case, you'll need to find out what it's aliased to (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes), and get rid of the alias OR find out how many units different the old/new fields are, and programmatically change the fields to be a bit bigger.



Have you done print screens of the old a new screens to see how the font is different? Is it just a diff size, or a completely diff font face?



Chris: His app has been ported to PB2017R2 and is the version that's having the text cut off issues.
  1. Helpful
There are no comments made yet.
Ramendra Singh Accepted Answer Pending Moderation
  1. Monday, 10 September 2018 00:26 AM UTC
  2. PowerBuilder
  3. # 1

Hi Brad, Chris and Roland

Thank you for the response.

Just to let you know, it was not the migration problem but a corrupted font in the new Windows 7 laptop. 

After replacing the Font under Control Panel->Fonts, it worked perfectly.

Regards

Ramendra 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 10 September 2018 00:28 AM UTC
That's great news Ramendra!
  1. Helpful
  1. Ramendra Singh
  2. Monday, 10 September 2018 00:33 AM UTC
Thank you Chris!
  1. Helpful
  1. Brad Mettee
  2. Monday, 10 September 2018 19:13 PM UTC
Glad to hear it, congrats on tracking it down.
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 7 September 2018 12:42 PM UTC
  2. PowerBuilder
  3. # 2

I'm wondering if it has to do with the default font set in the application painter. Perhaps 6.5 didn't put font info in the objects if they were left as default. Try changing the default fonts.

Comment
  1. Chris Pollach @Appeon
  2. Friday, 7 September 2018 14:01 PM UTC
Hi Roland;

FYI: Since PB v1.0 - The App Painter settings only affect the IDE painters when new objects are created.

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 6 September 2018 14:02 PM UTC
  2. PowerBuilder
  3. # 3

Hi Ramendra;

  FWIW:  Yes, long after PB 6.5 (in the Windows 95 days) - Microsoft changed their font standard for their Apps to Tahoma 8 point. I suspect that your v6.5 App font no longer scales correctly in the newer MS-Windows O/S.

Regards ... Chris

Comment
There are no comments made yet.
Brad Mettee Accepted Answer Pending Moderation
  1. Thursday, 6 September 2018 12:41 PM UTC
  2. PowerBuilder
  3. # 4

Try editing/saving the source of one of the datawindows to an external file before and after you modify one of the columns (two diff files). Use a Diff program of some type to see what has actually changed. There are PB Tools available to do global search/replace on objects of all types so you could fix them all at once after you find what has changed.

I don't understand what you mean by "chopped". Is the text cut off left/right, or top/bottom? Screenshots of before & after would help use see what you're describing.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.