[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Adding own fonts  XML
Forum Index -> Development
Author Message
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

Hi Bjorn,

I am trying to add own font to the project. Download the font, put the folder into webapp folder, create css file with @font-face and url to the local folder of fonts. Add to the system.xml:

<riscclientstyle src="fontreference.css"/>
<riscclientfontaccess face="Noto Sans"/>

The problem is that from my local machine the font is rendering ok, when someone else ty to load the first page of the application, it shows a message: Problem loading fonts:texts might not be correcly positioned.

I cannot understand where is the problem.
Thanks in advance!
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

Please open the browser on the "someone"s computer, open developer mode (f12), open network view, check if font files are successfully loaded.

Font files are: 1. the css 2. the ttf/woff or whatever files (that you referenced) in the css of the font

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

The css file is loaded, but it not showing some ttf files.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

...then: load the ttf files directy in the browser (i.e. by writing their URL into the browser URL line). Are they then loaded?

If not: what type of error is shown (again open dev view)?

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team