Thursday 29 May 2014

Get font Family names in your system


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

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



                                                             Home

No comments:

Post a Comment