Skip to main content

[archive] Setting Font to Bold

  • May 29, 2009
  • 3 replies
  • 1 view

[Migrated content. Thread originally posted on 28 May 2009]

Hello
Using the Winspool sample program as an example, when I choose Courier 10 compressed as a font is there a way to set it to Bold also?

Thanks

3 replies

[Migrated content. Thread originally posted on 28 May 2009]

Hello
Using the Winspool sample program as an example, when I choose Courier 10 compressed as a font is there a way to set it to Bold also?

Thanks
Yes you can, but you cannot use the std font for this.

In this case you will have to load the font specifically using w$font.

If you look in your sample folder, you should see a file named graphprn.cbl, which among other things illustrates how to load fonts.

To set bold typeface (provided the font support it), just before the call to WFONT-GET-FONT (or WFONT-GET-CLOSEST-FONT), insert the following:

SET WFONT-BOLD TO TRUE.

[Migrated content. Thread originally posted on 28 May 2009]

Hello
Using the Winspool sample program as an example, when I choose Courier 10 compressed as a font is there a way to set it to Bold also?

Thanks
Yes you can, but you cannot use the std font for this.

In this case you will have to load the font specifically using w$font.

If you look in your sample folder, you should see a file named graphprn.cbl, which among other things illustrates how to load fonts.

To set bold typeface (provided the font support it), just before the call to WFONT-GET-FONT (or WFONT-GET-CLOSEST-FONT), insert the following:

SET WFONT-BOLD TO TRUE.

[Migrated content. Thread originally posted on 28 May 2009]

Hello
Using the Winspool sample program as an example, when I choose Courier 10 compressed as a font is there a way to set it to Bold also?

Thanks
Yes you can, but you cannot use the std font for this.

In this case you will have to load the font specifically using w$font.

If you look in your sample folder, you should see a file named graphprn.cbl, which among other things illustrates how to load fonts.

To set bold typeface (provided the font support it), just before the call to WFONT-GET-FONT (or WFONT-GET-CLOSEST-FONT), insert the following:

SET WFONT-BOLD TO TRUE.