Welcome! Log In Create A New Profile

Advanced

[WD 23] gFontBold, gFontSize problem?

Posted by infos 
[WD 23] gFontBold, gFontSize problem?
July 09, 2025 07:45PM
greetings

In my report the gFontXXX option is not giving the result as it should?
Where is the problem?

Quote
Primjer
STC_Text = "Plain text"+gFontBold(True)+"Bold text"+gFontBold(False)
Attachments:
open | download - Nova bitmapna slika.png (28.1 KB)
Re: [WD 23] gFontBold, gFontSize problem?
July 10, 2025 06:01PM
Hi infos, this looks bad. What version of WinDev is it?

Kind regards,
Guenter Predl
gpredl@syspredl.at
Al
Re: [WD 23] gFontBold, gFontSize problem?
July 11, 2025 12:46AM
Hello Infos,

My tests replicated your issue using WD25.
The only way I could get a good result was to use two statics with one having the caption set to bold in the style on the report.

Another way, I discovered is to create your own fonts with FontCreate() This would still need two separate statics, one for plain and the other to use your custom font


Regards
Al



Edited 1 time(s). Last edit at 07/11/2025 01:00AM by Al.
Re: [WD 23] gFontBold, gFontSize problem?
July 11, 2025 11:38AM
I cant remember if markdown was available in WD23.

If yes, then you can easily do what you want:
STC_Text = "Plain text **Bold text** *Italic text*"
Re: [WD 23] gFontBold, gFontSize problem?
July 11, 2025 04:18PM
WD 23
Re: [WD 23] gFontBold, gFontSize problem?
July 19, 2025 09:05PM
I solved the problem in another way, using RTF control.

Regards
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: