This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes fonts and linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "fonts and linux" Watch "fonts and linux" New topic
Author

fonts and linux

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello
i want to change my fonts used by my java application running on a was5
server
on a linux box (via an xml file).
I want to use times new roman. In my test env (wsad, windows) it works
fine,
but in linux I have only seriff.
I put times.ttf timesi.ttf, etc.. in /install_root/java/jre/lib/fonts/
and changed fonts.properties:
"serif.0=Times New Roman
serif.1=-jdk-lucidabright-medium-r-normal--*-%d-75-75-p-*-iso8859-15
serif.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microsoft-symb
ol
serif.italic.0=Times New Roman Italic
serif.italic.1=-jdk-lucidabright-medium-i-normal--*-%d-75-75-p-*-iso8859-15
serif.italic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microso
ft-symbol
serif.bold.0=Times New Roman Bold
serif.bold.1=-jdk-lucidabright-bold-r-normal--*-%d-75-75-p-*-iso8859-15
serif.bold.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microsoft
-symbol
serif.bolditalic.0=Times New Roman Bold Italic
serif.bolditalic.1
=-jdk-lucidabright-bold-i-normal--*-%d-75-75-p-*-iso8859-15
serif.bolditalic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-mic
rosoft-symbol
sansserif.0=-jdk-lucida-medium-r-normal--*-%d-75-75-p-*-iso8859-1
sansserif.1=-jdk-lucida-medium-r-normal--*-%d-75-75-p-*-iso8859-15
sansserif.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microsoft-
symbol
sansserif.italic.0=-jdk-lucida-medium-i-normal--*-%d-75-75-p-*-iso8859-1
sansserif.italic.1=-jdk-lucida-medium-i-normal--*-%d-75-75-p-*-iso8859-15
sansserif.italic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-mic
rosoft-symbol
sansserif.bold.0=-jdk-lucida-bold-r-normal--*-%d-75-75-p-*-iso8859-1
sansserif.bold.1=-jdk-lucida-bold-r-normal--*-%d-75-75-p-*-iso8859-15
sansserif.bold.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-micro
soft-symbol
sansserif.bolditalic.0=-jdk-lucida-bold-i-normal--*-%d-75-75-p-*-iso8859-1
sansserif.bolditalic.1=-jdk-lucida-bold-i-normal--*-%d-75-75-p-*-iso8859-15
sansserif.bolditalic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*
-microsoft-symbol
monospaced.0
=-jdk-lucidatypewriter-medium-r-normal--*-%d-75-75-m-*-iso8859-1
monospaced.1
=-jdk-lucidatypewriter-medium-r-normal--*-%d-75-75-m-*-iso8859-15
monospaced.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-microsoft-symb
ol
monospaced.italic.0
=-jdk-lucidatypewriter-medium-i-normal--*-%d-75-75-m-*-iso885
9-1
monospaced.italic.1
=-jdk-lucidatypewriter-medium-i-normal--*-%d-75-75-m-*-iso885
9-15
monospaced.italic.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-microso
ft-symbol
monospaced.bold.0
=-jdk-lucidatypewriter-bold-r-normal--*-%d-75-75-m-*-iso8859-1
monospaced.bold.1
=-jdk-lucidatypewriter-bold-r-normal--*-%d-75-75-m-*-iso8859-15
monospaced.bold.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-microsoft
-symbol
monospaced.bolditalic.0
=-jdk-lucidatypewriter-bold-i-normal--*-%d-75-75-m-*-iso8
859-1
monospaced.bolditalic.1
=-jdk-lucidatypewriter-bold-i-normal--*-%d-75-75-m-*-iso8
859-15
monospaced.bolditalic.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-mic
rosoft-symbol
dialog.0=-jdk-lucida-medium-r-normal--*-%d-75-75-p-*-iso8859-1
dialog.1=-jdk-lucida-medium-r-normal--*-%d-75-75-p-*-iso8859-15
dialog.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microsoft-sym
bol
dialog.italic.0=-jdk-lucida-medium-i-normal--*-%d-75-75-p-*-iso8859-1
dialog.italic.1=-jdk-lucida-medium-i-normal--*-%d-75-75-p-*-iso8859-15
dialog.italic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-micros
oft-symbol
dialog.bold.0=-jdk-lucida-bold-r-normal--*-%d-75-75-p-*-iso8859-1
dialog.bold.1=-jdk-lucida-bold-r-normal--*-%d-75-75-p-*-iso8859-15
dialog.bold.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-microsof
t-symbol
dialog.bolditalic.0=-jdk-lucida-bold-i-normal--*-%d-75-75-p-*-iso8859-1
dialog.bolditalic.1=-jdk-lucida-bold-i-normal--*-%d-75-75-p-*-iso8859-15
dialog.bolditalic.2
=-monotype-timesnewromanwt-medium-r-normal--*-%d-75-75-p-*-mi
crosoft-symbol
dialoginput.0
=-jdk-lucidatypewriter-medium-r-normal--*-%d-75-75-m-*-iso8859-1
dialoginput.1
=-jdk-lucidatypewriter-medium-r-normal--*-%d-75-75-m-*-iso8859-15
dialoginput.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-microsoft-sym
bol
dialoginput.italic.0
=-jdk-lucidatypewriter-medium-i-normal--*-%d-75-75-m-*-iso88
59-1
dialoginput.italic.1
=-jdk-lucidatypewriter-medium-i-normal--*-%d-75-75-m-*-iso88
59-15
dialoginput.italic.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-micros
oft-symbol
dialoginput.bold.0
=-jdk-lucidatypewriter-bold-r-normal--*-%d-75-75-m-*-iso8859-1
dialoginput.bold.1
=-jdk-lucidatypewriter-bold-r-normal--*-%d-75-75-m-*-iso8859-1
5
dialoginput.bold.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-microsof
t-symbol
dialoginput.bolditalic.0
=-jdk-lucidatypewriter-bold-i-normal--*-%d-75-75-m-*-iso
8859-1
dialoginput.bolditalic.1
=-jdk-lucidatypewriter-bold-i-normal--*-%d-75-75-m-*-iso
8859-15
dialoginput.bolditalic.2
=-monotype-sansmonowt-medium-r-normal--*-%d-75-75-m-*-mi
crosoft-symbol

