I have a strange problem printing some Unicode characters to a canvas gadget.
The characters I have found so far are
Chr($2370)+Chr($23fb)+Chr($23f5)+Chr($2315)+Chr($29f2)
They render as a hollow box unless I include a "magic" character in the string.
One of the magic characters is Chr($23fa)
Code: Select all
testtxt.s = "*"+Chr($23fb)+Chr($23fa)+Chr($23fb)+Chr($23fb)+"*"
testtxt2.s = "*"+Chr($23fb)+Chr($23fb)+Chr($23fb)+Chr($23fb)+"*"
problemch.s= Chr($2370)+Chr($23fb)+Chr($23f5)+Chr($2315)+Chr($29f2)
If OpenWindow(0, 0, 0, 420, 180, "CanvasGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CanvasGadget(0, 10, 10, 400, 100)
TextGadget(2,0,120,250,40,testtxt+" "+testtxt2+" "+problemch)
LoadFont(1,"Courier New",14)
If StartDrawing(CanvasOutput(0))
DrawingFont(FontID(1))
DrawText(10,50,testtxt)
DrawText(150,50,testtxt2)
DrawText(300,50,problemch+Chr($23fa))
DrawText(300,10,problemch)
StopDrawing()
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
No problems printing to a TextGadget.
Jim