Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Adding fonts to NextCloud + Collabora

    Collabora Office
    fonts
    3
    8
    194
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SirFiChi last edited by girish

      Hey folks,

      is there a way to add some fonts to the nextcloud installation, so we can use them with collabora documents?
      It's a very uncomfortable workflow to download all files and to correct the layout when the documents have to be printed or converted as pdf files.

      Thanks for your help

      Floh K.

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @SirFiChi If you have a list of missing fonts, we can add it to the collabora package.

        M 1 Reply Last reply Reply Quote 0
        • M
          murgero App Dev @girish last edited by

          @girish I think a better option would be to move, then symlink the fonts dir in the package so it can be modified freely.

          in the Dockerfile file, just add this somewhere:

          mv /usr/share/fonts/ /app/data/fonts/
          ln -s /app/data/fonts /usr/share/fonts
          

          Then users will be able to add their fonts as needed

          1 Reply Last reply Reply Quote 1
          • girish
            girish Staff last edited by

            @murgero I don't mind doing that as well. I need to look closely into how collabora works though. I wonder if it relies on client/browser fonts or fonts on the server side. Because currently the docker image basically has no fonts installed and somehow it seems to mostly work.

            M 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              There's some instructions here - https://help.nextcloud.com/t/installing-new-fonts-in-collabora/22758/3 . Maybe @nebulon has an idea.

              1 Reply Last reply Reply Quote 0
              • M
                murgero App Dev @girish last edited by

                @girish If it's anything like openoffice, like I believe it is - it's the server's font dir, not the clients.

                1 Reply Last reply Reply Quote 0
                • S
                  SirFiChi last edited by

                  I also found this site and tried to write into /usr/share/fonts/truetype/, but as you know, the docker-containers are ro.
                  The solution of @murgero sounds great.

                  I think about another solution so you can add fonts directly in the nextcloud.
                  What about adding a dircetory there:
                  /app/data/admin/files/Fonts

                  So the admin can add fonts.
                  But we need a chown, chmod and a trigger for fc-cache?

                  1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff last edited by

                    Opened https://git.cloudron.io/cloudron/collabora-app/-/issues/5 to investigate further

                    1 Reply Last reply Reply Quote 3
                    • First post
                      Last post