...let's have a look at the output here, completely wrong results after loading the font!
----------
150
10010110
4
*00*0**0
----------
----------
150
10010110
0
10010110
----------
How to repair the following code that it will do the right thing?
Code: Select all
Global zlist.q
Global n
#InternalFont=1
#InternalFontFile="C:\windows\fonts\wingding.ttf"
zlist=16+128+6
Debug "----------"
Debug zlist
Debug Bin(zlist)
n=CountString(Bin(zlist),"1")
Debug n
Debug ReplaceString(Bin(zlist),"1","*")
Debug "----------"
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CompilerIf #InternalFont
Global HuiiFont=AddFontMemResourceEx_(?FontDataStart,?FontDataEnd-?FontDataStart,0,@"1")
DataSection
FontDataStart:
IncludeBinary(#InternalFontFile)
FontDataEnd:
EndDataSection
CompilerEndIf
zlist=16+128+6
Debug "----------"
Debug zlist
Debug Bin(zlist)
n=CountString(Bin(zlist),"1")
Debug n
Debug ReplaceString(Bin(zlist),"1","*")
Debug "----------"