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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. OnlyOffice
  3. Question about adding fonts and custom samples for OnlyOffice ?

Question about adding fonts and custom samples for OnlyOffice ?

Scheduled Pinned Locked Moved Solved OnlyOffice
onlyoffice
12 Posts 7 Posters 1.9k Views 8 Watching
  • 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.
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by girish
      #1

      Adding more fonts

      Based on this documentation they suggesting to add fonts in /usr/share/fonts/.

      Custom Templates/Sample

      Based on this issue customizing the default font is only a matter of declaring it in these samples but I can't find this public/samples directory.

      My question for Cloudron are

      1. Someone knows where is public/samples dir ?
      2. How to make my new fonts and samples persistent ?
      3. Does these modifications be included in the backup since it is not under /app ?
      1 Reply Last reply
      3
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        I was not aware of that feature actually and thus the app package does not support this yet.
        Since apps on Cloudron run on a read-only filesystem, we have to symlink those folders into /app/data/ somewhere, that way they are also part of the backup.

        I created an issue in the app package repo at https://git.cloudron.io/cloudron/onlyoffice-app/issues/1 so we don't forget about it

        andreasduerenA 1 Reply Last reply
        4
        • nebulonN nebulon

          I was not aware of that feature actually and thus the app package does not support this yet.
          Since apps on Cloudron run on a read-only filesystem, we have to symlink those folders into /app/data/ somewhere, that way they are also part of the backup.

          I created an issue in the app package repo at https://git.cloudron.io/cloudron/onlyoffice-app/issues/1 so we don't forget about it

          andreasduerenA Offline
          andreasduerenA Offline
          andreasdueren
          wrote on last edited by
          #3

          @nebulon Stumbled across this while trying to find out how to add custom fonts. I would appreciate this option as well since standard fonts like Helvetica aren't included plus I would like to import a company-specific font that aligns with their CI

          1 Reply Last reply
          2
          • darkbenD Offline
            darkbenD Offline
            darkben
            wrote on last edited by
            #4

            @nebulon +1 to add custom fonts in Onlyoffice. Do you think it will be possible in a next release of the pakage ?
            Thanks !

            1 Reply Last reply
            2
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #5

              The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.

              andreasduerenA chetbakerC osoboO 3 Replies Last reply
              5
              • nebulonN nebulon

                The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.

                andreasduerenA Offline
                andreasduerenA Offline
                andreasdueren
                wrote on last edited by
                #6

                @nebulon Awesome!

                1 Reply Last reply
                0
                • nebulonN nebulon

                  The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.

                  chetbakerC Offline
                  chetbakerC Offline
                  chetbaker
                  wrote on last edited by
                  #7

                  @nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.

                  Any hint of what else should I do?

                  micmcM 1 Reply Last reply
                  0
                  • chetbakerC chetbaker

                    @nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.

                    Any hint of what else should I do?

                    micmcM Offline
                    micmcM Offline
                    micmc
                    wrote on last edited by micmc
                    #8

                    @chetbaker said in Question about adding fonts and custom samples for OnlyOffice ?:

                    @nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.

                    Any hint of what else should I do?

                    Hello, you need not only to restart your brower but before doing so, you must clear the cache of it. One way to find out is trying the app in another browser, so if it works then that means the other one cache is not fully cleared. If it does not work in both, then the issue is elsewhere. 🙂

                    Ignorance is not an excuse anymore!
                    https://AutomateKit.com

                    chetbakerC 1 Reply Last reply
                    0
                    • micmcM micmc

                      @chetbaker said in Question about adding fonts and custom samples for OnlyOffice ?:

                      @nebulon I followed these instructions but the fonts are not shown in the web-app. I'm trying to add up the iA Writer fonts (all TTF), but restarting the app and the browser doesn't show any of the new fonts in the app.

                      Any hint of what else should I do?

                      Hello, you need not only to restart your brower but before doing so, you must clear the cache of it. One way to find out is trying the app in another browser, so if it works then that means the other one cache is not fully cleared. If it does not work in both, then the issue is elsewhere. 🙂

                      chetbakerC Offline
                      chetbakerC Offline
                      chetbaker
                      wrote on last edited by
                      #9

                      @micmc hey thanks! Yeah, I tried in another browser and no new fonts appears 😞

                      1 Reply Last reply
                      0
                      • nebulonN nebulon

                        The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.

                        osoboO Offline
                        osoboO Offline
                        osobo
                        wrote on last edited by
                        #10

                        @nebulon said in Question about adding fonts and custom samples for OnlyOffice ?:

                        The latest app package now supports adding custom fonts. See https://docs.cloudron.io/apps/onlyoffice/#custom-fonts for details.

                        Hello @nebulon . Could you please check this feature again ? It seems adding fonts is not working anymore 😞
                        I've Nextcloud and OnlyOffice apps running on the same Cloudron. I'm in need to use a few custom ttf fonts to allow users to write in their local language (ie Lao fonts like these : Saysettha).
                        Despite following the process mentioned custom fonts won't show up in the menu...
                        Thanks for your support 🙏

                        1 Reply Last reply
                        0
                        • nebulonN Offline
                          nebulonN Offline
                          nebulon
                          Staff
                          wrote on last edited by
                          #11

                          I can reproduce an error with fonts at least. The app does pick up the font correctly but while trying to open the font selection dropdown it crashes if a custom font was added. The browser console shows:

                          Uncaught RangeError: attempting to construct out-of-bounds Uint8ClampedArray on ArrayBuffer
                          

                          Not yet sure what the bug is and what needs fixing.

                          1 Reply Last reply
                          2
                          • nebulonN nebulon has marked this topic as unsolved on
                          • nebulonN Offline
                            nebulonN Offline
                            nebulon
                            Staff
                            wrote on last edited by
                            #12

                            This took a bit but the latest package version has this fixed.

                            1 Reply Last reply
                            1
                            • nebulonN nebulon has marked this topic as solved on
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search