You are not logged in.

#1 2008-10-12 17:31:59

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Adding fonts to Java

Hi,

I've got a Java application, which requires a particular font (Cyberbit.ttf, for instance). Got a *.ttf file downloaded; what am I to do next?

Offline

#2 2008-10-12 17:35:02

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: Adding fonts to Java

$ cp Cyberbit.ttf ~/.fonts/
$ fc-cache -fv

(if you don't have ~/.fonts folder yet, just create it)

Last edited by AD28 (2008-10-12 17:42:15)

Offline

#3 2008-10-12 18:14:23

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Adding fonts to Java

Thanks! The procedure apparently is a success: the application in question even shows the font in its font list, but still rectangles instead of letters. Probably a dumb question, but any suggestions where to look next?

Offline

#4 2008-10-22 09:20:55

greenfuse
Member
Registered: 2008-02-14
Posts: 57

Re: Adding fonts to Java

Much the same problem for me. Any help would be appreciated.

I have not tried using the cyberbit font in Archlinux, but I have some cjk fonts installed via pacman which show as rectangles in a java application (cgoban).  They display fine in firefox and openoffice.

This is the first distro I have used that would not show cjk in cgoban with a recent version of java (5 plus), so it looks like an Archlinux specific situation.

Offline

Board footer

Powered by FluxBB