Problem viewing the site designed with project fonts! On another computer - Forum

Forum Navigation
You need to log in to create posts and topics.

Problem viewing the site designed with project fonts! On another computer

Hello and good time dear friends! I see my designed site with the fonts used in the project! I have a problem! I can not view my site with the fonts I have defined for it! Of course, I see it well on my system! But with another computer on which my fonts are not installed! Not displayed well! Thanks for guiding me! Thanks
Sample fonts defined in the project style:
@ font-face {
font-family: 'BMitraBd',
src: url ('/ fonts / B Mitra.ttf');
}

Hi, You should add your fonts also in project>properties>Library/file.

Quote from asmat on May 20, 2021, 10:28 pm

Hi, You should add your fonts also in project>properties>Library/file.

I added fonts! But on another computer the fonts are not installed! See what I do! Not displayed correctly! I do not know where the problem comes from ...

Uploaded files:
  • You need to login to have access to uploads.

Consider the source: VisualNEO Web by default will add all fonts in the fonts folder.

@font-face {
  font-family: "my-font-san";
  src: url("../fonts/IRANSans.ttf");
}
Quote from asmat on May 20, 2021, 10:45 pm

Consider the source: VisualNEO Web by default will add all fonts in the fonts folder.

@font-face {
font-family: "my-font-san";
src: url("../fonts/IRANSans.ttf");
}
@font-face { font-family: "my-font-san"; src: url("../fonts/IRANSans.ttf"); }
@font-face {
  font-family: "my-font-san";
  src: url("../fonts/IRANSans.ttf");
}

What do these two dots and slash (../) refer to?
Should site fonts be displayed in the browser network section and then in the font section?
And finally, should I use a family font during the project? Or the name of the same font that we specify in the scr address?
thank you

"../fonts/IRANSans.ttf" is a relative path for the font file.

<img src="../picture.jpg"> 	The "picture.jpg" file is located in the folder one level up from the current folder

You can set any name to font-family as desire.

When you test @font-face from VisulNEO Web it will not work, It will work after compilation.

Dear friend, thanks for your guidance! I will try and in case of any problem, I will raise it in this post! Thank you

asmat has reacted to this post.
asmat