How to Identify the Current Installed Fonts

Sometimes the font that you specify in your command-line code has been already installed but it is important to call it using the correct name.

If you don't know the correct name for a particular font, use the identify utility to see the list of installed fonts and their names:

identify -list type

Here is the sample output for Windows users:

Path: C:\Program Files\ImageMagick-6.2.5-Q16\type-ghostscript.xml Name Family Style Stretch Weight

AvantGarde-Book

AvantGarde

Normal

Normal

400

AvantGarde-BookOblique

AvantGarde

Oblique

Normal

400

AvantGarde-Demi

AvantGarde

Normal

Normal

600

AvantGarde-DemiOblique

AvantGarde

Oblique

Normal

600

Bookman-Demi

Bookman

Normal

Normal

600

Bookman-Demiltalic

Bookman

Italic

Normal

600

Bookman-Light

Bookman

Normal

Normal

300

Bookman-Lightltalic

Bookman

Italic

Normal

300

Courier

Courier

Normal

Normal

400

Courier-Bold

Courier

Normal

Normal

700

Courier-BoldOblique

Courier

Oblique

Normal

700

Courier-Oblique

Courier

Oblique

Normal

400

Helvetica

Helvetica

Normal

Normal

400

Helvetica-Bold

Helvetica

Normal

Normal

700

Helvetica-BoldOblique

Helvetica

Italic

Normal

700

Helvetica-Narrow

Helvetica Narrow

Normal

Condensed

400

Helvetica-Narrow-Bold

Helvetica Narrow

Normal

Condensed

700

Helvetica-Narrow-BoldOblique

Helvetica Narrow

Oblique

Condensed

700

Helvetica-Narrow-Oblique

Helvetica Narrow

Oblique

Condensed

400

Helvetica-Oblique

Helvetica

Italic

Normal

400

NewCenturySchlbk-Bold New

CenturySchlbk

Normal

Normal

700

NewCenturySchlbk-Boldltalic

NewCenturySchlbk

Italic

Normal

700

NewCenturySchlbk-Italic

wCenturySchlbk

Italic

Normal

400

NewCenturySchlbk-Roman

NewCenturySchlbk

Normal

Normal

400

Palatino-Bold

Palatino

Normal

Normal

700

Palatino-Boldltalic

Palatino

Italic

Normal

700

Palatino-Italic

Palatino

Italic

Normal

400

Palatino-Roman

Palatino

Normal

Normal

400

Times-Bold

Times

Normal

Normal

700

Times-Boldltalic

Times

Italic

Normal

700

Times-Italic

Times

Italic

Normal

400

Times-Roman

Times

Normal

Normal

400

As you can see, in the first part of this command output the default fonts, which are defined during the ImageMagick installation, are listed. We will see how to change this font definition by referring to the type-ghostscript.xml file and editing its contents.

The second part of this command lists the fonts that have been previously installed on your platform. For example, if you are using Windows then your output will look like this:

Path: Windows Fonts

Name Family Style Stretch Weight

02.10-fenotype

02.10 fenotype

Normal

Normal

400

02.10ital-fenotype

02.10ital fenotype

Normal

Normal

400

1942-report

1942 report

Normal

Normal

400

3D-Noise

3D Noise

Normal

Normal

400

4YEOmonstrum

4YEOmonstrum

Normal

Normal

400

7inch-Regular

7inch

Normal

Normal

400

7inch-Rounded

7inch Rounded

Normal

Normal

400

[.atari-kids.]

[.atari-kids.]

Normal

Normal

400

A.C.M.E.-Secret-Agent

A.C.M.E. Secret Agent

Normal

Normal

400

A.M.P.

A.M.P.

Normal

Normal

400

Abaddon™

Abaddon™

Normal

Normal

400

Abduction2 002

Abduction2 002

Normal

Normal

400

AddShade

AddShade

Normal

Normal

400

Aharoni-Bold

Aharoni

Normal

Normal

700

Airstream

Airstream

Normal

Normal

400

Alfredo's-Dance

Alfredo's Dance

Normal

Normal

400

Alien-Encounters

Alien Encounters

Normal

Normal

400

Alien-Encounters-Bold

Alien Encounters

Normal

Normal

700

Alien-Encounters-Bold-

Italic Alien Encounters

Italic

Normal

700

Alien-Encounters-Italic Alien Encounters

Italic

Normal

400

Alpine-7558M

Alpine 7558M

Normal

Normal

400

Amped-For-Evil

Amped For Evil

Normal

Normal

400

Andalus

Andalus

Normal

Normal

400

Angel-Normal

Angel

Normal

Normal

400

Anger-is-a-gift

Anger is a gift

Normal

Normal

400

Anglo-Text

Anglo Text

Normal

Normal

400

Angsana-New

Angsana New

Normal

Normal

400

Angsana-New-Bold

Angsana New

Normal

Normal

700

Angsana-New-Italic

Angsana New

Italic

Normal

400

AngsanaUPC

AngsanaUPC

Normal

Normal

400

AngsanaUPC-Bold

AngsanaUPC

Normal

Normal

700

Argor-Flahm-Scaqh

Argor Flahm Scaqh

Normal

Normal

400

YoungStar

YoungStar

Normal

Normal

400

Zebraesq

Zebraesq

Normal

Normal

400

Zebrra

Zebrra

Normal

Normal

400

Zenda

Zenda

Normal

Normal

400

ZendaEmbossed

ZendaEmbossed

Normal

Normal

400

Zippo

Zippo

Normal

Normal

400

Zoetrope--BRK-

Zoetrope -BRK-

Normal

Normal

400

you can see, in the first column is the font name that

you can use in your

command. The second column represents the font family that particular font belongs to. For example, Angsana-New, Angsana-New-Bold, and Angsana-New-Italic belong to the Angsana New font family.

command. The second column represents the font family that particular font belongs to. For example, Angsana-New, Angsana-New-Bold, and Angsana-New-Italic belong to the Angsana New font family.

Don't use a family name as a font name in your commands or ImageMagick will use the default font.

The third, fourth, and fifth columns are some descriptive information about font style, stretch, and size.

You need to replace every space between words of a font name with a - character. For example, the font anglo text should be referred as anglo-text in ImageMagick:

convert -size 100x100 xc:none -font anglo-text -pointsize 20 -draw "text 20,50 'hello'" hi.jpg ,

Was this article helpful?

+1 0

Post a comment