[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Coping a face into file from stream
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Coping a face into file from stream |
Date: |
Wed, 21 Feb 2007 06:52:39 +0100 (CET) |
> I would like copy only a font face of true type file from file to
> memory or other file. For example, this case
>
> 1. I have a font arial.ttf
> 2. This file have two face fonts
> 3. I Open arial.ttf with freetype API and I have FT_Face primitive
> for handle this font
> 4. Copy for example the face index 0 or 1 or both in memory or in a
> other file
>
> I need this feature for embbed font file in a PDF file format.
FreeType is not suited for this operation, I think. You are loosing
too much information from the font since FreeType only extracts the
data it really needs. Instead, I suggest that you try something like
libxpdf, part of xpdf (as used e.g. within TeXLive).
Werner