Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    [solved]Calibri Font in Web/Desk-App

    Kopano WebApp
    1
    3
    967
    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.
    • bitboy0
      bitboy0 last edited by bitboy0

      We have been using Calibri as our standard font for emails for years. This font can be easily displayed on all platforms that are important to us.

      How can I integrate this font in the DeskApp and WebApp? If I clipboard a text from Word that uses this font, it works fine, but this font is not available when I write a new email.

      What files do I need to customize?


      Wir benutzen in der Firma seit Jahren Calibri als Standard-Schriftart für emails. Diese Schriftart kann auf allen uns wichtigen Plattformen gut angezeigt werden.

      Wie kann ich diese Schriftart in der DeskApp und WebApp einbinden? Wenn ich per Zwischenablage aus Word einen Text einfüge, der diese Schriftart benutzt, klappt das gut, aber diese Schriftart steht nicht zur Auswahl bereit, wenn ich eine neue email schreibe.

      Welche Dateien muss ich anpassen?

      bitboy0 1 Reply Last reply Reply Quote 1
      • bitboy0
        bitboy0 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • bitboy0
          bitboy0 @bitboy0 last edited by bitboy0

          So I solved that.
          File to alter is /usr/share/kopano-webapp/client/kopano.js

          Line 974 is now changed to:

          Zarafa.common.ui.htmleditor.Fonts=function(){return{getFonts:function(){return{1:8,"1.1":9,2:10,"2.1":11,3:12,4:14,5:18,6:24,7:36}},getFontSizeString:function(){var a=this.getFonts(),b=Object.keys(a).sort(),c="";Ext.each(b,function(b){c+=a[b]+"pt "});return c.trim()},getFontFamilies:function(){return"Calibri=calibri,candara,segoe,optima,optima ui,arial,sans-serif;Courier New=courier new,courier;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times;Verdana=verdana,geneva"},getDefaultFontSize:function(){var a=
          this.getFonts(),b=container.getSettingsModel().get("zarafa/v1/main/default_font_size");return a[b]+"pt"}}}();Ext.namespace("Zarafa.common.ui.htmleditor");
          

          “Calibri=calibri,candara,segoe,optima,optima ui,arial,sans-serif” Is where Arial was before. Arial is one of the possible substitutes for Calibri if that is not available at the target. That does the job!

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