#1 2016-12-02 13:11:51

starin
Banned
Registered: 2016-11-09
Posts: 12

How we can include and use custom fonts in our applications

Hi,

What is the best way to add our custom fonts into application and use it ?

i add this code into my InlineCSS, but i don't know which place i must copy my custom font file so my app can found it
(my app need to run on android and web platforms)

@font-face {
    font-family: 'Swis721 Cn BT';
    src: url('SWISSCB.TTF') format('truetype');
}

Last edited by starin (2016-12-02 13:16:15)

Offline

#2 2016-12-02 13:36:49

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: How we can include and use custom fonts in our applications

Hello starin,

You must add the font file(s) using the app's file manager (F6). Choose the "Others" tab. Then such files are placed in "app/files/SWISSCB.TTF". And you can refer to it in a way like the below one:

@font-face {
    font-family: 'Swis721 Cn BT';
    src: url('../files/SWISSCB.TTF') format('truetype');
}

P.S. Please use the "code" tag in your posts and try to put a more descriptive title to them.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.