or a PB problem.
Windows X64 24H2 build 26120.6972
PB 6.21 x64
The following minimal code used to work some months ago,
but no longer does.
I suspect it's a Windows problem, rather than a PB one.
I still mention it here, just in case...
Code: Select all
; Wingdings Font not displaying
; a Windows problem or a PB problem ?
EnableExplicit
Define font_wd = LoadFont(0, "WingDings", 16, #PB_Font_Bold)
Define font_se = LoadFont(1, "Segoe UI", 8)
Define txt$ = "1 élève "
OpenWindow(0,0,0,400,200,"WINGDINGS Font",#PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Define gi, gY, gH
gY = 10
gH = 25
gi = 0 ; gadget number
ButtonGadget(gi,10,gY,120,gH,txt$ + gi)
SetGadgetFont(gi,font_se) ; works as expected
gi + 1
gY + gH
ButtonGadget(gi,10,gY,120,gH,txt$ + gi)
SetGadgetFont(gi,font_wd) ; does not work
gi + 1
gY + gH
TextGadget(gi,10,gY,120,gH,txt$ + gi)
SetGadgetFont(gi,font_se) ; works as expected
gi + 1
gY + gH
TextGadget(gi,10,gY,120,gH,txt$ + gi)
SetGadgetFont(gi,font_wd) ; does not work
While WaitWindowEvent() ! #PB_Event_CloseWindow : Wend
