Author |
Message |
30/11/2022 14:24:21
|
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!
|
|
|
30/11/2022 14:30:17
|
CaptainCasa
Power User
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 |
|
|
30/11/2022 14:58:55
|
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.
|
|
|
30/11/2022 15:14:55
|
CaptainCasa
Power User
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 |
|
|
|