Page 1 of 1

Question about assigning font values in source code

Posted: Mon Oct 17, 2022 6:49 pm
by patrickm
I am an owner of Font Creator Version 14.0.0.2883 (64-bit). I have created .otf font of astrology glyphs.

I write software and I am setting the font value into a string using code. In the code below I assign the number 41 to a sting named NeptuneGlyph. Then I write the string to the screen using the function, Canvas->TextOut.

NeptuneGlyph[0]=41;
Canvas->TextOut(X, Y, NeptuneGlyph );

My question is where does the number 41 come from? I have attached a picture of Font Creator showing the font value when it is selected. I listed values from Font Creator below. I don't see any value 41.

Name = Neptune
Code-points = $29
parenright - Right parenthesis
OT Class = Automatic
LSB = 160
RSB = 269
AW = 1726
Tag = No Tag

Re: Question about assigning font values in source code

Posted: Mon Oct 17, 2022 7:14 pm
by Erwin Denissen
Hexadecimal 29 equals 41 in a decimal notation.

You can choose the way code-points are formatted through this option:
CodePoint.png
CodePoint.png (36.38 KiB) Viewed 6233 times