Native Java und Anti-Aliased Font Rendering

[tE]bachi

BSD Freak
Salü Miteinander!

Habe ein Problem mit den Fonts, die ich gerne renderd (=anti-alias) möchte. Das ging da mal, aber nach einem reinstall gind nicht. Keine Ahnung wiso!

Vor dem reinstall:
FreeBSD 4.8, XFree 4.3.0, Xft 2.1.2, GNOME 2.2.2, Linux Java SDK 1.4.1, jEdit 4.1
Wirkung:
Alles wurde gerendert, auch Menus, Buttons und Textfields.

Nach dem reinstall:
FreeBSD 4.8, XFree 4.3.0, Xft 2.1.2, GNOME 2.4, Native Java JDK 1.3.1, jEdit 4.1
Wirkung:
Nur der Buffer ist gerendert, alles andere nicht.

Also habe ich ein bisschen im Internet nach Fonts und Java gesucht, und auch etwas gefunden: http://zarb.org/pipermail/jpackage-discuss/2003-July/002547.html

Darin wird beschrieben, das Java noch nicht mit fontconfig arbeitet und sich mit ttmkfdir begnügen muss.

Ich habe aber beides gemacht, zum sichergehen:
Code:
[root@bsd ~]# fc-cache -v -f
[...]
fc-cache: "/usr/local/diablo-jdk1.3.1/jre/lib/fonts": caching, 13 fonts, 0 dirs
[...]
fc-cache: succeeded
und
Code:
[root@bsd ~]# ttmkfdir \
> -d /usr/local/diablo-jdk1.3.1/jre/lib/fonts \
> -o /usr/local/diablo-jdk1.3.1/jre/lib/fonts/fonts.scale

Hat aber beides nicht genützt...

Können 2-3 BSD- und Java-Begeisterte mal jEdit über die Ports installieren und ein Screenshot rüberbeamen und sagen, wie ich aus meiner misslichen Lage herauskomme?

greets

[tE]bachi
 

Anhänge

  • font3.png
    font3.png
    24,7 KB · Aufrufe: 761
Tach auch!

Hab's grad' über die Ports installiert (jdk14, Rest genauso), sah' aber aus wie bei Dir. Brauchst Du aa unbedingt?!

Is' für'n Javaprogramm (mit GUI) recht flott, gefällt mir, ;-)


hang lost
 
Du solltest Dir die TTF von Windows installieren (also Arial, Courier New, Time s New Roman). Die Versionen die bei X dabei sind sehen naemlich gewaltig Scheisse aus. Also entweder den 'webfonts' (??) port installieren, oder manuell alle TTFs nach /usr/X11R6/lib/X11/fonts/TrueType kopieren, ttmkfdir ausfuehren, den Pfad in XF86Config eintragen (als allerersten Pfad), dazu noch das 'freetype' Modul laden. Fuer XFT2 dann nochmal fc-cache laufen lassen und man kann endlich gutaussehende Fonts ueberall nutzen.

Bild haengt bei (hoffe ich...)
 

Anhänge

  • jedit.png
    jedit.png
    30,9 KB · Aufrufe: 687
Ich raffs nicht...
Bei jEdit kann ich nur die Fonts auswählen, die ich im /usr/local/diablo-jdk1.3.1/jre/lib/fonts/ habe...

Log Message für XFree:
Code:
XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: FreeBSD 4.8 i386 [ELF]
Build Date: 20 September 2003
        Before reporting problems, check [url]http://www.XFree86.Org/[/url]
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.2.log", Time: Wed Sep 24 23:06:23 2003
(==) Using config file: "/etc/X11/XF86Config"
(II) [GLX]: Initializing GLX extension
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0

XF86Config:
Code:
###
### BACHI-NET
###

Section "ServerLayout"
	Identifier     "BACHI-NET Config"
	Screen         "Screen"
	InputDevice    "Trackstick" "CorePointer"
	InputDevice    "Keyboard" "CoreKeyboard"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/URW/"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/Windows/"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/psfonts/f/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/PEX/"
	FontPath     "/usr/X11R6/lib/X11/fonts/latin2/"
	FontPath     "/usr/X11R6/lib/X11/fonts/"
	FontPath     "/usr/local/diablo-jdk1.3.1/jre/lib/fonts/"
EndSection

Section "Module"
	Load  "dbe"       # Double Buffer Extension
#	Load  "dri"       # Direct Rendering Interface
	Load  "extmod"    # xawtv Module
	Load  "glx"       # GLX Module
#	Load  "pex5"      # 3D Drawing Module
	Load  "record"
	Load  "drm"
#	Load  "xie"       # X Image Extension
	Load  "xtrap"
	Load  "speedo"
	Load  "type1"     # Type1 Font Module
	Load  "freetype"  # FreeType Font Module
	Load  "int10"
	Load  "vbe"
	Load  "bitmap"
EndSection

Section "InputDevice"
	Identifier  "Keyboard"
	Driver      "keyboard"
	Option      "XkbLayout"    "de_CH"
EndSection

Section "InputDevice"
	Identifier  "Trackstick"
	Driver      "mouse"
	Option	    "Protocol" "MouseSystems"
	Option	    "Device" "/dev/sysmouse"
EndSection

Section "Monitor"
	Identifier   "UltraSharp UXGA"
	VendorName   "Dell"
	ModelName    "UltraSharp UXGA"
	HorizSync    31.5 - 82.0
	VertRefresh  50.0 - 100.0
#	Option       "dpms"
#	Option       "CalcAlgorithm" "CheckDesktopGeometry"
EndSection

