[.net] glyph index in C#

Started by
2 comments, last by Niksan2 16 years, 2 months ago
Is there a method to get the glyph index of a character in C#? I need a function that is net 2.0 compatible

My project`s facebook page is “DreamLand Page”

Advertisement
((int) myChar)?
It's not quite the same thing in my understanding. the Glyph index and ascii code aren't the same. I've asked it here http://www.gamedev.net/community/forums/topic.asp?topic_id=481695

My project`s facebook page is “DreamLand Page”

The glpyh is essentially a tile (depending on how you look at it) which is mapped to an ascii index, in thoery an ascii character could share the same glyph with another ascii character, and the glpyh index for each ascii character can change from font to font, if you're wanting to get dimensions you really need to use the same bunch of code/api that you're using to render, say if you're using GDI+ to render and DX to get values there could be some differences, I use freetype for all my font type stuff, but that's because I use the data from freetype to render as well, what are you using to render text ?

This topic is closed to new replies.

Advertisement