freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Freetype2 - postscript font name


From: Mika Kuuskankare
Subject: Re: [ft] Freetype2 - postscript font name
Date: Tue, 3 May 2005 16:58:13 +0300


On 3.5.2005, at 06:12, address@hidden wrote:

Hi

On Mon, 2 May 2005 23:33:11 +0300
Mika Kuuskankare <address@hidden> wrote:

I am currently trying out a library called FTGL
(http://homepages.paradise.net.nz/henryj/code/) that uses Freetype2. I
need to implement basic PS printing/saving stuff and I was wondering is there a way to determine the postscript name of a font in freetype2 ? A
quick look through the FTGL source code does not suggest to me that it
(FTGL) would have that knowledge.

For the first step, please check dump in ft2demos tarball
(ft2demos-XXX/src/ftdump.c), it can read and print the
PostScript font name from TrueType font.

But, you should keep following 2 points in mind:

(1) FreeType2 covers various font format, and the font format which
    has its PostScript name is very limited (the examples I know are
    only PostScript, TrueType). FreeType2 does not synthesize PS name
    for the font format missing PS name.

(2) Usually, PS name in PS & TrueType font is not suitable to use font
    name for printing. For example, when you install ghostscript fonts
    in your system, PS fonts "Nimbus Mono" family are used to display
    "Courier". The name taken from the font file will be "Nimbus",
    although you want to use the name of "Courier" for PS printer or
    common-used PS file. At present, I have no idea to map/convert
    the fontname for system-internal use & data-exchanging use.

Regards,
mpsuzuki




Usually, PS name in PS & TrueType font is not suitable to use font
 name for printing.

I was under the impression that PS drivers read this information from the font file.

font format which
has its PostScript name is very limited (the examples I know are
only PostScript, TrueType)

I would be happy with TT fonts :-)

For the first step, please check dump in ft2demos tarball
(ft2demos-XXX/src/ftdump.c),

Great, I got it working, however, it sometimes cannot determine the PS name even if the font is of type ttf... For example, the Font Book of OS X displays the PS name but ftdump.c does not. :-(


But, your advice was of great help for me, thanks!

Regards,

Mika





reply via email to

[Prev in Thread] Current Thread [Next in Thread]