CALL "W$BITMAP" USING WBITMAP-LOAD-SYMBOL-FONT fontHandle charactersSequence imageWidth [color] GIVING bitmapHandle |
WBITMAP-LOAD-SYMBOL-FONT | Constant | |
fontHandle | HANDLE OF 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). |
charactersSequence | Any data item or literal | 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. |
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. |
color | PIC S9(9) | 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. This parameter is optional; if omitted, then the black color is used. |
> 0 | Receives the handle to the bitmap |
0 | An error occurred, probably the font handle is invalid |