Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to delete a system font ?

807580May 11 2010 — edited May 11 2010
hi,

I have a application and i need to delete a system font.

I used those two functions to get some info on windows:

FontManager.getFileNameForFontName(fontLogicalName)
FontManager.getFontPath(true)

On windows most of system fonts are recognized but for some i get a null on getFileNameForFontName(fontLogicalName) and getFontPath(true) always returns null. (weird)

On linux all system fonts names are null for getFileNameForFontName(fontLogicalName) and getFontPath(true) returns a list of folders where system fonts are stored (because in linux there are more than one font folder).

I need help. can someone explain me why those functions work different on linux and windows ?

Or please show me a working example.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2010
Added on May 11 2010
18 comments
565 views