I'm looking some source code in C to read TTF Files and print it.
--
Mario

Re: TTF Files by Tim

Tim
Thu Oct 12 00:08:21 CDT 2006

Mario <Mario@discussions.microsoft.com> wrote:
>
>I'm looking some source code in C to read TTF Files and print it.

Print what? There are several good tools and sample applications on the
web for reading and printing the tables in a TrueType file.

Even Microsoft supplies some:
http://www.microsoft.com/typography/tools/tools.htm

However, there are no bitmaps in a TTF font file. If you're hoping to
print font samples, use the normal GDI APIs.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Re: TTF Files by Mario

Mario
Thu Oct 12 04:13:02 CDT 2006

Our company makes printers and right now we need to create bitmaps for the
fonts. We would like to use a TTF file instead. So in our printer's
firmware we need to read a TTF File to get the font and use is to print on
our printer. That's why we need some source code to read TTF files.
--
Mario


"Tim Roberts" wrote:

> Mario <Mario@discussions.microsoft.com> wrote:
> >
> >I'm looking some source code in C to read TTF Files and print it.
>
> Print what? There are several good tools and sample applications on the
> web for reading and printing the tables in a TrueType file.
>
> Even Microsoft supplies some:
> http://www.microsoft.com/typography/tools/tools.htm
>
> However, there are no bitmaps in a TTF font file. If you're hoping to
> print font samples, use the normal GDI APIs.
> --
> - Tim Roberts, timr@probo.com
> Providenza & Boekelheide, Inc.
>

Re: TTF Files by Tim

Tim
Fri Oct 13 23:50:36 CDT 2006

Mario <Mario@discussions.microsoft.com> wrote:
>
>Our company makes printers and right now we need to create bitmaps for the
>fonts. We would like to use a TTF file instead. So in our printer's
>firmware we need to read a TTF File to get the font and use is to print on
>our printer. That's why we need some source code to read TTF files.

Well, as I said, TTF files do not contain bitmaps. A TrueType glyph is
just a set of lines and quadratic Bezier curves.

How is your printer going to get the TTF files?

The host CPU is probably 10 times faster than then processor in your
printer. You would be better off to let GDI render the glyphs and send
them to your printer as bitmaps.

There are several open source TrueType renderers, if you insist on
continuing with this.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.