You are not logged in.

#1 2024-03-16 03:43:44

hwallace
Member
Registered: 2021-08-30
Posts: 110

[SOLVED] Installing courier font for libre office

For courier font in LO,

I have installed xorg-fonts-type1

/usr/share/fonts/Type1 directory shows two files fonts.dir and fonts.scale that grep shows contain courier definitions

I have symlinked those two files to ~/.local/share/fonts

However:

In LibreOffice/Tools/Options there is no courier in any of the dropdowns

In document view, selecting for 'character' and 'font' there is no courier in any of the listings.

Where do I find info on installing fonts for LO on Arch?

Thank you.

Last edited by hwallace (2024-03-16 18:20:43)

Offline

#2 2024-03-16 09:27:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,016

Re: [SOLVED] Installing courier font for libre office

The problem is , likely, that LO doesn't support Type1 fonts?
There're the liberation fonts that seek metric compatibility (and probably already map Courier to their own variant), the adobe fonts in xorg-fonts-*dpi, gsfonts will force nimbus as courier upon you and some courier ttf's in the AUR, https://aur.archlinux.org/packages?O=0&K=courier
If you need courier to be resolved to one of those specifically you could add sth. like /etc/fonts/conf.d/71-courierprime.conf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
  <alias binding="same">
    <family>Courier</family>
    <accept>
      <family>Courier Prime</family>
    </accept>
  </alias>
  <alias binding="same">
    <family>Adobe Courier</family>
    <accept>
      <family>Courier Prime</family>
    </accept>
  </alias>
</fontconfig>

(You need the 71- to trump the 69- from eg. gsfonts)

Offline

#3 2024-03-16 18:20:20

hwallace
Member
Registered: 2021-08-30
Posts: 110

Re: [SOLVED] Installing courier font for libre office

Thanks Seth.

Offline

Board footer

Powered by FluxBB