07-10-2023, 01:29 AM
(07-09-2023, 03:48 PM)TempodiBasic Wrote:(07-09-2023, 04:22 AM)PhilOfPerth Wrote: I'm able to see characters for all the Alt values, but I'm unable to produce the Copyright (and some others). The Alt table says it should be Alt 0169,The answer is in your same question! Being clearer, QB64pe is a QB45 clone, it is standing on ASCII table, while the forum page is a webpage that uses Unicode Table.
but Alt + 0169 only produces the ┌ symbol (or something very similar).
When I enter Alt + 0169 here, on the Forum, I get the © ok. Why not in my program?
So 0169 in ASCII (0- 255) is equal to 169 and in the ASCII table of the IDE and of the compiler is this character ┌
while 0169 in Unicode table (0196 = 00A9) is the copyright simbol ©
Now I do the eco of Space_ghost, SagarS and RhoSigma
you can use ASCII Table external characters by using _MapUnicode to substitute an unused character with that we need.
I learnt this tip from the community when I wanted to localize to my language the input/output of keywords of QB64.
please think how is in trouble the hangman game when I must guess "papà" and not "papa" (Dad and not the Pope) without "à" in input/output.
Thanks TempodiBasic; I get it now (almost)!
With the info you gave me, I was able to write the small snippet below, and this produces the Copyright and RegisteredTM symbols,
and any others I need from the Unicode table.
It seems I need to set the font specifically first - in my case to a Monospace font. Is this correct? I thought the default font would have worked.
Code: (Select All)
Screen 9
f& = _LoadFont("C:\WINDOWS\fonts\courbd.ttf", 32, "monospace")
_Font f& '
Dim CopyRt As Long, RegTM As Long
CopyRt = 169: RegTM = 174
_MapUnicode CopyRt To 199: _MapUnicode RegTM To 200
Print Chr$(199), Chr$(200)
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.)
Please visit my Website at: http://oldendayskids.blogspot.com/
Please visit my Website at: http://oldendayskids.blogspot.com/