This repository has been archived on 2021-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
scientificComputing/README.fonts

25 lines
581 B
Plaintext

Fonts for matplotlib
--------------------
Make sure the right fonts are installed:
```
sudo apt-get install ttf-lyx2.0
```
There is some conflict with `lyx` fonts, so we first remove them
and remove the matplotlib font cache:
```
sudo dpkg --remove --force-depends fonts-lyx
rm ~/.cache/matplotlib/fontList.cache
# rm ~/.matplotlib/fontList.cache # older ubuntus
```
Then we need to plot something to recreate the matplotlib font cache:
```
make cleanplots
make plots
```
You should better NOT reinstall
```
sudo apt-get install fonts-lyx
```
to give back the fonts to lyx.