#
# To enable helvetica, courier and timesroman as real fonts
# remove aliases, and define them as real terminal fonts.
# (i.e. timesroman.0=TimesRoman)
#
#timesroman.0=TimesRoman
#timesroman.bold.0=TimesRomanBold
#timesromn.italic.0=TimesRomanItalic
#timesroman.bolditalic.0=TimesRomanBoldItalic

alias.timesroman=serif
# helvetica.0=Helvetica
alias.helvetica=sansserif
# courier.0=Courier
alias.courier=monospaced
# font filenames
filename.lucida_bold_i=LucidaSansDemiOblique.ttf
filename.lucida_bold_r=LucidaSansDemiBold.ttf
filename.lucida_medium_i=LucidaSansOblique.ttf
filename.lucida_medium_r=LucidaSansRegular.ttf
filename.lucidabright_bold_i=LucidaBrightDemiItalic.ttf
filename.lucidabright_bold_r=LucidaBrightDemiBold.ttf
filename.lucidabright_medium_i=LucidaBrightItalic.ttf
filename.lucidabright_medium_r=LucidaBrightRegular.ttf
filename.lucidatypewriter_bold_i=LucidaTypewriterBoldOblique.ttf
filename.lucidatypewriter_bold_r=LucidaTypewriterBold.ttf
filename.lucidatypewriter_medium_i=LucidaTypewriterOblique.ttf
filename.lucidatypewriter_medium_r=LucidaTypewriterRegular.ttf
filename.sansmonowt_medium_r=mtsansdj.ttf
filename.timesnewromanmt30_medium_r=tnrmt30.ttf
filename.timesnewromanwt_medium_r=tnrwt_j.ttf
filename.Times_New_Roman=times.ttf
filename.Times_New_Roman_Bold=timesbd.ttf
filename.Times_New_Roman_Bold_Italic=timesbi.ttf
filename.Times_New_Roman_Italic=timesi.ttf
filename.Times_New_Roman_WT_J=tnrwt_j.ttf
# default char definition
default.char=02ff

fontcharset.serif.0=sun.io.CharToByteISO8859_1
fontcharset.serif.1=sun.io.CharToByteISO8859_15_FDIS
fontcharset.serif.2=sun.awt.CharToByteSymbol
fontcharset.serif.italic.0=sun.io.CharToByteISO8859_1
fontcharset.serif.italic.1=sun.io.CharToByteISO8859_15_FDIS
fontcharset.serif.italic.2=sun.awt.CharToByteSymbol
fontcharset.serif.bold.0=sun.io.CharToByteISO8859_1
fontcharset.serif.bold.1=sun.io.CharToByteISO8859_15_FDIS
fontcharset.serif.bold.2=sun.awt.CharToByteSymbol
fontcharset.serif.bolditalic.0=sun.io.CharToByteISO8859_1
fontcharset.serif.bolditalic.1=sun.io.CharToByteISO8859_15_FDIS
fontcharset.serif.bolditalic.2=sun.awt.CharToByteSymbol
# exclusion info

# X11 Specific font set (necessary for TextArea and TextField)
fontset.serif.plain=\
-jdk-lucidabright-medium-r-normal--*-%d-75-75-p-*-iso8859-1,\
-jdk-lucidabright-medium-r-normal--*-%d-75-75-p-*-iso8859-15
fontset.serif.italic=\
-jdk-lucidabright-medium-i-normal--*-%d-75-75-p-*-iso8859-1,\
-jdk-lucidabright-medium-i-normal--*-%d-75-75-p-*-iso8859-15
fontset.serif.bold=\
-jdk-lucidabright-medium-r-normal--*-%d-75-75-p-*-iso8859-1,\
-jdk-lucidabright-bold-r-normal--*-%d-75-75-p-*-iso8859-15
fontset.serif.bolditalic=\
-jdk-lucidabright-bold-i-normal--*-%d-75-75-p-*-iso8859-1,\
-jdk-lucidabright-bold-i-normal--*-%d-75-75-p-*-iso8859-15
# font substitution
substitute.0=Arial Unicode MS=Times New Roman WT J
substitute.1=Arial Unicode MS=Monotype Sans Duospace WT J
substitute.2=Monotype Sans Duospace WT=Arial Unicode MS
substitute.3=Monotype Sans Duospace WT=Times New Roman WT J
substitute.4=Times New Roman WT=Arial Unicode MS
substitute.5=Times New Roman WT=Monotype Sans Duospace WT J
substitute.6=Times New Roman=Times New Roman
register.0
=-monotype-timesnewromanmt30-medium-r-normal--*-%d-75-75-*-*-iso10646-
0"
etc..
 
GeeCON Prague 2014
 
subject: fonts and linux