Text in Font Files

A

AlJones

Okay, I've been here before - and still have a problem I can't work out.

When I read a piece of the font file, a variable length string, for example
the designer or the copyright, it may contain ascii text, unicode
characters, or extended characters (Chinese, for example).

Does anyone have or know of a way to:
1) determine the type of character data containted in the string?
2) convert it to unicode if it's cconvertable?

Hope that's seld explanatory, if not ask and I'll give code / examples.

//al
 
P

PvdG42

AlJones said:
Okay, I've been here before - and still have a problem I can't work out.

When I read a piece of the font file, a variable length string, for
example
the designer or the copyright, it may contain ascii text, unicode
characters, or extended characters (Chinese, for example).

Does anyone have or know of a way to:
1) determine the type of character data containted in the string?
2) convert it to unicode if it's cconvertable?

Hope that's seld explanatory, if not ask and I'll give code / examples.

//al

As you've implied a .NET context, thus System.String, the following may be
helpful to you:

http://blogs.msdn.com/michkap/archive/2005/05/14/417384.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top