[PLUG] Mapping Type 1 file names to font names

Daniel Hedlund daniel at digitree.org
Thu Jun 9 14:38:16 PDT 2011

On Thu, Jun 9, 2011 at 11:22, Rich Shepard <rshepard at appl-ecosys.com> wrote:
>   In /usr/share/fonts/Type1/ is a list of Adobe file names. I would like to
> associate each file name with a font name but I've not used a Goggle search
> term that works. If someone knows how to word the search term to find this
> information please share your knowledge with me.

Is there is a "fonts.dir" file in your Type1/ dir?

$> cat fonts.dir
UTBI____.pfa -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso10646-1
UTBI____.pfa -adobe-utopia-bold-i-normal--0-0-0-0-p-0-iso8859-1
UTB_____.pfa -adobe-utopia-bold-r-normal--0-0-0-0-p-0-iso10646-1
UTB_____.pfa -adobe-utopia-bold-r-normal--0-0-0-0-p-0-iso8859-1
UTI_____.pfa -adobe-utopia-medium-i-normal--0-0-0-0-p-0-iso10646-1
UTI_____.pfa -adobe-utopia-medium-i-normal--0-0-0-0-p-0-iso8859-1
UTRG____.pfa -adobe-utopia-medium-r-normal--0-0-0-0-p-0-iso10646-1
UTRG____.pfa -adobe-utopia-medium-r-normal--0-0-0-0-p-0-iso8859-1
c0419bt_.pfb -bitstream-courier 10 pitch-medium-r-normal--0-0-0-0-m-0-iso10646-1
c0419bt_.pfb -bitstream-courier 10 pitch-medium-r-normal--0-0-0-0-m-0-iso8859-1
c0582bt_.pfb -bitstream-courier 10 pitch-medium-i-normal--0-0-0-0-m-0-iso10646-1
c0582bt_.pfb -bitstream-courier 10 pitch-medium-i-normal--0-0-0-0-m-0-iso8859-1
c0583bt_.pfb -bitstream-courier 10 pitch-bold-r-normal--0-0-0-0-m-0-iso10646-1
c0583bt_.pfb -bitstream-courier 10 pitch-bold-r-normal--0-0-0-0-m-0-iso8859-1
c0611bt_.pfb -bitstream-courier 10 pitch-bold-i-normal--0-0-0-0-m-0-iso10646-1
c0611bt_.pfb -bitstream-courier 10 pitch-bold-i-normal--0-0-0-0-m-0-iso8859-1
c0632bt_.pfb -bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-iso10646-1
c0632bt_.pfb -bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-iso8859-1
c0633bt_.pfb -bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-iso10646-1
c0633bt_.pfb -bitstream-bitstream charter-bold-i-normal--0-0-0-0-p-0-iso8859-1
c0648bt_.pfb -bitstream-bitstream
c0648bt_.pfb -bitstream-bitstream charter-medium-r-normal--0-0-0-0-p-0-iso8859-1
c0649bt_.pfb -bitstream-bitstream
c0649bt_.pfb -bitstream-bitstream charter-medium-i-normal--0-0-0-0-p-0-iso8859-1
cursor.pfa -xfree86-cursor-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific

If you don't have that file, it appears you can also run the strings
command against the .pfa and .pfb files, which reveals some meta data
toward the start of each font:

$> strings c0633bt_.pfb | less

%%CreationDate: Sat Nov  3 22:38:14 1990
% Bitstream Type 1 Font Program
% Copyright 1990 as an unpublished work by Bitstream Inc., Cambridge, MA.
% All rights reserved.
% Confidential and proprietary to Bitstream Inc.
% This software typeface product is provided with RESTRICTED RIGHTS. Use,
% duplication or disclosure by the Government is subject to restrictions
% as set forth in the license agreement and in FAR 52.227-19 (c) (2)
(May, 1987),
% when applicable, or the applicable provisions of the DOD FAR supplement
% 252.227-7013 subdivision (a) (15) (April, 1988) or subdivision (a) (17)
% (April, 1988).  Contractor/manufacturer is Bitstream Inc.,
% 215 First Street, Cambridge, MA 02142.
% Bitstream is a registered trademark of Bitstream Inc.
11 dict begin
/FontInfo 9 dict dup begin
  /version (2.0-1.0) readonly def
  /Notice (Copyright 1990 as an unpublished work by Bitstream Inc.
All rights reserved.  Confidential.) readonly def
  /FullName (Bitstream Charter Bold Italic) readonly def
  /FamilyName (Bitstream Charter) readonly def
  /Weight (Bold) readonly def
  /ItalicAngle  11.0000 def
  /isFixedPitch false def
  /UnderlinePosition -109 def
  /UnderlineThickness 90 def
end readonly def
/FontName /CharterBT-BoldItalic def
/PaintType 0 def
/FontType 1 def
/FontMatrix [0.001 0 0 0.001 0 0] readonly def
/Encoding StandardEncoding def
/FontBBox {-190 -236 1243 971} readonly def
/UniqueID 15530633 def
currentdict end
currentfile eexec

Hope that helps.


Daniel Hedlund
daniel at digitree.org

More information about the PLUG mailing list