Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
font problems with MATLAB's Simulink 2008a and Exceed
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Wed Jul 02, 2008 4:46 pm    Post subject: font problems with MATLAB's Simulink 2008a and Exceed Reply with quote

At work, we use a Linux farm to support our EDA and design efforts. Most of the boxes are CentOS5, although I'm trying to introduce Gentoo. :) We all use Windows PC's as our local workstation (for Outlook and M$ Office), displaying remote graphics using Hummingbird's (now OpenText) Exceed.

Anyway, in trying to use the new version of MATLAB's Simulink, the banner menus and pull-down menus all have corrupted text. The text is basically empty with the exception of a few underscores. Matlab desktop looks fine, and the simulink design windows also look fine. The only problems seems to be with the new Simulink library browser. (See screenshot.)

Sadly, this works just fine on our CentOS5 boxes. :oops:

If I view the graphics directly on the Linux box (attach a monitor to the headless box), the menus look fine. If I use another PC X-server, like NX (Cygwin-X), the menus again look fine. So, the problem seems to be related to the combination of Gentoo and Exceed.

Any guesses?

BTW, I'm using the latest JDK, and I'm directing Matlab to use it, like so:

Code:
#!/bin/bash
# Start-up script for MATLAB
# Tried this version of JVM, but it fails also
#export MATLAB_JAVA="/usr/lib/jvm/emul-linux-x86-java-1.6"
# This one also fails, but it is the latest official version
export MATLAB_JAVA="/usr/lib/jvm/sun-jdk-1.6/jre"
# This JVM won't even let matlab start
#export MATLAB_JAVA="/usr/lib/jvm/blackdown-jdk-1.4.2/jre"
# The included JVM also fails
#export MATLAB_JAVA="/tools/matlab2008a/sys/java/jre/glnxa64/jre1.6.0"
# Add matlab binaries to path
export PATH="/tools/matlab2008a/bin:$PATH"
# Launch matlab
matlab
Back to top
View user's profile Send private message
m27315
Apprentice
Apprentice


Joined: 10 Dec 2004
Posts: 253
Location: 2 workstations down

PostPosted: Tue Aug 05, 2008 11:13 pm    Post subject: solution! Reply with quote

I experimented some more, and I found that the perpetrator was an entry in:

/etc/fonts/local.conf

Which, enabled sub-pixel rendering of fonts, like so:

Code:
 <!-- Enable sub-pixel rendering -->
 <match target="font">
   <edit name="rgba" mode="assign"><const>rgb</const></edit>
 </match>

Commenting out this phrase allowed me to work around the problem!

I am including the complete contents of the working file below, which I created based on this HOWTO:

http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts

/etc/fonts/local.conf
Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file to configure system font access -->
<fontconfig>

 <!-- Use the Autohinter -->
 <match target="font">
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
 </match>

 <!-- Disable Autohinting for bold fonts -->
 <match target="font">
   <test name="weight" compare="more"><const>medium</const></test>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
 </match>

 <!-- Breaks Simulink for Matlab 2008a. Do not use sub-pixel rendering!!! -->
 <!-- Enable sub-pixel rendering -->
 <!-- <match target="font">
   <edit name="rgba" mode="assign"><const>rgb</const></edit>
 </match> -->

 <!-- Exclude/Include a range of fonts for Anti Aliasing -->
 <match target="font">
   <test qual="any" name="size" compare="more"><double>9</double></test>
   <test qual="any" name="size" compare="less"><double>14</double></test>
   <edit name="antialias" mode="assign"><bool>true</bool></edit>
 </match>

 <!-- And/Or disable Anti Aliasing for a range on pixel-based size.
 Disabling this using both methods seems to fix Firefox. -->
 <!-- <match target="font">
 <test compare="less" name="pixelsize" qual="any"><double>20</double></test>
 <edit mode="assign" name="antialias"><bool>false</bool></edit>
 </match> -->

 <!-- Other config options that were added to previous versions of config files in the Gentoo Wiki HOWTO.
 Need clarification. -->
 <match target="font">
   <edit name="hinting" mode="assign"><bool>true</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
 </match>

</fontconfig>

HTH
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum