Jump to content
  • Advertisement
Sign in to follow this  
Calin

[.net] glyph index in C#

This topic is 3967 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a method to get the glyph index of a character in C#? I need a function that is net 2.0 compatible

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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 ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!