Text in Font Files

  • Thread starter Thread starter AlJones
  • Start date Start date
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
 
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
 
Back
Top