Question about assigning font values in source code

Discuss FontCreator here, please do not post support requests, feature requests, or bug reports!
Post Reply
patrickm
Posts: 10
Joined: Mon Mar 09, 2009 6:51 pm

Question about assigning font values in source code

Post 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
Attachments
font32.png
font32.png (20.77 KiB) Viewed 4879 times
Erwin Denissen
Moderator
Moderator
Posts: 11158
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Question about assigning font values in source code

Post 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 4872 times
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply