Home All Groups Group Topic Archive Search About

How to read content from font file?

Author
22 Mar 2006 10:00 PM
Gary
Hi, there,

I need to read the content from a font file. When I double click a font
file, windows will show the content, including the font name, version, and
example characters. What is the API or control used here, and how to get the
same information from font files? Thanks.

Gary

Author
22 Mar 2006 10:09 PM
Karl E. Peterson
Gary wrote:
> I need to read the content from a font file. When I double click a
> font file, windows will show the content, including the font name,
> version, and example characters. What is the API or control used
> here, and how to get the same information from font files? Thanks.

You need to pick 'em apart, bit by bit.  Here's a running start:

  http://vb.mvps.org/samples/FontPre

--
Working without a .NET?
http://classicvb.org/
Author
23 Mar 2006 1:50 AM
Veign
And here is an extended version of Karl's class:
http://www.veign.com/vrc_codeview.asp?type=app&id=142

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


Show quoteHide quote
"Karl E. Peterson" <k***@mvps.org> wrote in message
news:uCFiL1fTGHA.5496@TK2MSFTNGP11.phx.gbl...
> Gary wrote:
>> I need to read the content from a font file. When I double click a
>> font file, windows will show the content, including the font name,
>> version, and example characters. What is the API or control used
>> here, and how to get the same information from font files? Thanks.
>
> You need to pick 'em apart, bit by bit.  Here's a running start:
>
http://vb.mvps.org/samples/FontPre
>
> --
> Working without a .NET?
> http://classicvb.org/
>
>
Author
23 Mar 2006 7:17 PM
Gary
Thanks lot Karl. This is the right place to start my investigation. Since the
existing code is based on vb 6, is there a new version around, such as in
..net or even C#.

Thanks again for your help.


Show quoteHide quote
"Karl E. Peterson" wrote:

> Gary wrote:
> > I need to read the content from a font file. When I double click a
> > font file, windows will show the content, including the font name,
> > version, and example characters. What is the API or control used
> > here, and how to get the same information from font files? Thanks.
>
> You need to pick 'em apart, bit by bit.  Here's a running start:
>
>   http://vb.mvps.org/samples/FontPre
>
> --
> Working without a .NET?
> http://classicvb.org/
>
>
>
Author
29 Mar 2006 7:01 PM
Karl E. Peterson
Gary wrote:
> Thanks lot Karl. This is the right place to start my investigation.
> Since the existing code is based on vb 6, is there a new version
> around, such as in .net or even C#.

I wouldn't know.  Kinda hard to imagine, though.
--
Working without a .NET?
http://classicvb.org/