
Quote from javadrajabihakami on May 20, 2021, 10:24 pmHello 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');
}
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');
}


Quote from javadrajabihakami on May 20, 2021, 10:38 pmQuote from asmat on May 20, 2021, 10:28 pmHi, 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 ...
Quote from asmat on May 20, 2021, 10:28 pmHi, 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:
Quote from asmat on May 20, 2021, 10:45 pmConsider 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"); }
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 javadrajabihakami on May 20, 2021, 10:51 pmQuote from asmat on May 20, 2021, 10:45 pmConsider 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
Quote from asmat on May 20, 2021, 10:45 pmConsider 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

Quote from asmat on May 20, 2021, 11:06 pm"../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 folderYou 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.
"../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.

Quote from javadrajabihakami on May 20, 2021, 11:22 pmDear friend, thanks for your guidance! I will try and in case of any problem, I will raise it in this post! Thank you
Dear friend, thanks for your guidance! I will try and in case of any problem, I will raise it in this post! Thank you