Highlighted
Absent Member.
Absent Member.
373 views

[archive] Setting Font to Bold

[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
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: [archive] Setting Font to Bold

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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.