Thursday, 29 May 2014

Get all available fonts in your system


import java.awt.Font;
import java.awt.GraphicsEnvironment;
class GetAllFonts {
 public static void main(String[] a) {
  GraphicsEnvironment ge;
  Font[] fonts;
  
  ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
  fonts= ge.getAllFonts(); 
  
  for (Font f : fonts) {
   System.out.println(f.getFontName());
  }
 }
}

Output
Agency FB
Agency FB Bold
Aharoni Bold
Algerian
Amienne
Amienne Bold
Andalus
Angsana New
Angsana New Bold
Angsana New Bold Italic
Angsana New Italic
AngsanaUPC
AngsanaUPC Bold
AngsanaUPC Bold Italic
AngsanaUPC Italic
Aparajita
Aparajita Bold
Aparajita Bold Italic
Aparajita Italic
Arabic Typesetting
Arial
Arial Black
Arial Bold
Arial Bold Italic
Arial Italic
Arial Narrow
Arial Narrow Bold
Arial Narrow Bold Italic
Arial Narrow Italic
Arial Rounded MT Bold
Arial Unicode MS
Arnprior
Baskerville Old Face
Batang
BatangChe
Bauhaus 93
Baveuse
Bell MT
Bell MT Bold
Bell MT Italic
Berlin Sans FB
Berlin Sans FB Bold
Berlin Sans FB Demi Bold
Bernard MT Condensed
Berylium
Berylium Bold Italic
Biondi Light
Biondi Light
Blackadder ITC
Blue Highway
Blue Highway Bold
Blue Highway Condensed
Blue Highway D Type
Blue Highway Linocut
Bodoni MT
Bodoni MT Black
Bodoni MT Black Italic
Bodoni MT Bold
Bodoni MT Bold Italic
Bodoni MT Condensed
Bodoni MT Condensed Bold
Bodoni MT Condensed Bold Italic
Bodoni MT Condensed Italic
Bodoni MT Italic
Bodoni MT Poster Compressed
Book Antiqua
Book Antiqua Bold
Book Antiqua Bold Italic
Book Antiqua Italic
Bookman Old Style
Bookman Old Style Bold
Bookman Old Style Bold Italic
Bookman Old Style Italic
Boopee
Boopee Bold
Bradley Hand ITC
Britannic Bold
Broadway
Browallia New
Browallia New Bold
Browallia New Bold Italic
Browallia New Italic
BrowalliaUPC
BrowalliaUPC Bold
BrowalliaUPC Bold Italic
BrowalliaUPC Italic
Brush Script MT Italic
Burnstown Dam
Buxton Sketch
Byington
Byington Bold
Byington Italic
Calibri
Calibri Bold
Calibri Bold Italic
Calibri Italic
Californian FB
Californian FB Bold
Californian FB Italic
Calisto MT
Calisto MT Bold
Calisto MT Bold Italic
Calisto MT Italic
Cambria
Cambria Bold
Cambria Bold Italic
Cambria Italic
Cambria Math
Candara
Candara Bold
Candara Bold Italic
Candara Italic
Carbon Block
Castellar
Catriel
Catriel Bold
Catriel Bold Italic
Catriel Italic
Centaur
Century
Century Gothic
Century Gothic Bold
Century Gothic Bold Italic
Century Gothic Italic
Century Schoolbook
Century Schoolbook Bold
Century Schoolbook Bold Italic
Century Schoolbook Italic
Chiller
Colonna MT
Comic Sans MS
Comic Sans MS Bold
Consolas
Consolas Bold
Consolas Bold Italic
Consolas Italic
Constantia
Constantia Bold
Constantia Bold Italic
Constantia Italic
Cooper Black
Copperplate Gothic Bold
Copperplate Gothic Light
Corbel
Corbel Bold
Corbel Bold Italic
Corbel Italic
Cordia New
Cordia New Bold
Cordia New Bold Italic
Cordia New Italic
CordiaUPC
CordiaUPC Bold
CordiaUPC Bold Italic
CordiaUPC Italic
Courier New
Courier New Bold
Courier New Bold Italic
Courier New Italic
Credit Valley
Credit Valley Bold
Credit Valley Bold Italic
Credit Valley Italic
Curlz MT
DFKai-SB
DaunPenh
David
David Bold
Dialog.bold
Dialog.bolditalic
Dialog.italic
Dialog.plain
DialogInput.bold
DialogInput.bolditalic
DialogInput.italic
DialogInput.plain
DilleniaUPC
DilleniaUPC Bold
DilleniaUPC Bold Italic
DilleniaUPC Italic
DokChampa
Dotum
DotumChe
Earwig Factory
Ebrima
Ebrima Bold
Edwardian Script ITC
Elephant
Elephant Italic
Engravers MT
Eras Bold ITC
Eras Demi ITC
Eras Light ITC
Eras Medium ITC
Estrangelo Edessa
EucrosiaUPC
EucrosiaUPC Bold
EucrosiaUPC Bold Italic
EucrosiaUPC Italic
Euphemia
Euphorigenic S
FangSong
Felix Titling
Footlight MT Light
Forte
FrankRuehl
Franklin Gothic Book
Franklin Gothic Book Italic
Franklin Gothic Demi
Franklin Gothic Demi Cond
Franklin Gothic Demi Italic
Franklin Gothic Heavy
Franklin Gothic Heavy Italic
Franklin Gothic Medium
Franklin Gothic Medium Cond
Franklin Gothic Medium Italic
FreesiaUPC
FreesiaUPC Bold
FreesiaUPC Bold Italic
FreesiaUPC Italic
Freestyle Script
French Script MT
Gabriola
Garamond
Garamond Bold
Garamond Italic
Gautami
Gautami Bold
Georgia
Georgia Bold
Georgia Bold Italic
Georgia Italic
Gigi
Gill Sans MT
Gill Sans MT Bold
Gill Sans MT Bold Italic
Gill Sans MT Condensed
Gill Sans MT Ext Condensed Bold
Gill Sans MT Italic
Gill Sans Ultra Bold
Gill Sans Ultra Bold Condensed
Gisha
Gisha Bold
Gloucester MT Extra Condensed
Goudy Old Style
Goudy Old Style Bold
Goudy Old Style Italic
Goudy Stout
Gulim
GulimChe
Gungsuh
GungsuhChe
Haettenschweiler
Harlow Solid Italic
Harrington
Heavy Heap
High Tower Text
High Tower Text Italic
Hurry Up
Huxtable
IBM 8bar Logo
Impact
Imprint MT Shadow
Informal Roman
IrisUPC
IrisUPC Bold
IrisUPC Bold Italic
IrisUPC Italic
Iskoola Pota
IskoolaPota-Bold
JasmineUPC
JasmineUPC Bold
JasmineUPC Bold Italic
JasmineUPC Italic
Jokerman
Juice ITC
KaiTi
Kalinga
Kalinga Bold
Kartika
Kartika Bold
Khmer UI
Khmer UI Bold
KodchiangUPC
KodchiangUPC Bold
KodchiangUPC Bold Italic
KodchiangUPC Italic
Kokila
Kokila Bold
Kokila Bold Italic
Kokila Italic
Kredit
Kristen ITC
Kunstler Script
Lao UI
Lao UI Bold
Latha
Latha Bold
Leelawadee
Leelawadee Bold
Levenim MT
Levenim MT Bold
Lexia Bold
Lexia Bold Italic
Lexia Italic
Lexia Regular
Liberation Mono
Liberation Mono Bold
Liberation Mono Bold Italic
Liberation Mono Italic
Liberation Sans
Liberation Sans Bold
Liberation Sans Bold Italic
Liberation Sans Italic
Liberation Sans Narrow
Liberation Sans Narrow Bold
Liberation Sans Narrow Bold Italic
Liberation Sans Narrow Italic
Liberation Serif
Liberation Serif Bold
Liberation Serif Bold Italic
Liberation Serif Italic
Ligurino
Ligurino Bold
Ligurino Condensed
Ligurino Italic
LilyUPC
LilyUPC Bold
LilyUPC Bold Italic
LilyUPC Italic
Lucida Bright Regular
Lucida Bright Demibold
Lucida Bright Demibold Italic
Lucida Bright Italic
Lucida Bright Regular
Lucida Calligraphy Italic
Lucida Console
Lucida Fax Demibold
Lucida Fax Demibold Italic
Lucida Fax Italic
Lucida Fax Regular
Lucida Handwriting Italic
Lucida Sans Demibold
Lucida Sans Demibold
Lucida Sans Demibold Roman
Lucida Sans Italic
Lucida Sans Regular
Lucida Sans Typewriter Bold
Lucida Sans Typewriter Bold
Lucida Sans Typewriter Oblique
Lucida Sans Typewriter Regular
Lucida Sans Unicode
MS Gothic
MS Mincho
MS PGothic
MS PMincho
MS UI Gothic
MV Boli
Magneto Bold
Maiandra GD
Malgun Gothic
Malgun Gothic Bold
Mangal
Mangal Bold
Marlett
Matura MT Script Capitals
Meiryo
Meiryo Bold
Meiryo Bold Italic
Meiryo Italic
Meiryo UI
Meiryo UI Bold
Meiryo UI Bold Italic
Meiryo UI Italic
MeninBlue
Microsoft Himalaya
Microsoft JhengHei
Microsoft JhengHei Bold
Microsoft New Tai Lue
Microsoft New Tai Lue Bold
Microsoft PhagsPa
Microsoft PhagsPa Bold
Microsoft Sans Serif
Microsoft Tai Le
Microsoft Tai Le Bold
Microsoft Uighur
Microsoft YaHei
Microsoft YaHei Bold
Microsoft Yi Baiti
MingLiU
MingLiU-ExtB
MingLiU_HKSCS
MingLiU_HKSCS-ExtB
Minya Nouvelle
Minya Nouvelle  Bold Italic
Minya Nouvelle Bold
Minya Nouvelle Italic
Miriam
Miriam Fixed
Mistral
Modern No. 20
Mongolian Baiti
Monospaced.bold
Monospaced.bolditalic
Monospaced.italic
Monospaced.plain
Monotype Corsiva
MoolBoran
Mufferaw
NSimSun
Narkisim
Neuropol
Niagara Engraved
Niagara Solid
Nyala
OCR A Extended
Old English Text MT
Onyx
PMingLiU
PMingLiU-ExtB
Palace Script MT
Palatino Linotype
Palatino Linotype Bold
Palatino Linotype Bold Italic
Palatino Linotype Italic
Papyrus
Parchment
Perpetua
Perpetua Bold
Perpetua Bold Italic
Perpetua Italic
Perpetua Titling MT Bold
Perpetua Titling MT Light
Planet Benson 2
Plantagenet Cherokee
Playbill
Poor Richard
Pristina
Pupcat
Raavi
Raavi Bold
Rage Italic
Ravie
Rockwell
Rockwell Bold
Rockwell Bold Italic
Rockwell Condensed
Rockwell Condensed Bold
Rockwell Extra Bold
Rockwell Italic
Rod
Sakkal Majalla
Sakkal Majalla Bold
SansSerif.bold
SansSerif.bolditalic
SansSerif.italic
SansSerif.plain
Script MT Bold
Segoe Marker
Segoe Print
Segoe Print Bold
Segoe Script
Segoe Script Bold
Segoe UI
Segoe UI Bold
Segoe UI Bold Italic
Segoe UI Italic
Segoe UI Light
Segoe UI Semibold
Segoe UI Symbol
Serif.bold
Serif.bolditalic
Serif.italic
Serif.plain
Shonar Bangla
Shonar Bangla Bold
Showcard Gothic
Shruti
Shruti Bold
SimHei
SimSun
SimSun-ExtB
Simplified Arabic
Simplified Arabic Bold
Simplified Arabic Fixed
SketchFlow Print
Snap ITC
Stencil
Stereofidelic
Sybil Green
Sylfaen
Symbol
Tahoma
Tahoma Bold
Tandelle
Tandelle Bold
Tandelle Bold Italic
Tandelle Italic
Teen
Teen Bold
Teen Bold Italic
Teen Italic
Teen Light
Teen Light Italic
Tempus Sans ITC
Times New Roman
Times New Roman Bold
Times New Roman Bold Italic
Times New Roman Italic
Traditional Arabic
Traditional Arabic Bold
Trebuchet MS
Trebuchet MS Bold
Trebuchet MS Bold Italic
Trebuchet MS Italic
Tunga
Tunga Bold
Tw Cen MT
Tw Cen MT Bold
Tw Cen MT Bold Italic
Tw Cen MT Condensed
Tw Cen MT Condensed Bold
Tw Cen MT Condensed Extra Bold
Tw Cen MT Italic
Utsaah
Utsaah Bold
Utsaah Bold Italic
Utsaah Italic
Vani
Vani Bold
Velvenda Cooler
Verdana
Verdana Bold
Verdana Bold Italic
Verdana Italic
Vijaya
Vijaya Bold
Viner Hand ITC
Vivaldi Italic
Vladimir Script
Vrinda
Vrinda Bold
Waker
Webdings
Wide Latin
Wingdings
Wingdings 2
Wingdings 3





                                                             Home

No comments:

Post a Comment