0 Replies Latest reply: Dec 8, 2017 2:21 PM by Guilherme C Pinto RSS

    Extension to use a local font file

    Guilherme C Pinto

      Hello guys,

       

       

      I'm creating a qlikview extension to use the libicons.ttf font file in a Daskboard without success. Anybody can help me? This is what I have done until now:

       

       

      Extension file: LibIcons.qar

      Internal files:

       

       

      libicons.svg

      libicons.ttf

      libicons.woff

       

       

      Definition.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <ExtensionObject Type="document" Description="Carrega a fonte LibIcons" Path="LibIcons" Label="LibIcons"> </ExtensionObject>

       

       

      libicons.css

      @font-face {

        font-family: 'libicons';

        src:

          url('libicons.ttf?mu5xy1') format('truetype'),

          url('libicons.woff?mu5xy1') format('woff'),

          url('libicons.svg?mu5xy1#libicons') format('svg');

        font-weight: normal;

        font-style: normal;

      }

       

       

      Script.js

      Qva.AddDocumentExtension('LibIcons', function(){

      //Load a CSS style sheet

      Qva.LoadCSS("libicons.css");

      });

       

       

      The extension is not working. The font file is not loaded and the characters are showed as an square in webview.