LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Fixing the fonts in Oracle Java 8, Debian

Posted 06-19-2014 at 02:43 PM by the dsc
Tags fonts, java

That was funny. I had the same problem some time ago, in an earlier install, and then accidentally stumbled in my own answer to the problem, and I didn't even remember that I had solved it before, much less how I did it. That's why I need this blog. :-/

The problem is that when you run a java app with the exported parameters to use the GTK look and feel, it runs reasonably OK (perhaps not 100% identical, I didn't compare if carefuly, but at least it's way more homogeneous than the "metal" default look with bold fonts for java apps), except that the fonts are all italicized. In the forum thread where I first posted the solution that I've found somehow, the person was having an apparently similar issue, I think the fonts were all bold, perhaps the default java fonts, despite of the rest of the look-and-feel being already GTK. I don't know if my solution fixed that as well, he never replied. I just hope he survived, and is alive and well. God only knows.


But summarizing, the so-called solution basically consists in symlinking your desired truetype fonts (I did with the font files, not the containing folder) to Java's font subfolder, whose exact location may vary, depending of how you've installed it. To me this time it was /usr/lib/jvm/java-8-oracle/jre/lib/fonts, not somewhere on /opt, where I'd expect it (got the install from Ubuntu people).

After you create such links, you issue mkfontscale && mkfontdir, from within that Java's fonts folder.

And pray for your soul that I'm right.
Posted in Uncategorized
Views 187 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration