Skip to main content

Font troubles

  • October 19, 2015
  • 1 reply
  • 0 views

Hi,

I've got some issues using w$font, in Windows:

First of all I accept the standard Font:

ACCEPT VP-MAIN-FONT FROM STANDARD OBJECT "DEFAULT-FONT"

The Font is usually 'MS Sans Serif'

- When I set this font to  14 size, the font is always bold

- I can not define a 9, 11, 13 size, w$font returns a error, but from another application this sizes are available

Can I do something to solve this?

Thanks!

1 reply

Stephen Hjerpe
  • Participating Frequently
  • October 20, 2015

Hi,

I've got some issues using w$font, in Windows:

First of all I accept the standard Font:

ACCEPT VP-MAIN-FONT FROM STANDARD OBJECT "DEFAULT-FONT"

The Font is usually 'MS Sans Serif'

- When I set this font to  14 size, the font is always bold

- I can not define a 9, 11, 13 size, w$font returns a error, but from another application this sizes are available

Can I do something to solve this?

Thanks!

The accept statement and call to w$font are two different things. I'm going to guess that you are using the fonts.def copybook, have you initialized  WFONT-DATA?  Try our showfont.cbl example program.