Skip to content

Instantly share code, notes, and snippets.

@gzagatti
Last active May 23, 2016 01:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gzagatti/c7fcf81f076c2abeba50 to your computer and use it in GitHub Desktop.
Save gzagatti/c7fcf81f076c2abeba50 to your computer and use it in GitHub Desktop.
Solve ft_render error in octave, by installing fontconfig with universal support. Gnuplot makes use of fontconfig to display fonts.

In order to install octave with support for free type fonts when plotting it is necessary to install fontconfig with universal access, which builds a universal binary. Otherwise the following error is returned:

warning: ft_render: unable to load appropriate font
warning: could not match any font: *-normal-normal-10

Gnuplot makes use of fontconfig to display fonts. So first install fontconfig: brew install fontconfig --universal. Then install gnuplots: brew install gnuplots --with-qt, the flag --with-qt refers to the gui interface which you're willing to use

@oulrich1
Copy link

If you already have fontconfig installed you should remove and then install again with the --universal option. This fixed the problem i was having as well. This fix should probably be posted to octave's page, this was a hard fix to find. Now with this fix, the segmentation faults octave was experiencing are completely gone. Thanks :) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment