Re: Help with fonts

New Message Reply Date view Thread view Subject view Author view

Ivan Bach (ib++at++ivan.engr.sgi.com)
Thu, 27 Jul 1995 07:36:14 -0700


Stephanie Sroczyk writes:
> But gl can only read bit map fonts (as far as I can see).
IRIS GL has a default bitmap font (see the man page for 'defrasterfont'),
and it has functions 'defrasterfont' and 'deflfont' that allow you to
specify additional bitmap fonts.
  
IRIS GL (libgl.so) does not support the reading and creating of outline
fonts, but it can be used to draw vector approximations of character outlines
and exact character outlines if you have all the information needed to draw
character outlines.

The IRIS GL Font Manager (libfm.so) can use bitmap fonts, outline fonts, or
both for a given typeface. Outline fonts have to be in the ASCII Adobe
Type 1 format. In a future release of IRIX, libfm may also support large
outline fonts in the Adobe CID-keyed format.

If VAPS can be used to prepare an outline font in the Type 1 font format,
you may be able to use it in a program that is linked with both libgl.so and
libfm.so. Your font should look like the Adobe Type 1 fonts stored in the
directory:

    /usr/lib/DPS/outline/base

The entry FontType must say:

    /FontType 1 def

For more information about the Adobe Type 1 font format, please read the
book "Adobe Type 1 Font Format," Adobe Systems Inc., Addison-Wesley
Publishing Company, Inc., 1990, ISBN 0-201-57044-0.

Designing a Type 1 font is not trivial. You may want to just purchase a
Type 1 font that contains the characters you need from a reputable font
foundry.

X, DPS, IRIS GL Font Manager, and Impressario are all able to rasterize
outline fonts, and produce bitmap fonts in specified sizes.

For information about the adding of bitmap and outline fonts to X, DPS, and
libfm, please read the Chapter "Working with Fonts" in the InSight on-line
book "Topics in IRIX Programming" in IRIX 5.3 and higher.

If you create a Type 3 PS font, you will not be able to use it with libfm.
You may be able to use it with Impressario (SGI Print Manager) and Display
PostScript.

Ivan Bach, ib++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:42 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.