Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Matlab figure fonts in 11.04

  1. #1
    Join Date
    Dec 2007
    Beans
    4

    Matlab figure fonts in 11.04

    I have the same problem as this thread, where Matlab can't render the fonts in figures, but can get the fonts right everywhere else on the desktop. I think the desktop fonts are handled by Java, but the figures are done with X. (I'm making a new thread since that one is closed).

    The OP in that thread solved his problem by reverting to 10.10, installing matlab, then upgrading to 11.04. Can they or someone else tell me where there fonts are stored? My current font path from running

    Code:
    xset q
    is:

    Code:
    Font Path:
      /usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,built-ins
    My bet is that's where the problem is. I have reported this to The Mathworks. They told me to wait for a new release.

  2. #2
    Join Date
    Apr 2007
    Beans
    13

    Re: Matlab figure fonts in 11.04

    Hooray, that's it!

    That was the elusive information we needed: I looked at my 11.04 that worked (I was the OP on the other thread) and compared font paths. What you need to install is:

    xfonts-100dpi and
    xfonts-75dpi

    logout and log back in again and you should be away laughing! (worked for me on a fresh install)

    Do you know what to do about the libc.so.6 not found error?

  3. #3
    Join Date
    Dec 2007
    Beans
    4

    Re: Matlab figure fonts in 11.04

    Bam! That did it! Thanks.

    I'm not sure what you mean by the libc.so.6 error. But I had some library issues trying to compile a MEX function recently, and this thread had the answer. Instead of running mex in matlab, you run it in a terminal, so Matlab doesn't have a chance to screw up your path.

  4. #4
    Join Date
    May 2011
    Beans
    2

    Re: Matlab figure fonts in 11.04

    Thanks a lot! Worked for me on 11.04 64bit with Matlab R2011b.

    Regarding the libc.so.6, you have to delete the symbolic link:
    Code:
    sudo rm /path/to/matlab/sys/os/glnxa64/libstdc++.so.6
    and create a new one with the same name to the libstdc++.so.6 on your system lib-path. For me it was:
    Code:
    sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /path/to/matlab/sys/os/glnxa64/libstdc++.so.6

  5. #5
    Join Date
    Jun 2011
    Beans
    2

    Re: Matlab figure fonts in 11.04

    Quote Originally Posted by rgbrown View Post
    Hooray, that's it!

    That was the elusive information we needed: I looked at my 11.04 that worked (I was the OP on the other thread) and compared font paths. What you need to install is:

    xfonts-100dpi and
    xfonts-75dpi

    logout and log back in again and you should be away laughing! (worked for me on a fresh install)

    Do you know what to do about the libc.so.6 not found error?

    I'm having this problem running matlab 2011a (64bit) on my first linux machine (ubuntu 11.04)... did
    sudo apt-get xfonts-100dpi and
    sudo apt-get xfonts-75dpi

    and the font path now includes /usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi are
    ... but matlab still is making the figure fonts look really really bad. i couldn't change fontsizes before (and now can) but the only reasonably tolerable font is 'Bitstream Charter' and even that doesn't look great. am i missing something?

  6. #6
    Join Date
    Aug 2006
    Beans
    10

    Re: Matlab figure fonts in 11.04

    I have the same problem, running Matlab2010b on Ubuntu11.04, 64bit
    Installed both packages:
    xfonts-100dpi and
    xfonts-75dpi

    and still only some of my fonts work in Matlab:
    - Bitstream charter
    - Courier fonts
    - Helvetica
    - New Century schoolbook
    - Symbol
    - Times

    All of the other fonts don't work (yet I can choose them in the dropbox when I add a textbox).

    Help someone?

  7. #7
    Join Date
    Aug 2011
    Beans
    1

    Re: Matlab figure fonts in 11.04

    This worked like a charm! Thanks for the info rgbrown!

  8. #8
    Join Date
    Sep 2006
    Beans
    1

    Re: Matlab figure fonts in 11.04

    Hey guys,
    how does one change the fonts path. I have no idea how to do that. Any help would be highly appreciated.
    Thanks.

  9. #9
    Join Date
    Dec 2007
    Beans
    1

    Re: Matlab figure fonts in 11.04

    Nvidia DPI settings may also be the cause of the small fonts, small figure data points. This matlab blog entry on ubuntu xorg dpi settings may be the solution.

    http://ifixdit.blogspot.com/2011/08/...gures-and.html

  10. #10
    Join Date
    Nov 2010
    Beans
    2

    Re: Matlab figure fonts in 11.04

    Quote Originally Posted by yoel.koenka View Post
    I have the same problem, running Matlab2010b on Ubuntu11.04, 64bit
    Installed both packages:
    xfonts-100dpi and
    xfonts-75dpi

    and still only some of my fonts work in Matlab:
    - Bitstream charter
    - Courier fonts
    - Helvetica
    - New Century schoolbook
    - Symbol
    - Times

    All of the other fonts don't work (yet I can choose them in the dropbox when I add a textbox).

    Help someone?
    Exact same problem here.
    Running Matlab R2009a 32-bit on Ubuntu 11.04 64-bit.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •