Schriftarten

krgewb

krgewb

Top Contributor
Ich habe folgendes Programm:
Java:
import java.awt.GraphicsEnvironment;

public class Main {
	public static void main(String arg[]) throws Exception {

		GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
		String[] fonts = ge.getAvailableFontFamilyNames();

		for (int i = 0; i < fonts.length; ++i) {
			System.out.println(fonts[i]);
		}
	}
}

Wenn ich es auf Windows 10 ausführe, wird folgendes ausgegeben:
Code:
Agency FB
Alef
Algerian
Amiri
Amiri Quran
Arial
Arial Black
Arial Narrow
Arial Rounded MT Bold
Bahnschrift
Baskerville Old Face
Bauhaus 93
Bell MT
Berlin Sans FB
Berlin Sans FB Demi
Bernard MT Condensed
Blackadder ITC
Bodoni MT
Bodoni MT Black
Bodoni MT Condensed
Bodoni MT Poster Compressed
Book Antiqua
Bookman Old Style
Bookshelf Symbol 7
Bradley Hand ITC
Britannic Bold
Broadway
Brush Script MT
Caladea
Calibri
Calibri Light
Californian FB
Calisto MT
Cambria
Cambria Math
Candara
Candara Light
Carlito
Castellar
Centaur
Century
Century Gothic
Century Schoolbook
Chiller
Colonna MT
Comic Sans MS
Consolas
Constantia
Cooper Black
Copperplate Gothic Bold
Copperplate Gothic Light
Corbel
Corbel Light
Courier New
Curlz MT
David CLM
David Libre
DejaVu Math TeX Gyre
DejaVu Sans
DejaVu Sans Condensed
DejaVu Sans Light
DejaVu Sans Mono
DejaVu Serif
DejaVu Serif Condensed
Dialog
DialogInput
Dubai
Dubai Light
Dubai Medium
Ebrima
Edwardian Script ITC
Elephant
EmojiOne Color
Engravers MT
Eras Bold ITC
Eras Demi ITC
Eras Light ITC
Eras Medium ITC
Felix Titling
Footlight MT Light
Forte
Frank Ruehl CLM
Frank Ruhl Hofshi
Franklin Gothic Book
Franklin Gothic Demi
Franklin Gothic Demi Cond
Franklin Gothic Heavy
Franklin Gothic Medium
Franklin Gothic Medium Cond
Freestyle Script
French Script MT
Gabriola
Gadugi
Garamond
Gentium Basic
Gentium Book Basic
Georgia
Gigi
Gill Sans MT
Gill Sans MT Condensed
Gill Sans MT Ext Condensed Bold
Gill Sans Ultra Bold
Gill Sans Ultra Bold Condensed
Gloucester MT Extra Condensed
Goudy Old Style
Goudy Stout
Haettenschweiler
Harlow Solid Italic
Harrington
High Tower Text
HoloLens MDL2 Assets
Impact
Imprint MT Shadow
Informal Roman
Ink Free
Javanese Text
Jokerman
Juice ITC
KacstBook
KacstOffice
Kristen ITC
Kunstler Script
Leelawadee UI
Leelawadee UI Semilight
Liberation Mono
Liberation Sans
Liberation Sans Narrow
Liberation Serif
Linux Biolinum G
Linux Libertine Display G
Linux Libertine G
Lucida Bright
Lucida Calligraphy
Lucida Console
Lucida Fax
Lucida Handwriting
Lucida Sans
Lucida Sans Typewriter
Lucida Sans Unicode
Magneto
Maiandra GD
Malgun Gothic
Malgun Gothic Semilight
Marlett
Matura MT Script Capitals
Microsoft Himalaya
Microsoft JhengHei
Microsoft JhengHei Light
Microsoft JhengHei UI
Microsoft JhengHei UI Light
Microsoft New Tai Lue
Microsoft PhagsPa
Microsoft Sans Serif
Microsoft Tai Le
Microsoft YaHei
Microsoft YaHei Light
Microsoft YaHei UI
Microsoft YaHei UI Light
Microsoft Yi Baiti
MingLiU-ExtB
MingLiU_HKSCS-ExtB
Miriam CLM
Miriam Libre
Miriam Mono CLM
Mistral
Modern No. 20
Mongolian Baiti
Monospaced
Monotype Corsiva
MS Gothic
MS Outlook
MS PGothic
MS Reference Sans Serif
MS Reference Specialty
MS UI Gothic
MT Extra
MV Boli
Myanmar Text
Nachlieli CLM
Niagara Engraved
Niagara Solid
Nirmala UI
Nirmala UI Semilight
Noto Kufi Arabic
Noto Mono
Noto Naskh Arabic
Noto Naskh Arabic UI
Noto Sans
Noto Sans Arabic
Noto Sans Arabic UI
Noto Sans Armenian
Noto Sans Cond
Noto Sans Georgian
Noto Sans Hebrew
Noto Sans Lao
Noto Sans Light
Noto Sans Lisu
Noto Serif
Noto Serif Armenian
Noto Serif Cond
Noto Serif Georgian
Noto Serif Hebrew
Noto Serif Lao
Noto Serif Light
NSimSun
OCR A Extended
Old English Text MT
Onyx
OpenSymbol
Palace Script MT
Palatino Linotype
Papyrus
Parchment
Perpetua
Perpetua Titling MT
Playbill
PMingLiU-ExtB
Poor Richard
Pristina
Rage Italic
Ravie
Reem Kufi
Rockwell
Rockwell Condensed
Rockwell Extra Bold
Rubik
SansSerif
Scheherazade
Script MT Bold
Segoe MDL2 Assets
Segoe Print
Segoe Script
Segoe UI
Segoe UI Black
Segoe UI Emoji
Segoe UI Historic
Segoe UI Light
Segoe UI Semibold
Segoe UI Semilight
Segoe UI Symbol
Serif
Showcard Gothic
SimSun
SimSun-ExtB
Sitka Banner
Sitka Display
Sitka Heading
Sitka Small
Sitka Subheading
Sitka Text
Snap ITC
Source Code Pro
Source Code Pro Black
Source Code Pro ExtraLight
Source Code Pro Light
Source Code Pro Medium
Source Code Pro Semibold
Source Sans Pro
Source Sans Pro Black
Source Sans Pro ExtraLight
Source Sans Pro Light
Source Sans Pro Semibold
Source Serif Pro
Source Serif Pro Black
Source Serif Pro ExtraLight
Source Serif Pro Light
Source Serif Pro Semibold
Stencil
Sylfaen
Symbol
Tahoma
Tempus Sans ITC
Times New Roman
Trebuchet MS
Tw Cen MT
Tw Cen MT Condensed
Tw Cen MT Condensed Extra Bold
Verdana
Viner Hand ITC
Vivaldi
Vladimir Script
Webdings
Wide Latin
Wingdings
Wingdings 2
Wingdings 3
Yu Gothic
Yu Gothic Light
Yu Gothic Medium
Yu Gothic UI
Yu Gothic UI Light
Yu Gothic UI Semibold
Yu Gothic UI Semilight

Aber was wird unter Linux ausgegeben?
 
mrBrown

mrBrown

Super-Moderator
Mitarbeiter
Das hängt u.a. davon ab, was der Nutzer für Schriftarten installiert hat. Die "eine" Ausgabe gibts dabei nicht.
 
Thallius

Thallius

Top Contributor
Wenn du unbedingt eine eigene schriftart benutzen willst, dann solltest du sie mit ausliefern. Generell würde ich aber davon aber abraten, da ich damit den User bevormunde. Schließlich sucht sich jeder selber aus wie er sein Layout gerne hätte
 

Ähnliche Java Themen

Anzeige

Neue Themen


Oben