Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

guilherme_pinto
New Contributor

Extension to use a local font file

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.

Labels (2)