Section "Device"
	Identifier  "NVIDIA GeForce 440 GO"
	Driver      "nvidia"
	VendorName  "NVidia"
	BoardName   "0x0174"
	BusID       "PCI:1:0:0"
	Option      "FlatPanel"                 "true"
    Option      "NoLogo"                    "1"
    Option      "DigitalVibrance"           "170"
    Option      "NvAgp"                     "1"
    Option      "RenderAccel"               "1"
    #Option      "UBB"                       "1"
    #Option      "WindowFlip"                "1"
    #Option     "ConnectedMonitor"          "CRT, TV"
    #Option      "UseEdidFreqs"              "1"
    #Option      "TwinView"                  "1"
    #Option      "TwinViewOrientation"       "Clone"
    #Option      "UseClipIDs"                "1"
    #Option       "SecondMonitorHorizSync"   "30-50"
    #Option      "SecondMonitorVertRefresh"  "60"
    #Option      "MetaModes"                 "1024x768 , 800x600 ; 800x600 , 800x600"     
    #Option      "TVStandard"                "PAL-G"
    #Option      "TVOutFormat"               "COMPOSITE"
EndSection

Section "Screen"
        Identifier   "Screen"
        Device       "NVIDIA GeForce 440 GO"
        Monitor      "UltraSharp UXGA"
        DefaultDepth 24
        SubSection "Display"
                Depth      24
                Modes      "1600x1200" "1024x768"
		#Modes "1024x768"
                ViewPort   0 0
                #Virtual    1024 768 
        EndSubSection
EndSection

Section "Screen"
	Identifier "Test"
	Device "NVIDIA GeForce 440 GO"
	Monitor "UltraSharp UXGA"
	DefaultDepth 24
	SubSection "Display"
		Depth 24
		Modes "1024x768"
	EndSubSection
EndSection

###
### TV Out
###
Section "Monitor"
	Identifier "TV Monitor"
	ModelName "PAL TV"
	VendorName "TV Vendor"
	VertRefresh 60
	HorizSync 30-50
EndSection

Section "Device"
	Identifier "TV Out"
	VendorName "nvidia"
	BoardName  "GeForce 440 Go"
	Driver     "nvidia"
	BusID      "1:0:0"
	Screen     0
	Option     "NoLogo" "on"
	Option     "TVOutFormat" "COMPOSITE"
	Option     "TVStandard" "PAL-B"
	Option     "ConnectedMonitor" "TV"
EndSection

Section "Screen"
	Identifier "TV"
	Monitor    "TV Monitor"
	Device     "TV Out"
	DefaultDepth 16
	SubSection "Display"
		Depth 16
		Modes "640x480"
	EndSubSection
EndSection

Section "DRI"
	Group   "video"
	Mode	0660
EndSection

fc-cache:
Code:
[root@lan /usr/home/bachi]# fc-cache -v -f
fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 15 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 397 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/PEX": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 12 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/latin2": caching, 0 fonts, 2 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/latin2/100dpi": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/latin2/75dpi": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 2 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local/Windows": caching, 221 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local/psfonts": caching, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local/psfonts/f": caching, 138 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 55 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/bitstream-vera": caching, 10 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/URW": caching, 35 fonts, 0 dirs
fc-cache: "/root/.fonts": no such directory, skipping
fc-cache: "/usr/local/diablo-jdk1.3.1/jre/lib/fonts": caching, 13 fonts, 0 dirs
fc-cache: succeeded

ttmkfdir:
Code:
[root@lan /usr/home/bachi]# ttmkfdir \
> -d /usr/X11R6/lib/X11/fonts/local/Windows/ \
> -o /usr/X11R6/lib/X11/fonts/local/Windows/fonts.scale
unknown font foundry code SYRC
unknown font foundry code ZYEC
font /usr/X11R6/lib/X11/fonts/local/Windows//BARcode2D.TTF: unknown usWeightClas s 5
 
Habe auch wieder OpenOffice installiert... aber auch da kein Anti-Alias... Im Text (=Buffer) aber habe ich, wie auch im jEdit, gerenderte Fonts...
 
Hast du denn ueberhaupt TrueType oder Type1 Versionen der Arial/Helvetica, Courier/Courier New und Times/Times New Roman installiert?

xfontsel kann da sehr nuetzlich sein.
 
Also ich habe alle Windows Fonts, inklusiv Arial, Courier New und Times New Roman, als TTF.

xfontsel kann fasst alle Fonts von /usr/local/diablo-jdk1.3.1/jre/lib/fonts/ erkennen, aber Window Fonts nicht... Sind aber alles TTF Fonts, auch die im JDK.

Aber eben... ich habe vor der neuinstallation OpenOffice und jEdit alle Font, also auch z.B. das Menu, gerendert bekommen.

Nach der neuinstallation nicht... Liegt das an Java?
 
Ok... eine gute Nachricht.
OpenOffice geht jetzt auch mit gerenderten Menus und Buttons.

Habe einfach FreeType2 neu kompiliert mit "Bytecode Interpreter", dann ists gegangen...

Aber jEdit geht noch immer nicht, nach der neuinstallation.
Habe auch mal das LOG vom jEdit veröffentlicht:
Code:
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-bold-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal--*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal--*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal--*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal--*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-medium-i-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
[error] java.lang.ClassNotFoundException: com.incors.plaf.kunststoff.KunststoffLookAndFeel
[error]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[error]         at java.security.AccessController.doPrivileged(Native Method)
[error]         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[error]         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
[error]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
[error]         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[error]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
[error]         at java.lang.Class.forName0(Native Method)
[error]         at java.lang.Class.forName(Class.java:195)
[error]         at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1525)
[error]         at javax.swing.UIManager.setLookAndFeel(UIManager.java:387)
[error]         at org.gjt.sp.jedit.jEdit.initPLAF(Unknown Source)
[error]         at org.gjt.sp.jedit.jEdit.main(Unknown Source)

greets

[tE]bachi
 
Zurück
Oben