CALL "W$BITMAP" USING WBITMAP-LOAD-SYMBOL-FONT-EX imageWidth WBITMAP-LSF-DATA GIVING bitmapHandle |
WBITMAP-LOAD-SYMBOL-FONT-EX | Constant | |
imageWidth | PIC 9(n) | Specifies the width in pixels of the bitmap frame. The function generates a frame for each character in the characters sequence and then combines all the frames into a bitmap strip. Regardless of the font size, characters will be resized to fit the width specified by this parameter. |
WBITMAP-LSF-DATA | Group Item | Structure that hosts the information. This group item, defined in isgui.def, has the following structure: 01 wbitmap-lsf-data. 03 wbitmap-lsf-element occurs dynamic. 05 wbitmap-lsf-font handle of font. 05 wbitmap-lsf-characters pic n any length. 05 wbitmap-lsf-color pic s9(10). wbitmap-lsf-font An handle of font as returned by the W$FONT routine or one of the internal fonts available in the runtime (e.g. SMALL-FONT). wbitmap-lsf-characters Specifies the list of characters that will be included in the bitmap strip. Use a national data item or literal if the font requires Unicode representation of the characters. wbitmap-lsf-color Specifies the color of the characters. A negative value is treated as RGB color while a positive value is treated as COBOL color. See Color management for more information. If not set, then the black color is used. |
> 0 | Receives the handle to the bitmap |
0 | An error occurred, probably the font handle is invalid |